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

Setting up a GoldenGate replication with mapping between different columns


In some of the GoldenGate topologies, you would probably have different table structures in the source and target environment. Different structures can include different table names, different column order, or different column names. When you want to map the data from a source table to a target table in which the column names are not the same, you need to specify some extra parameters in the Replicat process groups. In this recipe we will look into how this can be done.

Getting ready

For this recipe we will use the continuous replication setup for the SCOTT schema done in the Setting up a simple GoldenGate replication configuration between two single node databases recipe earlier in Chapter 2, Setting up GoldenGate Replication. We will rename two columns in the target EMP table as follows:

SQL> ALTER TABLE EMP RENAME COLUMN SAL TO SALARY;
SQL> ALTER TABLE EMP RENAME COLUMN COMM TO COMMISSION;

After this, the source...