Create the Staging Physical Schema

Oracle GoldenGate 29-7 ■ SRC_DB_USER: Source schema or database user name ■ SRC_DB_PASSWORD: Source schema or database user password ■ SRC_OGG_PATH: Oracle GoldenGate installation path on the source server ■ SRC_DSN: Name of the data source. This KM option is required when the ODBC driver is used. Note that this option does not exist in the JKM Oracle to Oracle Consistent OGG. ■ STG_OGG_OBJECT_GROUP: Name of the Oracle GoldenGate staging object group ■ STG_HOST_NAME: Name or IP address of the staging machine ■ STG_MANAGER_PORT: TCP port on which the Oracle GoldenGate Manager process is listening on the staging machine ■ STG_OGG_PATH: Oracle GoldenGate installation path on the staging server ■ USE_OGG_FOR_INIT: Generate the Oracle GoldenGate processes to perform the initial load of the replicated tables. If you have performed this initial load using Oracle Data Integrator while Creating the Replicated Tables, you can leave this option to NO. 2. Select the tables that you want to replicate or the model if want to replicate all tables, right-click then select Changed Data Capture Add to CDC.

3. Select the model, right-click then select Changed Data Capture Subscriber

Subscribe . Add subscribers for this model.

4. Select the model, right-click then select Changed Data Capture Start Journal.

The JKM creates the CDC infrastructure and generates the configuration for Oracle GoldenGate. You can review the result of the journal startup action: ■ The Oracle GoldenGate configuration files, as well as a Readme.txt file are generated in the directory that is specified in the LOCAL_TEMP_DIR KM option. You can use these files to Configure and Start Oracle GoldenGate Processes . ■ The CDC infrastructure is set up correctly. The journalized datastores appear in the Models accordion with a Journalizing Active flag. You can right-click the model and select Changed Data Capture Journal Data… to access the journalized data for these datastores. Note: For Sybase users only: When defining the data source name, you have to add the database server name to the datasource name as follows: DSN_nameSYBASE_DBSERVER Note: This name should be unique across the entire information system. This name must not be longer than 5 characters and must contain only upper case letters andor digits. 29-8 Oracle® Fusion Middleware Connectivity and Knowledge Modules Guide for Oracle Data Integrator See Working with Changed Data Capture in the Oracle Fusion Middleware Developers Guide for Oracle Data Integrator for more conceptual information and detailed instructions on CDC.

29.3.5 Configure and Start Oracle GoldenGate Processes

The JKM generates in the LOCAL_TEMP_DIR a folder named after the source and target object groups. This folder contains the following: ■ The Readme.txt file that contains detailed instructions for configuring and starting the Oracle GoldenGate processes. ■ The src folder that contains configuration files to upload on the source server, in the Oracle GoldenGate installation directory. ■ The stg folder that contains configuration files to upload on the staging server, in the Oracle GoldenGate installation directory. The detailed instructions, customized for your configuration, are provided in the readme file. These instructions include:

1. Uploading or copying files from the src folder to the source server.

2. Uploading or copying files from the stg folder to the staging server.

3. Running on the source server the OBEY file generated by the JKM for starting the

Extract process, using the ggsci command line.

4. Generating on the source server definition file using the defgen command line.

5. Copying this definition file to the staging server.

6. If the initial load option is used:

■ Running on the staging server the OBEY file generated by the JKM for the initial load, using the ggsci command line. ■ Running on the source server the OBEY file generated by the JKM for the initial load, using the ggsci command line.

7. Finally Running on the staging server the OBEY file generated by the JKM for the

starting the Replicat processes, using the ggsci command line. See the Oracle GoldenGate documentation on OTN for more information on OBEY files, the ggsci and defgen utilities.

29.3.6 Design Interfaces Using Replicated Data

You can use the data in the replicated data as a source in your integration interfaces. This process is similar to using a source datastore journalized in consistent set mode. See Using Changed Data: Consistent Set Journalizing in the the Oracle Fusion Middleware Developers Guide for Oracle Data Integrator for more information.

29.4 Advanced Configuration

This section includes the following advanced configuration topics: Note: Although this CDC configuration supports consistent set journalizing, it is not required to order datastores in the Journalized Table tab of the model after adding them to CDC.