Snapshot log problem [message #75393] |
Tue, 16 September 2003 03:52 |
tarek
Messages: 3 Registered: December 2002
|
Junior Member |
|
|
Hi all..
With Oracle 8I, I have 3 snapshots on same table , and i'm using fast refresh by snapshot log on the table and the dbms_snapshot.refreshy() procedure .
The question is , how could i keep the data in the snapshot log after refreshing any snapshot to use it in the another snapshot refreshing .
Thanks in advance .
My scenario is :
--------------------
Connect xxx/xxx@db1;
Connected
Create table t1 ( a number(3)primary key, b varchar2(100));
Table created
create snapshot log on t1;
snapshot log created
connect xxx/xxx@db2
connected
create snapshot snp1 refresh fast with primary key on demand
as select * from xxx.t1@db1 wheer a=5;
snapshot created
create snapshot snp2 refresh fast with primary key on demand
as select * from xxx.t1@db1 wheer a=10;
snapshot created
create snapshot snp3 refresh fast with primary key on demand
as select * from xxx.t1@db1 wheer a=15;
snapshot created
connect xxx/xxx@db1;
connected
insert into t1 values(5,'xxx');
1 row inserted
insert into t1 values(10,'yyy');
1 row inserted
insert into t1 values(15,'zzz');
1 row inserted
commit;
select * from mlog$_t1;
(I will have the last 3 inserted rows )
connect xxx/xxx@db2
connected
begin
dbms_snapshot.refresh('snp1');
end;
/
procedure completed
select * from snp1;
a b
------ ---------
5 xxx
1 row selected
connect xxx/xxx@db1;
connected
select * from mlog$_t1;
no row selected
How could i keep the another two rows to use when I need to refresh snp2, snp3 , and if u want me to refresh the another two snapshot with the first within one procedure , so it's not possible because each snapshot is on different site .
Thanks .
|
|
|