Enabling replication for LOB columns

For transactions that affect a LOB column to be replicated, the table that contains the LOB column must be marked for replication and have replication enabled.

If the value of the pdb_dflt_column_repl parameter is set to true, all LOB columns in a table have replication enabled automatically when you mark the table (by invoking the pdb_setreptable command). If the value of the pdb_dflt_column_repl parameter is set to false, you must enable replication separately for each LOB column before replication can take place.

NoteThe default value of the pdb_dflt_column_repl parameter is false.

StepsTo enable replication for a LOB column in the primary database

  1. Log in to the Replication Agent administration port.

  2. Use the pdb_setrepcol command to determine if replication is already enabled for the LOB column you want to enable replication for in the primary database:

    pdb_setrepcol tablename, pdb_col
    

    where:

    If the pdb_setrepcol command returns information that replication is enabled for the specified column, you need not continue this procedure.

    If the pdb_setrepcol command returns information that replication is not enabled for the specified column, continue this procedure to enable replication for the column.

  3. Use the pdb_setrepcol command to enable replication for the LOB column:

    pdb_setrepcol tablename, pdb_col, enable
    

    where:

After replication is enabled for the LOB column, you can begin replicating transactions that affect data in that column.