Configuration from Secondary System to Primary System
These steps add the processes necessary to send data from the secondary system to the primary database.
To Configure the Primary Extract Group
Perform these steps on the secondary system.
Note:
This is a reverse image of the configuration that you just created.
-
Use the
ADD EXTRACTcommand to create a primary Extract group. For documentation purposes, this group is calledextn.ADD EXTRACT extn, {TRANLOG | INTEGRATED TRANLOG}, BEGIN time -
Use the
ADD EXTTRAILcommand to add a local trail. For documentation purposes, this trail is calleden.ADD EXTTRAIL en, EXTRACT extnFor Extract, specify the
extngroup to write to this trail. -
Use the
EDIT PARAMScommand to create a parameter file for theextngroup. 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 extn -- Specify database login information as needed for the database: [SOURCEDB dsnn][, USERIDALIAS alias] -- Specify the local trail that this Extract writes to -- and the encryption algorithm: ENCRYPTTRAIL algorithm EXTTRAIL en -- Exclude Replicat transactions. Uncomment ONE of the following: -- Db2 z/OS, Db2 LUW, Db2 IBM i, and Oracle: -- TRANLOGOPTIONS EXCLUDEUSER Replicat_user -- Oracle integrated capture: -- EXCLUDETAG tag -- SQL Server: -- TRANLOGOPTIONS EXCLUDETRANS FILTERTABLE schema.checkpointtable -- Oracle: -- TRACETABLE trace_table_name -- Log all scheduling columns for CDR and if using integrated Replicat LOGALLSUPCOLS -- Specify tables to be captured and (optional) columns to fetch: TABLE [container.|catalog.]owner.* [, FETCHCOLS cols | FETCHCOLSEXCEPT cols];Note:
To replicate Oracle DBFS data, specify the internally generated local read-write DBFS tables in the
TABLEstatement on each node. For more information on identifying these tables and configuring DBFS for propagation by Oracle GoldenGate, see Applying the Required Patch in Using Oracle GoldenGate for Oracle Database.
To Configure the Data Pump
Perform these steps on the secondary system.
-
Use the
ADD EXTRACTcommand to create a data pump group. For documentation purposes, this group is calledpumpn.ADD EXTRACT pumpn, EXTTRAILSOURCE en, BEGIN timeFor
EXTTRAILSOURCE, specifyenas the data source. -
Use the
ADD RMTTRAILcommand to add a remote trail that will be created on the primary system. For documentation purposes, this trail is calledrt.ADD RMTTRAIL rt, EXTRACT pumpnFor
EXTRACT, specify thepumpndata pump to write to this trail. -
Use the
EDIT PARAMScommand to create a parameter file for thepump_2group. Include the following parameters plus any others that apply to your database environment.-- Identify the data pump group: EXTRACTpumpn-- Specify database login information as needed for the database: [SOURCEDB dsnn][, USERIDALIAS alias] -- Decrypt the data only if the data pump must process it. -- DECRYPTTRAIL -- Specify the name or IP address of the primary system -- and optional encryption of data over TCP/IP: RMTHOSTOPTIONS system_1, MGRPORT port_number, ENCRYPT encryption_options -- Specify the remote trail and encryption algorithm on the primary system: ENCRYPTTRAIL algorithm RMTTRAIL rt -- Specify tables to be captured: TABLE [container.|catalog.]owner.*;Note:
To replicate Oracle DBFS data, specify the internally generated local read-write DBFS tables in the
TABLEstatement on each node. For more information on identifying these tables and configuring DBFS for propagation by Oracle GoldenGate, see Configuring the DBFS File System in Using Oracle GoldenGate for Oracle Database.
To Configure the Replicat Group
Perform these steps on the primary system.
-
Create the Replicat checkpoint table after using the
DBLOGINcommand to connect to the database. SeeADD CHECKPOINTTABLEin Command Line Interface Reference for Oracle GoldenGate. -
Run the command:
ADD CHECKPOINTTABLE schema.checkpointtable -
Use the
ADD REPLICATcommand to create a Replicat group. For documentation purposes, this group is calledreps.ADD REPLICAT reps [, PARALLEL | INTEGRATED | COORDINATED [MAXTHREADS number]] , EXTTRAILrt, CHECKPOINTTABLE schema.checkpointtableFor
EXTTRAIL, specifyremote_trail_1as the trail that this Replicat reads. -
Use the
EDIT PARAMScommand to create a parameter file for therep_2group. Include the following parameters plus any others that apply to your database environment.-- Identify the Replicat group: REPLICAT reps -- Specify database login information as needed for the database: [TARGETDB dsns][, USERIDALIAS alias] -- Specify error handling rules: REPERROR (error, response) -- Specify tables for delivery, threads if coordinated Replicat -- and conflict-resolution: MAP [container.|catalog.]owner.*, TARGET owner.*, COMPARECOLS (ON operation {ALL | KEY | KEYINCLUDING (col_list) | ALLEXCLUDING (col_list)}), RESOLVECONFLICT (conflict type (resolution_name, resolution_type COLS (col[,...])) [, THREAD (thread_ID)] [, THREADRANGE (thread_range[, column_list])] ; -- Specify mapping of exceptions to exceptions table: MAP [container.|catalog.]owner.*, TARGET owner.exceptions, EXCEPTIONSONLY;Note:
To replicate Oracle DBFS data, specify the internally generated local read-write DBFS tables in the
TABLEstatement on each node.