Use this procedure to synchronize the source and target data with the following utilities:
- Import/Export/Data Pump
- Store/Restore from tape
- FTP
Note: This document does not provide instructions for how to perform the chosen copy method. This procedure should be performed by someone who has a solid understanding of database copy methods.
Preliminary considerations
Read these points before you proceed.
Supported databases
Oracle source and Oracle target
Supported replication strategies
All but high-availability. This procedure is not appropriate for a high-availability strategy because it requires the source database to be quieted while the configuration file is being activated.
Requirements
- [Unix and Linux systems] Verify that the ORACLE_SID and ORACLE_HOME in the oratab file are correct for the instance you will be establishing with the hot backup. The SID must be the SID used in the routing map in the configuration file that you will be activating.
- Read the requirements before you start this procedure. For more information, see Requirements for Activating a Configuration.
- Users must stop accessing the production database while the copy and configuration activation take place.
- The target instance must exist.
- Make certain SharePlex database accounts exist in the source and target databases. This account usually is created during installation. See the SharePlex Installation and Setup Guide for more information.
- Before you start, review this procedure and see theSharePlex Reference Guide for more information about the commands that are used.
Naming conventions used
In this procedure, the "source" system is one of the following:
- The source system of a single-direction replication configuration, including cascading replication.
- All source systems of a consolidated replication configuration.
- The trusted source system in a peer-to-peer replication configuration.
- The primary node of a cluster (where the cluster VIP is running).
In this procedure, the "intermediary" system only needs to be part of this procedure if SharePlex will be posting to, and capturing from, an intermediary system in a cascading configuration.
In this procedure, the "target" system is one of the following:
- The target system of a single-direction replication configuration, including cascading and consolidated replication.
- The secondary systems in a peer-to-peer replication configuration.
- The primary node (where the cluster VIP is running) of the target cluster.
In this procedure, the SharePlex commands in the procedure apply to all sp_cop instances that apply to the replication strategy you are using (for example, all sp_cop processes on a target in consolidated replication).
Procedure
-
On the source system, stop user access to the objects that are in the replication configuration.
- If deploying consolidated replication, you can either stop access to all of the source systems at once and make the copies at the same time, or you can synchronize each source system one at a time using these instructions.
- If deploying peer-to-peer replication, stop access to all databases in the peer group, including the trusted source.
- Copy the files from the source system to the intermediary and target systems.
- On the source system, start sp_cop and sp_ctrl.
-
On the source system, activate the configuration file (all files if using consolidated replication).
sp_ctrl> activate config filename
- On the intermediary and target systems, start sp_cop and sp_ctrl.
-
On the intermediary and target systems, stop Post. Stopping Post allows any data that gets replicated before the target data is established to collect in the post queue.
sp_ctrl> stop post
- On the source system, allow users to resume access to the source database.
-
On the source system, verify that the sp_cop, Capture, and Read processes are running.
sp_ctrl> status
- Start and mount the intermediary and target databases, but do not allow users access.
- On the intermediary and target systems, apply the copy to the database.
-
On the intermediary and target systems, disable triggers on the tables, or run the sp_add_trigger.sql utility script so that the triggers ignore the SharePlex user.
- On the intermediary and target systems, disable check constraints and scheduled jobs that perform DML.
- [Partitioned replication only] If you are using vertically partitioned or horizontally partitioned replication for any tables, delete the unneeded columns and rows from those tables on the intermediary and target systems.
-
[Intermediary system only] Set the SP_OCT_REPLICATE_POSTER parameter to 1. This directs SharePlex to capture posted changes on that system and replicate them to the target system.
sp_ctrl> set param SP_OCT_REPLICATE_POSTER 1
-
[Intermediary system only] Activate the configuration file.
sp_ctrl> activate config filename
- [Peer-to-peer] Activate the configuration file on the target systems.
-
Start Post on:
- The intermediary system
- The trusted source and all other targets in a peer group
- All other targets
Note: SharePlex will start executing SQL statements that accumulated in the post queue.
- [Peer-to-peer] On the target systems in the peer group, allow users to resume access to the database.