Performing the Switch to Coordinated Replicat
Note:
Do not create the Replicat group until prompted by these instructions.
- Back up the current parameter files of all of the Extract groups, data pumps, and Replicat groups. You will be editing them.
- Create a working directory outside the Oracle GoldenGate directory. You will use this directory to create and stage new versions of the parameter files. If needed, you can create a working directory on the source and target systems.
- In the working directory, create a parameter file for a coordinated Replicat. Copy the
MAPparameters from the active parameter files of all of the Replicat groups to this parameter file, and then add the thread specifications and any other parameters that support your required coordinated Replicat configuration - If using multiple primary Extract groups, select one to keep, and then save a copy of its current parameter file to the working directory.
- Copy all of the
TABLEstatements from the other Extract groups to the new parameter file of the primary Extract that you are keeping. - In the working directory, save a copy of the parameter file of the data pump that is linked to the primary Extract that you are keeping.
- Copy all of the
TABLEstatements from the other data pumps to the copied parameter file of the kept data pump. - In the source database, create a simple dummy table on which a simple
INSERTstatement can be performed. For this procedure, the nameschema.eventis used. - Create the same table on the target system, to avoid the need for additional configuration parameters.
- Edit the active parameter files (not the copies) of all primary and data-pump Extract groups to add the following
EVENTACTIONSparameter to each one.TABLE schema.event, EVENTACTIONS(STOP);
- Edit the active parameter files (not the copies) of all of the Replicat groups to add the following
EVENTACTIONSparameter to each one.MAP schema.event, TARGET schema.event, EVENTACTIONS(IGNORE, STOP);
- Stop the Oracle GoldenGate processes gracefully in the following order:
-
Stop all Replicat processes.
-
Stop all data pumps.
-
Stop all Extract processes.
-
- Restart the Oracle GoldenGate processes in the following order so that the
EVENTACTIONSparameters take effect:-
Start all Extract processes.
-
Start all data pumps.
-
Start all Replicat processes.
-
- On the source system, issue a transaction on the
schema.eventtable that contains oneINSERTstatement. Make certain to commit the transaction. - In GGSCI, issue the
STATUScommand for all of the primary Extract and data pump processes on the source system, and issue the same command for all of the Replicat processes on the target system, until the commands show that all of the processes areSTOPPED.STATUS EXTRACT * STATUS REPLICAT *
- Replace the active parameter files of the primary Extract and data pump that you kept with the new parameter files from the working directory.
- Delete the unneeded Extract and data pump groups and their parameter files.
- Log into the target database by using the
DBLOGINcommand. - Delete all of the Replicat groups and their active parameter files.
- Copy or move the new coordinated Replicat parameter file from the working directory to the Oracle GoldenGate directory.
- In GGSCI, issue the
INFO EXTRACTcommand for the data pump and make note of its write checkpoint position in the output (remote) trail.INFO EXTRACTpump, DETAIL - Add a new coordinated Replicat group with the following parameters.
ADD REPLICAT
group, EXTTRAILtrail, EXTSEQNOsequence_number, EXTRBArba, COORDINATED MAXTHREADSnumberWhere:
-
groupis the name of the coordinated Replicat group. The name must match that of the new parameter file created for this group. -
EXTTRAILtrailis the name of the trail that the data pump writes to. -
EXTSEQNOsequence_numberis the sequence number of the trail as shown in the write checkpoint returned by theINFO EXTRACTthat you issued for the data pump. -
EXTRBArbais the relative byte address in the trail as shown in the write checkpoint returned byINFO EXTRACT. Together, these position Replicat to resume processing at the correct point in the trial. -
MAXTHREADSnumber specifies the maximum number of threads allowed for this group. This value should be appropriate for the number of threads that are specified in the parameter file.
-
- Start the primary Extract group.
- Start the data pump group.
- Start the coordinated Replicat group.