IBMQREP_SUBS table
The IBMQREP_SUBS table contains information about Q subscriptions and publications, including the type, search conditions, data-sending options, load options, and state.
Server: Q Capture server
Default schema: ASN
Primary key: SUBNAME
Non-unique index: SUB_ID
Important: Do not alter this table using SQL. Altering this table inappropriately can cause unexpected results and loss of data.
Table 1 provides a brief description of the columns in the IBMQREP_SUBS table.
| Column name | Description |
|---|---|
| SUBNAME | Data type: VARCHAR(132); Nullable: No The Q subscription or publication name. For each instance of the Q Capture program, all Q subscription or publication names must be unique. |
| SOURCE_OWNER | Data type: VARCHAR(128); Nullable: No The schema name or high-level qualifier of the source table for this Q subscription or publication. |
| SOURCE_NAME | Data type: VARCHAR(128); VARCHAR(18) for Db2® for z/OS® Version 7 and Version 8 compatibility mode; Nullable: No The name of the source table for this Q subscription or publication. |
| TARGET_SERVER | Data type: VARCHAR(18); Nullable: Yes The name of the database or subsystem where the Q Apply program runs and targets are defined. For z/OS, this is a location name. |
| TARGET_ALIAS | Data type: VARCHAR(8); Nullable: Yes The Db2 database alias that corresponds to the Q Apply server that is named in the TARGET_SERVER column. |
| TARGET_OWNER | Data type: VARCHAR(128); Nullable: Yes The schema name or high-level qualifier of the target table or stored procedure for a Q subscription. |
| TARGET_NAME | Data type: VARCHAR(128); Nullable: Yes The name of the target table for a Q subscription. |
| TARGET_TYPE | Data type: INTEGER; Nullable: Yes A flag that indicates the type of replication target.
|
| APPLY_SCHEMA | Data type: VARCHAR(128); Nullable: Yes The schema of the Q Apply program that is applying transactions for this Q subscription. |
| SENDQ | Data type: VARCHAR(48); Nullable: No The name of the IBM® MQ queue that the Q Capture program uses to send transactional data for this Q subscription or publication. Each source table is paired with one send queue. |
| SEARCH_CONDITION | Data type: VARCHAR(2048); Nullable: Yes, with default The search condition that is used to filter rows for the Q subscription or publication. This must be an annotated select WHERE clause, with a single colon directly in front of the names of the source columns. Default: NULL |
| SUB_ID | Data type: INTEGER; Nullable: Yes, with default An integer
that is generated by the Q Capture program and used to uniquely identify
a Q subscription in the |
| SUBTYPE | Data type: CHAR(1); Nullable: No,
with default A flag that indicates the type of replication that a Q subscription is involved in.
|
| ALL_CHANGED_ROWS | Data type: CHAR(1); Nullable: No,
with default A flag that indicates whether the Q Capture program sends a message when a row in the source table changes, even if none of the columns that are part of a Q subscription changed:
|
| BEFORE_VALUES | Data type: CHAR(1); Nullable: No,
with default For an update operation, this flag indicates whether the Q Capture program sends the before values of non-key columns in addition to their after values. For a delete, this flag indicates whether the Q Capture program sends the before values of non-key columns in addition to the before values of the key columns.
|
| CHANGED_COLS_ONLY | Data type: CHAR(1); Nullable: No,
with default A flag that indicates whether the Q Capture program publishes columns that are part of a Q subscription or publication only if they have changed. This field applies to update operations only.
|
| HAS_LOADPHASE | Data type: CHAR(1); Nullable: No,
with default A flag that indicates whether the target table for the Q subscription or publication will be loaded with data from the source:
|
| STATE | Data type: CHAR(1); Nullable: No,
with default A flag that is inserted by the Q Capture program to indicate the current state of the Q subscription or publication. The initial state is new, and the STATE_INFO field is initially set to ASN7024I (new Q subscription or publication).
|
| STATE_TIME | Data type: TIMESTAMP; Nullable: No,
with default The timestamp in the local time of the Q Capture server of the last change in Q subscription or publication state. Default: Current timestamp |
| STATE_INFO | Data type: CHAR(8); Nullable: Yes The number for the ASN message about the Q subscription state. For details, see the IBMQREP_CAPTRACE table, or the Q Capture diagnostic log. |
| STATE_TRANSITION | Data type: VARCHAR(256) FOR BIT DATA; Nullable: Yes An internal value used to store half state and related information. |
| SUBGROUP | Data type: VARCHAR(30); Nullable:
Yes, with default The name of the bidirectional or peer-to-peer group that includes this Q subscription. This column does not apply for a publication. Default: NULL. |
| SOURCE_NODE | Data type: SMALLINT; Nullable: No, with default An identifying number for the source server in a bidirectional or peer-to-peer Q subscription. This column does not apply for a publication. Default: 0 |
| TARGET_NODE | Data type: SMALLINT; Nullable: No, with default An identifying number for the target server in a bidirectional or peer-to-peer Q subscription. This column does not apply for a publication. Default: 0 |
| GROUP_MEMBERS | Data type: CHAR(254) FOR BIT DATA; Nullable:
Yes, with default This column is updated by the Q Capture program when members join or leave a bidirectional or peer-to-peer group. Default: NULL |
| OPTIONS_FLAG | Data type: CHAR(4); Nullable: No,
with default Reserved for future. |
| SUPPRESS_DELETES | Data type: CHAR(1);Nullable: No,
with default A flag that tells the Q Capture program whether to send rows that were deleted from the source table:
|
| DESCRIPTION | Data type: VARCHAR(200); Nullable: Yes A user-supplied description of the Q subscription or publication. |
| TOPIC | Data type: VARCHAR(256); Nullable: Yes A user-supplied topic to be included in the JMS-compliant (MQRFH2) message header for each XML message that is sent for the publication. |
| CAPTURE_LOAD | Data type: CHAR(1); Nullable: No, with default The action that the Q Capture program takes when it detects a load operation that uses the Db2 LOAD utility at the source table:
|
| CHANGE_CONDITION | Data type: VARCHAR(2048); Nullable:
Yes, with default An SQL predicate that uses log record variables to filter which rows are replicated or published. See Log record variables to filter rows (unidirectional replication) for more information. Default: NULL |
| REPL_ADDCOL | Data type: CHAR(1); Nullable: No, with default A flag that tells the Q Capture program whether to automatically add new source table columns to the Q subscription for the table. The columns are also added to the target table if they do not exist. Note: This option is only supported for Q Replication. For
event publishing with XML or delimited messages, you must use the ADDCOL signal to add a column to
an existing publication.
|
| IGNTRIG | Data type: CHAR(1); Nullable: No,
with default A flag that specifies whether the Q Capture program ignores (does not replicate) trigger-generated rows.
|
| IGNCASDEL | Data type: CHAR(1); Nullable: No,
with default A flag that tells the Q Capture program whether to replicate delete operations that result from the delete of parent rows in tables with referential integrity relationships (ON DELETE CASCADE rule).
|
| IGNSETNULL | Data type: CHAR(1); Nullable: No, with default A flag that tells the Q Capture program whether to replicate UPDATE operations that result from the delete of parent rows in tables with referential integrity relationships (ON DELETE SET NULL rule). For Version 10.1 and later on Linux®, UNIX, and Windows only.
|
| SCHEMA_SUBNAME | Data type: VARCHAR(128) on z/OS;
VARCHAR(64) on Linux, UNIX, and Windows; Nullable: Yes The name of the schema-level subscription that this table-level Q subscription belongs to. This column is populated by the ASNCLP command-line program when a schema-level subscription is created, and by the Q Capture program when it detects a CREATE TABLE operation within the schema. |
| SUB_CREATOR | Data type: VARCHAR(12); Nullable: Yes, with default Identifies how this Q subscription was created. The values are "asnclp," "replcenter" (the Replication Center), and "asnqcap" (the Q Capture program). When the Q Capture control tables are migrated from a release before Version 10.1 on Linux, UNIX, and Windows, the column value is NULL. Default: NULL |
| CAPTURE_TRUNCATE | Data type: CHAR(1); Nullable: No, with default A flag that specifies the action that the Q Capture program takes when it detects a TRUNCATE operation for a source table in the log. z/OS: The CAPTURE_TRUNCATE column is available only for Db2 on the Linux, AIX, and Windows platforms. The reason is that, in Db2 for z/OS, a truncate operation on a table with Data Capture Changes is not executed as a truncate operation, but as a massive delete. Replication replays the truncate as delete operations at the target. On Linux, AIX, and Windows platforms, a truncate operation is replicated as a truncate. To run a truncate table operation on the z/OS platform for a table with DCC (Data Capture Changes), you need to do a load from dummy input, which has the same effect of truncating the table and is replicated as a load from dummy. See CAPTURE_LOAD=L.
Restrictions:
|
| LOGRD_ERROR_ACTION | Data type: CHAR(1); Nullable: No,
with default Reserved for future use. |
| HAS_PARTS | Data type: CHAR(1); Nullable: No, with default z/OS: A flag that indicates whether the Q subscription filters rows for replication based on one or more partitions of a range-partitioned table.
|