pdb_setrepcol

Description

Returns LOB column replication status; enables or disables replication for LOB columns within marked tables.

Syntax

Parameters

tablename

The name of the user table in the primary database that contains the column specified in the colname option.

The tablename option can be owner-qualified (include the owner name), with each element separated by a period. For example:

owner.table

The tablename option can be delimited with quote characters to specify the character case.

If mixed case (uppercase and lowercase) is required, the name must be delimited. For example:

"Owner".table
"Owner"."Table"

Each mixed-case element of the tablename option must be delimited separately, as shown in the previous example.

NoteIf you must use an object name case that does not match the value of the ltl_character_case parameter, the object name must be delimited.

If an object name contains any non-alphanumeric characters, such as spaces or periods, it must be delimited with quote characters. For example:

"table name"
owner."table name"

If an object name contains a period, it must be both owner-qualified and delimited with quote characters. For example:

owner."table.name"
"table.owner"."table.name"
colname

The name of a LOB column in the user table specified in the tablename option.

The colname option can be delimited with quote characters to specify the character case.

If mixed character case (both uppercase and lowercase) is required, the name must be delimited. For example:

"Colname"
"COLname"
all

A keyword that refers to all LOB columns in marked tables in the primary database. By using the all keyword, you can apply an enable or disable operation to all LOB columns in marked tables.

enable

A keyword that refers to enabling replication for LOB columns.

disable

A keyword that refers to disabling replication for LOB columns.

force

A keyword that refers to forcing replication to be disabled for LOB columns.

When the force keyword follows the disable keyword, the pdb_setrepcol command immediately disables replication for the specified LOB column, without first checking for pending operations in the transaction log. When the force keyword follows the disable keyword and the all keyword, the pdb_setrepcol command immediately disables replication for all marked LOB columns in marked tables in the primary database, regardless of any pending operations in the transaction log.

Examples

Example 1

pdb_setrepcol

This command returns replication information for all enabled LOB columns in marked tables in the primary database.

Example 2

pdb_setrepcol authors

This command returns replication information for all LOB columns defined for the table authors in the primary database.

Example 3

pdb_setrepcol authors, picture

This command returns replication information for the column called “picture” in the table authors in the primary database.

Example 4

pdb_setrepcol authors, picture, enable

This command enables replication for the column “picture” in the table “authors” in the primary database.

Example 5

pdb_setrepcol all, disable

This command disables replication for all LOB columns in all marked tables in the primary database.

Usage

See also

pdb_setrepproc, pdb_setreptable, ra_config