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

Creating a GoldenGate configuration with a consistent state behind the target database


In this recipe you will learn how to set up an Oracle GoldenGate configuration with a deferred apply state target database. You will also learn about some scenarios where such a configuration can be useful.

Getting ready

For this recipe we will refer to the setup done in the Setup a simple GoldenGate replication configuration between two single node databases recipe in Chapter 2, Setting up GoldenGate Replication. For the purpose of this recipe, we will modify the replication to replicate only the records for the EMP table in the SCOTT schema. We will also modify the structure of the EMP table in the target database to add the following two new columns:

  • SOURCE_COMMIT_TIME TIMESTAMP

  • TARGET_COMMIT_TIME TIMESTAMP

This can be done as follows:

SQL> ALTER TABLE EMP ADD(SOURCE_COMMIT_TIME TIMESTAMP);

Table altered.

SQL> ALTER TABLE EMP ADD(TARGET_COMMIT_TIME TIMESTAMP);

Table altered.

How to do it....