Overview of the GoldeGate CDC Process

29-4 Oracle® Fusion Middleware Connectivity and Knowledge Modules Guide for Oracle Data Integrator If the source database is IBM DB2 UDB, Microsoft SQL Server, or Sybase ASE, Oracle GoldenGate uses the ODBC driver to connect to the source database. You need to install the ODBC driver and to declare the data source in your system. You also need to set the data source name DSN in the KM option SRC_DSN.

29.3 Working with the Oracle GoldenGate JKMs

To use the JKM database to Oracle Consistent OGG or the JKM database to Teradata Consistent OGG in your Oracle Data Integrator integration projects, you need to perform the following steps: 1. Define the Topology 2. Create the Replicated Tables 3. Set Up an Integration Project 4. Configure CDC for the Replicated Tables 5. Configure and Start Oracle GoldenGate Processes 6. Design Interfaces Using Replicated Data

29.3.1 Define the Topology

This step consists in declaring in Oracle Data Integrator the staging data server, the source data server, as well as the physical and logical schemas attached to these servers. To define the topology in this configuration, perform the following tasks:

1. Define the Staging Server

2. Create the Staging Physical Schema

3. Define the Source Data Server

4. Create the Source Physical Schema

29.3.1.1 Define the Staging Server

Create a data server for the Oracle or Teradata technology. For more information, see: ■ Section 2.3.1, Creating an Oracle Data Server ■ Section 11.3.1, Creating a Teradata Data Server

29.3.1.2 Create the Staging Physical Schema

Create an Oracle or Teradata physical schema using the standard procedure, as described in Creating a Physical Schema of the Oracle Fusion Middleware Developers Guide for Oracle Data Integrator. Create for this physical schema a logical schema using the standard procedure, as described in Creating a Logical Schema of the the Oracle Fusion Middleware Developers Guide for Oracle Data Integrator and associate it in a given context. Note: The physical schema defined in the staging server will contain in the data schema the changed records captured and replicated by the Oracle GoldenGate processes. The work schema will be used to store the ODI CDC infrastructure. Oracle GoldenGate 29-5

29.3.1.3 Define the Source Data Server

You have to define a source data server from which Oracle GoldenGate will capture changes. Create a data server for your source technology using the standard procedure. For more information, see the chapter corresponding to your source technology in this guide: ■ Section 2.3.1, Creating an Oracle Data Server ■ Section 7.3.1, Creating a Microsoft SQL Server Data Server ■ Section 14.3.1, Creating a DB2400 Data Server ■ Chapter 16, Sybase AS Enterprise This data server represents the source database instance.

29.3.1.4 Create the Source Physical Schema

Create a physical schema under the data server that you have created in Section 29.3.1.3, Define the Source Data Server . Use the standard procedure, as described in Creating a Physical Schema of the Oracle Fusion Middleware Developers Guide for Oracle Data Integrator. Create for this physical schema a logical schema using the standard procedure, as described in Creating a Logical Schema of the Oracle Fusion Middleware Developers Guide for Oracle Data Integrator and associate it in a given context.

29.3.2 Create the Replicated Tables

Oracle GoldenGate will replicate in the staging server the records changed in the source. In order to perform this replication, the source table structures must be replicated in the staging server. To replicate these source tables:

1. Create a new Data Model using the Oracle or Teradata technology. This model

must use the logical schema created using the instructions in Section 29.3.1.2, Create the Staging Physical Schema . See Creating a Model in the Oracle Fusion Middleware Developers Guide for Oracle Data Integrator for more information on model creation. Note that you do not need to reverse-engineer this data model. 2. Create a new diagram for this model and add to this diagram the source tables that you want to replicate. 3. Generate the DDL Scripts and run these scripts for creating the tables in the staging data server. 4. An initial load of the source data can be made to replicate this data into the staging tables. You can perform this initial load with ODI using the Generate Interface IN feature of Common Format Designer. Alternately, you can use Oracle GoldenGate to perform this initial load, by setting the USE_OGG_FOR_INIT JKM option to Yes when you Configure CDC for the Replicated Tables .