Enabling replication for DDL

For DDL to be replicated, the pdb_setrepddl command must be set to enable. If pdb_setrepddl is set to enable, all DDL in your primary database is replicated. Also, you must set the ddl_username and the ddl_password.

NoteDDL replication is not available for IBM DB2 Universal Database.

To replicate DDL:

For details about configuration property ddl_username and for database-level replication definition, refer to the Replication Agent Reference Manual.

StepsEnabling replication for DDL in the primary database

  1. Log in to the Replication Agent administration port.

  2. Use the pdb_setrepddl command without an argument to determine if replication is already enabled for DDL in the primary database:

    pdb_setrepddl
    

    If the pdb_setrepddl command returns information that replication is enabled, you do not need to continue this procedure.

    If the pdb_setrepddl command returns information that replication is not enabled for DDL, continue this procedure to enable replication for DDL.

  3. Use the pdb_setrepddl command to enable replication for DDL:

    pdb_setrepddl enable
    

    After replication is enabled for the DDL, you can begin replicating your primary database.

See the Replication Agent Primary Database Guide.