top of page

Oracle Golden Gate DDL Replication

Replicate DDL changes seamlessly with GoldenGate.

Data Definition Language (DDL) replication is the process of replicating database schema changes, such as creating, dropping, and modifying tables, views, and other objects, from one database to another. In this article, we will discuss the basics of Oracle Golden Gate DDL replication


Quick start with DDL Replication


You can enable DDL replication by simply adding below to extract parameter file

DDL INCLUDE MAPPED
Note: Do not use DDL INCLUDE ALL until it is really required.

Now if you add new column on source table, it will reflect on target too

ALTER TABLE table_name ADD col_namecol_definition;


Configure Golden Gate DDL Replication


Create a test table on source for the purpose of testing DDL replication

oracle golden gate ddl replication - create table

Create table on target with same structure as source

oracle golden gate ddl replication - setup ddl replication

On source, add supplemental logging for the table

oracle golden gate ddl replication - supplemental logging

Add the extract

oracle golden gate ddl replication - add the extract

Register the extract and edit parameters to add DDL INCLUDE MAPPED

oracle golden gate ddl replication - register the extract and edit parameters

Add data pump process

oracle golden gate ddl replication - data pump process
oracle golden gate ddl replication - data pump process parameters

Start the extract and pump process

oracle golden gate ddl replication - start extract on source

Let us add replicat on target

oracle golden gate ddl replication - add replicat on target

Below are the parameters used for rep12

oracle golden gate ddl replication - edit replicate parameters

Start replicat process on target

oracle golden gate ddl replication - start replicat process on target

Test DDL Replication


Let us add a column on the source table

oracle golden gate ddl replication - edit source table

Check the extract stats

oracle golden gate ddl replication - stats extract

Check the pump stats

oracle golden gate ddl replication - stats pump

Check the replicat stats

oracle golden gate ddl replication - stats replicat

Now check the target table if the new column is added or not

oracle golden gate ddl replication - check target table definition


Become a top notch dba with DBA Genesis
Start your DBA career today
bottom of page