Marking a sequence for replication

StepsTo mark a sequence for replication

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

  2. Use the pdb_setrepseq command to determine if the sequence is already marked in the primary database:

    pdb_setrepseq pdb_seq
    

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

StepsTo mark a stored procedure for replication

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

  2. Use the pdb_setrepproc command to determine if the stored procedure is already marked in the primary database:

    pdb_setrepproc pdb_proc
    

    where pdb_proc is the name of the stored procedure in the primary database that you want to mark for replication.

    Consider the following:

  3. Use the pdb_setrepseq command to mark the sequence for replication.

    The pdb_setrepseq command allows you to mark the primary stored procedure to be replicated and specify a different sequence name to use in the replicate database.

  4. Use the pdb_setrepseq command to enable replication for the marked sequence:

    pdb_setrepseq pdb_seq, enable
    

    where pdb_seq is the name of the marked sequence for which you want to enable replication.

After replication is enabled for the sequence, you can begin replicating invocations of that sequence in the primary database.