Corrections to the procedures in the scenarios for Oracle database resynchronization

The sequence of steps in the procedures for these scenarios documented in “Database resynchronization scenarios,” in Chapter 13, “Resynchronizing Oracle Replicate Databases” are incorrect:

The correct procedures are:

StepsResynchronizing directly from a primary database

  1. Stop replication processing by Replication Agent. Do not alter the truncation point. In Replication Agent, execute:

    suspend
    
  2. Suspend the Replication Server DSI connection to the replicate database:

    suspend connection to dataserver.database
    
  3. Instruct Replication Server to remove data from the replicate database outbound queue and wait for a resync marker from the primary database Replication Agent:

    resume connection to data_server.database skip to 
    resync marker
    
  4. If the truncation point has not been moved, proceed to step 5. Otherwise, reinitialize the Replication Agent repository before you obtain a dump of the primary database contents. In the Replication Agent, execute:

    ra_init force
    go
    
  5. Obtain a dump of the primary database contents. See your database documentation. If you use the Recovery Manager (RMAN) for Oracle, obtain the last System Change Number (SCN) of the RMAN backup using the Oracle list backup command. In Replication Agent, set this SCN as the value of lr_dump_marker:

    lr_dump_marker oracle scn
    
  6. Instruct Replication Agent to start in resync mode and send a resync marker to Replication Server:

    resume resync
    go
    
  7. In the Replication Server system log, verify that DSI has received and accepted the resync marker from Replication Agent by looking for this message:

    DSI for data_server.database received and processed
    Resync Database Marker. Waiting for Dump Marker.
    

    After DSI processes the resync marker for the replicate database, you can apply the dump to the replicate database.

    NoteIf you are resynchronizing multiple databases, verify that the DSI connection for each of the databases you want to resynchronize has accepted the resync marker.

  8. Apply the dump of the primary database to the replicate database. See your database documentation.

  9. Verify that Replication Server has processed the dump database marker by looking for this message in the Replication Server system log:

    DSI for data_server.database received and processed
    Dump Marker. DSI is now suspended. Resume after database has been reloaded.
    

    When Replication Server receives the dump marker, the DSI connection automatically suspends.

  10. After you apply the dump to the replicate database, resume DSI using:

    resume connection to data_server.database
    

StepsResynchronizing after using a third-party utility to create a dump

  1. Stop replication processing by Replication Agent. Do not alter the truncation point. In Replication Agent, execute:

    suspend
    
  2. Suspend the Replication Server DSI connection to the replicate database:

    suspend connection to dataserver.database
    
  3. Instruct Replication Server to remove data from the replicate database outbound queue and wait for a resync marker from the primary database Replication Agent:

    resume connection to data_server.database skip to
    resync marker
    
  4. If the truncation point has not been moved, proceed to step 5. Otherwise, reinitialize the Replication Agent repository before you obtain a dump of the primary database contents. In the Replication Agent, execute:

    ra_init force
    go
    
  5. Obtain a dump of the primary database contents using the third-party dump utility.

  6. Determine the dump point based on information from the primary database when you took the dump, or information from the third-party tool. With a third-party tool, you are responsible for determining the dump point. For example, if you are using a disk replication tool, you can temporarily halt activity at the primary database to eliminate transactions in progress from the disk snapshot, and then use the “end of transaction log” point as the dump database marker.

  7. Execute the stored procedure on the primary database for Replication Agent to mark the end of the dump position that you obtained in step 5:

    lr_dump_marker oracle scn
    
  8. Instruct Replication Agent to start in resync mode and send a resync marker to Replication Server:

    resume resync
    go
    

    Replication Agent automatically generates a dump database marker at a time based on the end of dump position that you obtained in step 6 and set in step 7, and sends the dump database marker to Replication Server.

  9. Verify that DSI has received and accepted the resync marker from Replication Agent by looking for this message in the Replication Server system log:

    DSI for data_server.database received and processed
    Resync Database Marker. Waiting for Dump Marker.
    
  10. Apply the dump of the primary database from the third-party tool to the replicate database. See your database and third-party tool documentation.

  11. Verify that Replication Server has processed the dump database marker by looking for this message in the Replication Server system log:

    DSI for data_server.database received and processed
    Dump Marker. DSI is now suspended. Resume after
    database has been reloaded.
    

    When Replication Server receives the dump marker, the DSI connection automatically suspends.

  12. After you apply the dump to the replicate database, resume DSI:

    resume connection to data_server.database
    

StepsResynchronizing the active and standby databases when the warm standby environment is the replicate site

  1. Stop replication processing by both the primary database Replication Agent and the warm standby active database Replication Agent. Do not alter the truncation point. In Replication Agent, execute:

    suspend
    
  2. Suspend the Replication Server DSI connection to the active and standby databases:

    suspend connection to dataserver.database
    
  3. Instruct Replication Server to remove data from the outbound queue of the active and standby databases, and wait for a resync marker from the primary database Replication Agent:

    resume connection to data_server.database skip to 
    resync marker
    
  4. If the truncation point has not been moved, proceed to step 5. Otherwise, reinitialize the Replication Agent repository before you obtain a dump of the primary database contents. In the primary Replication Agent, execute:

    ra_init force
    go
    
  5. Obtain a dump of the primary database contents. See your database documentation. If you use the Recovery Manager (RMAN) for Oracle, obtain the last System Change Number (SCN) of the RMAN backup using the Oracle list backup command. In Replication Agent, set this SCN as the value of lr_dump_marker:

    lr_dump_marker oracle scn
    
  6. Instruct the primary Replication Agent to start in resync mode and send a resync marker to Replication Server:

    resume resync
    go
    
  7. Verify that DSI for the active database has received and accepted the resync marker from the primary database Replication Agent by looking for this message in the Replication Server system log:

    DSI for data_server.database received and processed
    Resync Database Marker. Waiting for Dump Marker.
    
  8. Verify that the Replication Server DSI for the active database has processed the dump database marker by looking for this message from the active database In the Replication Server system log:

    DSI for data_server.database received and processed
    Dump Marker. DSI is now suspended. Resume after 
    database has been reloaded.
    
  9. Apply the dump of the primary database to the active database. See your database documentation.

  10. Move the truncation point to the end of the transaction log for the active database. In Replication Agent, execute:

    pdb_xlog move_truncpt
    go
    
  11. Reinitialize Replication Agent repository based on the latest system data from the active database:

    ra_init force
    go
    
  12. Instruct Replication Agent for the active database to start in resync mode with the init option. In Replication Agent, execute:.

    resume resync, init
    
  13. Verify that DSI for the standby database has received and accepted the resync marker from the active database Replication Agent by looking for this message In the Replication Server system log:

    DSI for data_server.database received and processed
    Resync Database Marker. DSI is now suspended. Resume 
    after database has been reloaded.
    
    

    When Replication Server receives and processes the resync database with init marker, the DSI connection suspends.

  14. Obtain a dump of the active database contents and apply the dump to the standby database. You can also apply the dump of the primary database from step 5 if the dump does not include database configuration information.

  15. Resume DSI to the active and standby databases:

    resume connection to data_server.database