Set Up an Integration Project

Oracle GoldenGate 29-9 ■ Initial Load Method ■ Tuning Replication Performances ■ One Source Multiple Staging Configuration

29.4.1 Initial Load Method

The staging tables contain a replica of the structure and data from the source tables. The Oracle GoldenGate processes capture changes on the source tables and apply them to the target. Yet the staging tables must be initially loaded with the original content of the source tables. You can use the following methods to perform the initial load: ■ Using Oracle GoldenGate: A specific GoldenGate process loads the whole content of the source tables into the staging tables. ■ Using Oracle Data Integrator: The Generate Interfaces IN option of Oracle Data Integrators Common Format Designer. This method uses ODI interfaces to transfer the data. ■ Using database backuprestore tools to copy data and structures.

29.4.2 Tuning Replication Performances

The following KM options can be used to improve replication performances: ■ COMPATIBLE: This Oracle-specific option affects the use of the PURGE key word and the way statistics using DBMS_STATS or ANALYZE are collected. Set this value to the database version of your staging server. ■ NB_APPLY_PROCESS: Number of Oracle GoldenGate Apply processes created on the staging server. ■ TRAIL_FILE_SIZE: Size of the Oracle GoldenGate trail file in Megabytes. For the NB_APPLY_PROCESS and TRAIL_FILE_SIZE parameters, see the Oracle GoldenGate Documentation on OTN for more information on performance tuning.

29.4.3 One Source Multiple Staging Configuration

It is possible to set up a configuration where changes are captured on a single source and replicated to several staging servers. The example below illustrates how to set this up in a typical configuration. Replication should source from source server SRC and replicate in both STG1 and STG2 staging servers. 1. Configure CDC for STG1 with the following configuration: ■ SRC_OGG_OBJECT_GROUP = SRC ■ SRC_SETUP_OGG_PROCESSES = YES ■ STG_OGG_OBJECT_GROUP = STG1 ■ STG_SETUP_OGG_PROCESSES = YES ■ ENABLE_ODI_CDC= YES 2. Start the journal and follow the instructions in the readme to set up the Oracle GoldenGate processes in SRC and STG1. 3. Configure CDC for STG2 with the following configuration: