Second System in the Cascade
Configure the Manager process, Replicat group, and data pump on the second system in the cascade.
To Configure the Manager Process on the Second System
-
On the second system, configure the Manager process.
-
In the Manager parameter file, use the
PURGEOLDEXTRACTS
parameter to control the purging of files from the trail.
To Configure the Replicat Group on the Second System
-
Create a Replicat checkpoint table (unless using Oracle integrated Replicat). See About Checkpoint Table for instructions.
-
On the second system, use the
ADD REPLICAT
command to create a Replicat group. For documentation purposes, this group is called rep_1.ADD REPLICAT
rep_1
[, INTEGRATED | COORDINATED [MAXTHREADSnumber
]] , EXTTRAILremote_trail_1
, , BEGINtime
Use the
EXTTRAIL
option to link the rep_1 group to the remote trail remote_trail_1 that is on the local system.See Parameters and Functions Reference for Oracle GoldenGate for detailed information about these and other options that may be required for your installation.
-
On the second system, use the
EDIT PARAMS
command to create a parameter file for the Replicat 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 Replicat group: REPLICAT
rep_1
-- Specify database login information as needed for the database: [TARGETDBdsn_2
][, USERIDALIASalias
] -- Specify error handling rules: REPERROR (error, response) -- Specify tables for delivery and threads if using coordinated Replicat: MAP [container.|catalog.]owner.table, TARGET owner.table[, DEF template] [, THREAD (thread_ID)][, THREADRANGE (thread_range[, column_list])] ;Note:
For DB2 for i, you may need to use the
ADD TRANDATA
command on the target tables if they are not already journaled. Alternatively, you could use theSTRJRNPF
command to assign the tables to the appropriate journal. If the target tables are not required to be replicated by Oracle GoldenGate, theIMAGES(*AFTER)
option can be used withSTRJRNPF
. Since Oracle GoldenGate operates using transactions, all tables must be journaled to support transactions and this is not the default with DB2 for i.
To Configure an Extract Group on the Second 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 Parameters and Functions Reference for Oracle GoldenGate for detailed information about these and other
ADD EXTRACT
options that may be required for your installation. -
On the second system, use the
ADD EXTTRAIL
command to specify a local trail that will be created on the third system.ADD EXTTRAIL
local_trail_2
, EXTRACText_2
Use the
EXTRACT
argument to link this local trail to the ext_2 Extract group. -
On the second system, use the
EDIT PARAMS
command to create a parameter file for the ext_2 Extract 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 that this Extract writes to -- and encryption algorithm: ENCRYPTTRAILalgorithm
EXTTRAILlocal_trail_2
-- Ignore local DML, capture Replicat DML: IGNOREAPPLOPS GETREPLICATES -- Specify tables and sequences to be captured: SEQUENCE [container
.|catalog
.]owner
.sequence; TABLE [container
.|catalog
.]owner
.table
;
Note:
If replicating DDL operations, IGNOREAPPLOPS, GETREPLICATES
functionality is controlled by the DDLOPTIONS
parameter.
To Configure the Data Pump on the Second System