Book Image

Oracle Goldengate 11g Complete Cookbook

By : Ankur Gupta
Book Image

Oracle Goldengate 11g Complete Cookbook

By: Ankur Gupta

Overview of this book

Oracle Goldengate 11g Complete Cookbook is your complete guide to all aspects of Goldengate administration. The recipes in this book will teach you how to setup Goldengate configurations for simple and complex environments requiring various filtering and transformations. It also covers various aspects of tuning and troubleshooting the replication setups using exception handling, custom fields, and logdump utility.The book begins by explaining some basic tasks like Installation and Process groups setup. You will then be introduced to some further topics including DDL replication and various options to perform Initial Loads. You will then learn some advanced administration tasks such as Multi Master replication setup and conflict resolution. Further recipes, contain the cross platform replication and high availability options for Goldengate.
Table of Contents (16 chapters)
Oracle GoldenGate 11g Complete Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Performing an initial load using an extract file to the GoldenGate's replicat method


In this recipe we will look into the detailed steps of instantiating a target database from a source database using the GoldenGate extract file to the replicat method. For this, we will instantiate the EMP table with 1 million rows to the target database while it gets updated with various transactions. We will also verify at the end of the initial load that all of these changes have been applied to the target as well.

Getting ready

For this recipe we will use the following setup:

  1. Create a modified version of the EMP table that is delivered in the SCOTT demo schema with Oracle binaries in the source and target databases. You can use the following DDL statement to create the EMP table:

    CREATE TABLE EMP (
    EMPNO NUMBER(10) PRIMARY KEY, 
    ENAME VARCHAR2(25),
    JOB VARCHAR2(25),
    MGR NUMBER(10),
    HIREDATE DATE,
    SAL NUMBER(20,2),
    COMM NUMBER(20,2),
    DEPTNO NUMBER(10),
    CITY VARCHAR2(25));
    
  2. Use the following script to load...