The IBMQREP_SUBS table contains information about Q subscriptions or publications, including the type of subscription or publication, search conditions, data-sending options, load options, and the subscription or publication 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 WebSphere® 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 subscription schema message to the Q Apply program. Default: NULL |
SUBTYPE | Data type: CHAR(1); Nullable: No,
with default A flag that indicates the type of replication that a Q subscription is involved in, or whether this is a publication. A flag that indicates the type of replication that a Q subscription is involved.
|
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 This column is deprecated for Version 9 Fix Pack 1. |
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 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 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 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 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 the recovery log shows a load operation that uses the DB2 LOAD utility occurred 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. This predicate does not require a WHERE clause like that used in the SEARCH_CONDITION column, but it can include the following log record variables:
For example, the following predicate tells Q Capture to only replicate or publish log records for insert operations committed by user HR for the affected Q subscription:
If a WHERE clause is specified in the SEARCH_CONDITION column, the value of CHANGE_CONDITION and SEARCH_CONDITION are combined into a single predicate by using the AND operator. However, you can leave the SEARCH_CONDITION column empty and specify the full predicate that includes a WHERE clause in this column. The value in this column is not used when the Q Apply program loads the target table. For more detail on specifying filters that use log records, see Log record variables to filter rows (unidirectional replication). 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.
|
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 Reserved for future use. Default: R |
LOGRD_ERROR_ACTION | Data type: CHAR(1); Nullable: No,
with default Reserved for future use. Default: D |