Marking tables in the primary database

For transactions against a table to be replicated, the primary table in the primary database must be marked for replication and replication must be enabled for that table. The setting of pdb_convert_datetime affects the generated results. For a detailed description of the pdb_convert_datetime configuration parameter, refer to Chapter 2, Configuration Parameters of the Sybase Replication Agent Sybase Replication Agent Reference Manual.

StepsTo mark a table in the primary database

  1. Log in to the Replication Agent administration port.

  2. Use the pdb_setreptable command to determine if the table you want to mark is already marked in the primary database:

    pdb_setreptable pdb_table
    

    where pdb_table is the name of the table in the primary database that you want to mark for replication.

  3. Use the pdb_setreptable command to mark the table for replication and specify the name to use for replication:

    If the pdb_dflt_object_repl parameter is set to true (the default), the table marked for replication with the pdb_setreptable command is ready for replication after you invoke the pdb_setreptable command successfully, and you can skip step 4 in this procedure.

    If the pdb_dflt_object_repl parameter is set to false, you must enable replication for the table before replication can take place.

  4. Use the pdb_setreptable command to enable replication for the marked table:

    pdb_setreptable pdb_table, enable
    

    where pdb_table is the name of the marked table in the primary database for which you want to enable replication.

  5. Use the pdb_setreptable command with the all keyword to mark or enable all user tables at once:

    pdb_setreptable all, {mark|enable}
    

    where mark or enable are the keywords identifying the action that should be taken against all user tables in the database.

After the table is marked and replication is enabled for the table, you can begin replicating transactions that affect data in that table.