DDL Replication with Multiple Replication Agents

You can configure each Replication Agent instance to replicate all DDL operations or no DDL operations in the primary database.

In a Replication Agent group, you can also configure each Replication Agent instance to replicate:
To avoid DDL synchronization errors with multiple Replication Agents, use these keywords with the pdb_setrepddl command:

Example

A Replication Agent group containing three instances replicates DDL operations performed on these tables in the primary database:
  • table_A is marked for replication by instance ra_instance_1.
  • table_B is marked for replication by instance ra_instance_2.
  • table_C is marked for replication by instance ra_instance_3.
  • table_D is not marked for replication by any instance.
The Replication Agent instances use the pdb_setrepddl command to specify which DDL to replicate:
ra_instance_1>pdb_setrepddl enable, marked
ra_instance_1>pdb_setrepddl enable, unmarked
ra_instance_2>pdb_setrepddl enable, marked
ra_instance_3>pdb_setrepddl enable, marked
The DDL is replicated as follows:

Replication Agent Instance

DDL Replicated

ra_instance_1

DDL for table_A, table_D, and nonschema DDL operations

ra_instance_2

DDL for table_B

ra_instance_3

DDL for table_C