Resynchronizing Using a Third-Party Dump Utility

Coordinate resynchronization after you dump the primary database using a third-party dump utility, such as a disk snapshot.

Third-party tools do not interact as closely with the primary database as native database dump utilities. If your third-party tool does not record anything in the primary database transaction log that Replication Agent can use to generate a dump database marker, generate your own dump database markers to complete the resynchronization process. See your third-party tool documentation.

  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. Use the third-party utility to obtain a dump of the primary database contents.
  6. Determine the dump point based on information from the primary database when you took the dump, or information from the third-party utility. With a third-party utility, 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 in-progress transactions from the disk snapshot, and then use the “end of transaction log” point as the dump database marker.
  7. To mark the end of the dump position that you obtained in step 5, execute the stored procedure on the primary database for Replication Agent:
    lr_dump_marker oracle scn
  8. Restart Replication Agent 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, following the instructions in the database and third-party utility 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. If the maintenance and DDL users do not exist in the primary database, add these users to the replicate database after you apply the dump from the primary database.
  13. Run the hds_oracle_new_setup_for_replicate.sql script on the replicate database to add the rs_info and rs_lastcommit tables to the replicate database.
    The script also inserts relevant values and grants the required permissions in the replicate database.
  14. After you apply the dump to the replicate database, resume DSI:
    resume connection to data_server.database