...
Note | |||||||||
---|---|---|---|---|---|---|---|---|---|
In the following example we are using a 2-way configuration described by this table:
|
1.
...
Pause the apply processes
It is necessary to pause the apply process for both replication directions. To do so choose one replication, pause the first apply process and then choose the second replication a pause the second apply process:
...
5% | ||
| ||
Column | ||
---|---|---|
| ||
Panel | ||
| ||
dbvrep> choose show dbvrep> pause apply
|
2.
...
Prepare the new table
...
Dbvisit Replicate will give the SCN of where the table will be replicated from.
...
Column | ||
---|---|---|
| ||
|
width | 95% |
---|
bgColor | CCC |
---|
dbvrep> choose show
Process MINE chosen, it is a MINE.
Process APPLY chosen, it is a APPLY.
dbvrep> prepare table SCHEMA_RECREATE.schema_recreate_tbl
Connecting to running apply [SCHEMA_RECREATE.schema_recreate_tbl]: [Apply table removed (0 metadata record(s)). Apply table added (1 metadata record(s)).]
Connecting to running mine [SCHEMA_RECREATE.schema_recreate_tbl]: [Table (un)prepared (4 internal records).]
Table SCHEMA_RECREATE.schema_recreate_tbl instantiated at SCN 43348595
dbvrep> choose replication MINE1
Process type MINE set to: MINE1.
Process type APPLY set to: APPLY1.
dbvrep> show choose
dbvrep> choose show
Process MINE1 chosen, it is a MINE.
Process APPLY1 chosen, it is a APPLY.
dbvrep> prepare table SCHEMA_RECREATE.schema_recreate_tbl
Connecting to running apply [SCHEMA_RECREATE.schema_recreate_tbl]: [Apply table removed (0 metadata record(s)). Apply table added (1 metadata record(s)).]
Connecting to running mine [SCHEMA_RECREATE.schema_recreate_tbl]: [Table (un)prepared (4 internal records).]
Table SCHEMA_RECREATE.schema_recreate_tbl instantiated at SCN 43298074
dbvrep>
3. Synchronize data
Use the SCN from step 2 to load the historical data (Example use datapump with flashback_scn=xxx)
...
| ||
| ||
Column | ||
---|---|---|
| ||
Panel | ||
| ||
dbvrep> show apply_database | ||
Section |
Column | ||
---|---|---|
| ||
|
Panel | |||||||
---|---|---|---|---|---|---|---|
| |||||||
SET TRANSACTION NAME 'DBREPL_DB_UNITSRC_XID_UNITSRC'; | |||||||
Section | |||||||
Column | | 95% |
Panel | ||
---|---|---|
| ||
SET TRANSACTION NAME 'DBREPL_DB_UNITTRG_XID_UNITTRG'; |
4. Resume the replication
...
| ||
Column | ||
---|---|---|
| ||
Panel | ||
| ||
dbvrep> choose replication MINE dbvrep> choose replication MINE1 |
Note that the table needs to exist on the target side before the apply process can be resumed. Using a datapump in step 3 is a good choice, since the import creates table automatically if it does not exist.
...