Configuration from Standby to Active Source
These steps configure Oracle GoldenGate in passive mode. In this mode, the Oracle GoldenGate processes are ready, but not started, to capture data from the secondary database and replicate it to the primary database after a switchover of transaction activity to the secondary system.
Note:
This is a reverse image of the configuration that you just created.
To Configure the Primary Extract Group
Perform these steps on the live standby system.
-
On the source, use the
ADD EXTRACT
command to create an Extract group. For documentation purposes, this group is called ext_2.ADD EXTRACT
ext_2
, {TRANLOG | INTEGRATED TRANLOG}, BEGINtime
[option
[, ...]]See Reference for Oracle GoldenGate for detailed information about these and other
ADD EXTRACT
options that may be required for your installation. - Start
the
TRANLOG
Extractext_2
. Also see Preventing Data Looping. -
Use the
ADD EXTTRAIL
command to add a local trail. For documentation purposes, this trail is called local_trail_2.ADD EXTTRAIL
local_trail_2
, EXTRACText_2
For
EXTRACT
, specify the ext_2 group to write to this trail. -
Use the
EDIT PARAMS
command to create a parameter file for the ext_2 group. Include the following parameters plus any others that apply to your database environment. For possible additional required parameters, see the Oracle GoldenGate installation and setup guide for your database.-- Identify the Extract group: EXTRACT
ext_2
-- Specify database login information as needed for the database: [SOURCEDBdsn_2
][, USERIDALIASalias
] -- Log all scheduling columns if using integrated Replicat LOGALLSUPCOLS -- Specify the local trail this Extract writes to and the encryption algorithm: ENCRYPTTRAILalgorithm
EXTTRAILlocal_trail_2
-- Specify sequences to be captured: SEQUENCE [container
.]owner
.sequence
; -- Specify tables to be captured: TABLE [container
.]owner
.*;
To Configure the Data Pump
Perform these steps on the live standby system.
-
Use the
ADD EXTRACT
command to create a data pump group. For documentation purposes, this group is called pump_2.ADD EXTRACT
pump_2
, EXTTRAILSOURCElocal_trail_2
, BEGINtime
For
EXTTRAILSOURCE
, specify local_trail_2 as the data source. -
Use the
ADD RMTTRAIL
command to add a remote trail remote_trail_2 that will be created on the active source system.ADD RMTTRAIL
remote_trail_2
, EXTRACTpump_2
For
EXTRACT
, specify the pump_2 data pump to write to this trail.See Reference for Oracle GoldenGate for additional
ADD RMTTRAIL
options. -
Use the
EDIT PARAMS
command to create a parameter file for the pump_2 group. Include the following parameters plus any others that apply to your database environment.-- Identify the data pump group: EXTRACT
pump_2
-- Specify database login information as needed for the database: [SOURCEDBdsn_2
][, USERIDALIASalias
] -- Decrypt the data only if the data pump must process it. -- DECRYPTTRAIL -- Specify the name or IP address of the active source system -- and optional encryption of data over TCP/IP: RMTHOSTOPTIONSsystem_1
, MGRPORTport_number
, ENCRYPTencryption_options
-- Specify remote trail and encryption algorithm on active source system: ENCRYPTTRAILalgorithm
RMTTRAILremote_trail_2
-- Specify sequences to be captured: SEQUENCE [container
.]owner
.sequence
; -- Specify tables to be captured: TABLE [container
.]owner
.*;
To Configure the Replicat Group
Perform these steps on the active source.