Create an Attunity Stream Model Reverse-engineer an Attunity Stream Model

29 Oracle GoldenGate 29-1 29 Oracle GoldenGate This chapter describes how to work with Oracle GoldenGate in order to capture changes on source transactional systems and replicate them in a staging server for consumption by Oracle Data Integrator interfaces. This chapter includes the following sections: ■ Section 29.1, Introduction ■ Section 29.2, Installation and Configuration ■ Section 29.3, Working with the Oracle GoldenGate JKMs ■ Section 29.4, Advanced Configuration

29.1 Introduction

Oracle GoldenGate OGG product offers solutions that provide key business applications with continuous availability and real-time information. It provides guaranteed capture, routing, transformation and delivery across heterogeneous databases and environments in real-time. Using the Oracle GoldenGate knowledge modules requires that you know and understand Oracle GoldenGate concepts and architecture. See the Oracle GoldenGate Documentation on OTN for more information: http:www.oracle.comtechnetworkmiddlewaregoldengateoverview index.html

29.1.1 Overview of the GoldeGate CDC Process

Oracle Data Integrator uses Oracle GoldenGate to replicate online data from a source database to a staging database. This staging database contains a copy of the source tables and the ODI Changed Data Capture CDC infrastructure, both loaded using Oracle GoldenGate. The staging database can be stored in an Oracle or Teradata schema. The source database can be Oracle, Microsoft SQL Server, DB2 UDB, or Sybase ASE. In this chapter, database refers to any of these source database technologies. Setting up CDC with GoldenGate is done using the following process: 1. A replica of the source tables is created in the staging database, using, for example, the Oracle Data Integrator Common Format Designer feature. 2. Oracle Data Integrator Changed Data Capture CDC is activated on these replicated tables using either the JKM database to Oracle Consistent OGG or the JKM database to Teradata Consistent OGG. Starting the journals creates 29-2 Oracle® Fusion Middleware Connectivity and Knowledge Modules Guide for Oracle Data Integrator Oracle GoldenGate configuration files and sets up a CDC infrastructure in the staging database. Note that no active process is started for capturing source data at that stage. 3. Using the generated configuration files, an Oracle GoldenGate Extract process is configured and started to capture changes from the source database, and corresponding Replicat processes are configured and started to replicate these changes into the staging database. Changes are replicated into both the replicated source table and the CDC infrastructure. GoldenGate can optionally be configured to perform the initial load of the source data into the staging tables. 4. ODI interfaces can source from the replicated tables and use captured changes seamlessly within any ODI scenario.

29.1.2 Knowledge Modules

Oracle Data Integrator provides the Knowledge Modules listed in Table 29–1 for replicating online data from a source to a staging database. Unlike other CDC JKMs, the Oracle GoldenGate JKMs journalize data in the staging Oracle or Teradata database and not in the source server. The JKM database to Oracle Consistent OGG and the JKM database to Teradata Consistent OGG perform the same tasks: ■ Create and manage the ODI CDC framework infrastructure on the replicated tables ■ Generate the parameter files to setup the Oracle GoldenGate capture Extract and Delivery Replicat processes ■ Provide extra steps to check the configuration of the source database and proposes tips to correct the configuration ■ Generate a readme file explaining how to complete the setup Table 29–1 Oracle GoldenGate Knowledge Modules Knowledge Module Description JKM Oracle to Oracle Consistent OGG Creates the infrastructure for consistent set journalizing on an Oracle staging server and generates the Oracle GoldenGate configuration for replicating data from an Oracle source to this staging server. JKM DB2 UDB to Oracle Consistent OGG Creates the infrastructure for consistent set journalizing on an Oracle staging server and generates the Oracle GoldenGate configuration for replicating data from an IBM DB2 UDB source to this staging server. JKM Sybase ASE to Oracle Consistent OGG Creates the infrastructure for consistent set journalizing on an Oracle staging server and generates the Oracle GoldenGate configuration for replicating data from a Sybase ASE source to this staging server. JKM MSSQL to Oracle Consistent OGG Creates the infrastructure for consistent set journalizing on an Oracle staging server and generates the Oracle GoldenGate configuration for replicating data from a Microsoft SQL Server source to this staging server. JKM Oracle to Teradata Consistent OGG Creates the infrastructure for consistent set journalizing on a Teradata staging server and generates the Oracle GoldenGate configuration for replicating data from an Oracle source to this staging server.