This chapter contains instructions for deploying advanced new features of Oracle GoldenGate after the initial upgrade has been performed successfully. At this point, you can make configuration changes that support the new features that you want to use. See Release Notes for Oracle GoldenGate for Windows and UNIX for information about new features in version 12.1.2.
Note:
These instructions assume that you tested 12.1.2 and that all processes are running properly post-upgrade.This chapter contains the following topics.
Upgrading Extract from Classic Mode to Integrated Mode (Oracle)
Upgrading from Oracle Nonintegrated Replicat to Integrated Replicat (Oracle)
Deploying Feature Upgrades that Require Only Parameter Changes
Extract in integrated mode receives logical change records (LCRs) from a database logmining server. These instructions assume that Extract is currently running in Oracle GoldenGate version 11g classic capture mode and that you want to upgrade to integrated capture mode, either with the current trigger-based capture method or with the new triggerless method of mining DDL through the logmining server.
Note:
If you are using theLOGRETENTION option, where Extract works with the Oracle Recovery Manager (RMAN) to manage the logs, this upgrade automatically disables that feature and log retention is managed as part of integrated capture.Back up the current Oracle GoldenGate working directories.
While the Oracle GoldenGate processes continue to run in their current configuration, so that they keep up with current change activity, copy the Extract parameter file to a new name.
Perform the following configuration tasks on the server where Extract will be running:
Grant the appropriate privileges to the Extract user. See Installing and Configuring Oracle GoldenGate for Oracle Database.
Configure server resources to support shared memory for the logmining server. See Installing and Configuring Oracle GoldenGate for Oracle Database.
Edit the new parameter file to add the required parameters to support integrated capture. See Installing and Configuring Oracle GoldenGate for Oracle Database.
(If this will be a downstream mining deployment) Prepare the mining database. See Installing and Configuring Oracle GoldenGate for Oracle Database.
To support the upgrade to integrated capture, the transaction log that contains the start of the oldest open transaction must be available on the system where Extract will be running. To determine the oldest open transaction, issue the SEND EXTRACT command with the SHOWTRANS option. You can use the FORCETRANS or SKIPTRANS options of this command to manage specific open transactions, with the understanding that skipping a transaction may cause data loss and forcing a transaction to commit to the trail may add unwanted data if the transaction is rolled back by the user applications. Review these options in Reference for Oracle GoldenGate for Windows and UNIX before using them.
GGSCI> SEND EXTRACT group, SHOWTRANS� GGSCI> SEND EXTRACT group, { SKIPTRANS ID [THREAD n] [FORCE] |� FORCETRANS ID [THREAD n] [FORCE] }�
Follow the instructions for switching from classic capture to integrated capture in Administering Oracle GoldenGate for Windows and UNIX.
Note:
(Oracle database 11.2.0.4) Make certain to set theENABLE_GOLDENGATE_REPLICATION database initialization parameter to TRUE before restarting Oracle GoldenGate processes. Otherwise, the database may not support some integration features of Oracle GoldenGate (classic or integrated).When operating in integrated mode with an Oracle target, Replicat constructs and transmits logical change records (LCRs) to an inbound server in the target database, which takes advantage of parallel apply capabilities to apply the data to the target database.
Note:
Do not configure the switch between Replicat modes to occur immediately after Extract recovers from a failure or is repositioned to a different location in the transaction log.Back up the current Oracle GoldenGate working directories on the target system where the Replicat that you want to upgrade is located.
While the Oracle GoldenGate processes continue to run in their current configuration, so that they keep up with current change activity, copy the Replicat parameter file to a new name.
Perform the following configuration tasks:
Grant the appropriate privileges to the Replicat user. See Installing and Configuring Oracle GoldenGate for Oracle Database.
(Optional) Edit the new parameter file to add the DBOPTIONS parameter with the INTEGRATEDPARAMS option to specify parallelism. The default is 4. See Installing and Configuring Oracle GoldenGate for Oracle Database.
GGSCI> EDIT PARAMS group
Follow the instructions for switching from nonintegrated Replicat to integrated Replicat in Administering Oracle GoldenGate for Windows and UNIX.
Note:
(Oracle database 11.2.0.4) Make certain to set theENABLE_GOLDENGATE_REPLICATION database initialization parameter to TRUE before restarting Oracle GoldenGate processes. Otherwise, the database may not support some integration features of Oracle GoldenGate (classic or integrated).This procedure upgrades a regular Replicat configuration (non-coordinated) to a coordinated configuration. This procedure assumes you are replacing a configuration that partitions data across multiple Extract and Replicat processes with a configuration that uses one Extract and one coordinated Replicat. The coordinated Replicat replaces the need for parallel Replicat processes. A coordinated Replicat requires only one trail, so there is no need for parallel Extract processes or data pumps.
For more information about coordinated Replicat, see Administering Oracle GoldenGate for Windows and UNIX.
This procedure makes use of the EVENTACTIONS parameter with a STOP action, which enables all of the Replicat processes to stop at the same point in the trail. The EVENTACTIONS action is triggered by a transaction that contains an INSERT to a dummy table. The INSERT causes each process to finish processing everything up to, and including, the event transaction and then stop cleanly. An additional event action of IGNORE is specified for Replicat to prevent the parallel Replicat processes from attempting to insert the same record to the target. The result of this procedure is that all processes stop at the same point in the data stream: after completing the INSERT transaction to the dummy table.
After the processes stop, you move all of the TABLE statements to one primary Extract group. You move the same TABLE statements to the data pump that reads the trail of the Extract group that you retained. You move all of the MAP statements to a new coordinated Replicat group that reads the remote trail that is associated with the retained data pump. Once all of the MAP statements are in one parameter file, you edit them to add the thread specifications to support a coordinated Replicat. (This can be done ahead of time.) Then you drop the Replicat group and add it back in coordinated mode with the same name.
To perform the switch to coordinated Replicat:
Review the configuration requirements for using a coordinated Replicat in Administering Oracle GoldenGate for Windows and UNIX. 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 MAP parameters 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 parallel 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 TABLE statements 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 TABLE statements 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 INSERT statement can be performed. For this procedure, the name schema.event is used.
Edit the active parameter files (not the copies) of all primary and data-pump Extract groups to add the following EVENTACTIONS parameter 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 EVENTACTIONS parameter 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 EVENTACTIONS parameters take effect:
Start all Extract processes.
Start all data pumps.
Start all Replicat processes.
On the source system, issue a transaction on the schema.event table that contains one INSERT statement. Make certain to commit the transaction.
In GGSCI, issue the STATUS command 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 are STOPPED.
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 DBLOGIN command.
GGSCI> DBLOGIN {USERID {/ | userid}[, PASSWORD password] [algorithm ENCRYPTKEY {keyname | DEFAULT}] |USERIDALIAS alias [DOMAIN domain]}
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 EXTRACT command for the data pump and make note of its write checkpoint position in the output (remote) trail.
INFO EXTRACT pump, DETAIL
Add a new coordinated Replicat group with the following parameters.
ADD REPLICAT group, EXTTRAIL trail, EXTSEQNO sequence_number, EXTRBA rba, COORDINATED MAXTHREADS number [, CHECKPOINTTABLE owner.table]
where:
group is the name of the coordinated Replicat group. The name must match that of the new parameter file created for this group.
EXTTRAIL trail is the name of the trail that the data pump writes to.
EXTSEQNO sequence_number is the sequence number of the trail as shown in the write checkpoint returned by the INFO EXTRACT that you issued for the data pump.
EXTRBA rba is the relative byte address in the trail as shown in the write checkpoint returned by INFO EXTRACT. Together, these position Replicat to resume processing at the correct point in the trial.
MAXTHREADS number 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.
CHECKPOINTTABLE owner.table provide the option to specify a checkpoint table specifically for this Replicat group, rather than use the checkpoint table specified with the GLOBALS parameter CHECKPOINTTABLE.
Start the primary Extract group.
Start the data pump group.
Start the coordinated Replicat group.
This procedure guides you through changes that are necessary to update the Oracle GoldenGate parameter files to add parameters that support new features and remove parameters that are no longer required.
Note:
Some new features replace existing parameters with new ones. Make certain to remove the parameters that are no longer needed.Use this procedure to implement the following new features:
Enhanced encryption support for user passwords and trail files: You need to make parameter changes and add the required security structures to implement this new functionality. See Release Notes for Oracle GoldenGate for Windows and UNIX and Administering Oracle GoldenGate for Windows and UNIX.
Conflict Detection and Resolution (CDR) enhancements: See Release Notes for Oracle GoldenGate for Windows and UNIX for changes to CDR resolution behavior. See Administering Oracle GoldenGate for Windows and UNIX for more information about conflict detection and resolution.
Capture from and apply to an Oracle container database: You need to specify three-part object names and register Extract with the appropriate containers. See Installing and Configuring Oracle GoldenGate for Oracle Database.
Other parameter changes listed in Release Notes for Oracle GoldenGate for Windows and UNIX.
To implement the new features:
Back up the current Oracle GoldenGate working directories on the source and target systems.
While the Oracle GoldenGate processes continue to run in their current configuration, so that they keep up with current change activity, copy the parameter files to new names.
Edit the new parameter files to add the new parameters. Do not change group names or the trail name.
Stop user activity on the source tables.
In GGSCI on the source system, issue the SEND EXTRACT command with the LOGEND option until it confirms that Extract finished processing all of the data in the transaction log.
GGSCI> SEND EXTRACT group LOGEND
In GGSCI, issue SEND EXTRACT with the ROLLOVER option to cause Extract to roll over the trail to a new file the next time it starts.
GGSCI> SEND EXTRACT group ROLLOVER
In GGSCI, stop Extract.
Allow user activity on the source tables.
In GGSCI on the target system, issue the SEND REPLICAT command with the STATUS option until it shows a status of "At EOF" to indicate that Replicat finished processing all of the data in the trail.
GGSCI> SEND REPLICAT group STATUS
In GGSCI, stop the data pump on the source system and stop Replicat on the target.
GGSCI> STOP REPLICAT group
Copy the edited new parameter file(s) back to the original name(s).
In GGSCI, on the target system, start Replicat.
GGSCI> START REPLICAT group
In GGSCI, on the source system, start Extract.
GGSCI> START EXTRACT group
In GGSCI, start the data pump on the source system.
GGSCI> START REPLICAT group