Disabling replication for marked tables

StepsDisabling replication for a marked table

  1. Log in to the Replication Agent instance with the administrator login.

  2. Use the pdb_setreptable command to verify that replication is enabled for the table:

    pdb_setreptable pdb_table
    

    Here, pdb_table is the name of the marked table for which you want to disable replication.

    If the pdb_setreptable command returns information that the table is marked and has replication enabled, continue this procedure to disable replication for the table.

    NoteA table must be marked for replication before replication can be enabled or disabled for the table.

  3. Use the pdb_setreptable command to disable replication for the table:

    pdb_setreptable pdb_table, disable
    

    Here, pdb_table is the name of the marked table in the primary database for which you want to disable replication.

    After replication is disabled for the table, transactions that affect the data in that table are not captured for replication until replication is enabled again.

  4. You can use the pdb_setreptable command again to verify that replication is now disabled for the table:

    pdb_setreptable pdb_table
    

    Here, pdb_table is the name of the marked table for which you want to verify that replication is disabled.