IBMQREP_TARGETS table (native Oracle targets)
The IBMQREP_TARGETS table stores Q subscription information for the Q Apply program, including type and state, default error actions, and rules for handling row conflicts.
Server: Oracle database
Default schema: ASN
Unique index: SUBNAME ASC, RECVQ ASC
Non-unique index: TARGET_OWNER ASC, TARGET_NAME ASC, RECVQ ASC, SOURCE_OWNER ASC, SOURCE_NAME ASC
Non-unique index: RECVQ ASC, SUB_ID ASC
Non-unique index: SPILLQ, STATE
Important: Do not alter this table by 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_TARGETS table.
Column name | Description |
---|---|
SUBNAME | Data type: VARCHAR2(132); Nullable: No The name of the Q subscription. It must be unique for each source-target pair, and cannot contain blanks. |
RECVQ | Data type: VARCHAR2(48); Nullable: No The name of the receive queue used for this Q subscription. |
SUB_ID | Data type: NUMBER(10); Nullable: Yes,
with default An integer that is generated by the Q Capture program
and used to uniquely identify a Q subscription in the |
SOURCE_SERVER | Data type: VARCHAR2(18); Nullable: No The name of the database or subsystem that contains the source table for this Q subscription. For z/OS®, this is a location name. |
SOURCE_ALIAS | Data type: VARCHAR2(8); Nullable: No The Db2® database alias that corresponds to the Q Capture server that is named in the SOURCE_SERVER column. |
SOURCE_OWNER | Data type: VARCHAR2(128); Nullable: No The schema name or high-level qualifier of the source table for this Q subscription. |
SOURCE_NAME | Data type: VARCHAR2(128); Nullable: No The name of the source table for this Q subscription. |
TARGET_OWNER | Data type: VARCHAR2(128); Nullable: No The schema name of the target table for this Q subscription. |
TARGET_NAME | Data type: VARCHAR2(128); Nullable: No The name of the target table for this Q subscription. |
TARGET_TYPE | Data type: NUMBER(10); Nullable: No,
with default A flag that indicates the type of replication target.
|
STATE | Data type: CHARACTER(1); Nullable: No,
with default A flag that is inserted by the Q Apply program to describe the current state of the Q subscription.
|
STATE_TIME | Data type: TIMESTAMP; Nullable: No,
with default The timestamp in the local time of the Q Apply server of the last state change for this Q subscription. Default: Current® timestamp |
STATE_INFO | Data type: CHARACTER(8); Nullable: Yes The number for the ASN message about the Q subscription state. For details, see the IBMQREP_APPLYTRACE table or the Q Apply diagnostic log. |
SUBTYPE | Data type: CHARACTER(1); Nullable: No,
with default A flag that indicates the type of replication that the Q subscription is involved in.
|
CONFLICT_RULE | Data type: CHARACTER(1); Nullable: No,
with default A flag that tells the Q Apply program how to look for conflicting changes to the target table. Inserts are always checked using the K (check only keys) rule because there are no before values and keys must be used to detect conflicts.
|
CONFLICT_ACTION | Data type: CHARACTER(1); Nullable: No,
with default A flag that tells the Q Apply program what to do when a row change conflicts:
All conflicting rows are inserted into the IBMQREP_EXCEPTIONS table. |
ERROR_ACTION | Data type: CHARACTER(1); Nullable: No,
with default A flag that tells the Q Apply program what to do in case of an error such as an SQL error (other than a conflict) that prevent it from applying a row change. This flag does not affect Q Apply behavior for errors that are not related to applying a row change, for example IBM® MQ errors related to reading from a queue.
All conflicting rows are inserted into the IBMQREP_EXCEPTIONS table. |
SPILLQ | Data type: VARCHAR2(48); Nullable: Yes,
with default The name of the temporary spill queue that the Q Apply program creates when it loads targets. Default: NULL |
OK_ERROR_CODES | Data type: VARCHAR2(128); Nullable: Yes, with default
A list of space-separated Oracle error code values that the Q Apply program does not consider as errors. You specify these values when you define a Q subscription. Values that are entered for OK_ERROR_CODES prompt the Q Apply program to bypass the error action that is specified for the Q subscription. OK_ERROR_CODES values do not affect conflicts such as duplicates and row-not-found errors, which are handled by the conflict action that is specified for the Q subscription. Restriction: The OK_ERROR_CODES feature is not supported when all of these conditions are true:
Default: NULL
|
HAS_LOADPHASE | Data type: CHARACTER(1); Nullable: No, with default
A flag that indicates whether the target table will be loaded with data from the source.
|
LOAD_TYPE | Data type: SMALLINT; Nullable: No, with default
|
DESCRIPTION | Data type: VARCHAR2(254); Nullable: Yes A user-supplied description of the Q subscription. |
SEARCH_CONDITION | Data type: VARCHAR2(2048); Nullable: Yes,
with default The search condition that is used to filter rows for the Q subscription. This must be an annotated select WHERE clause, with a single colon directly in front of the names of the source columns. Default: NULL |
MODELQ | Data type: VARCHAR2(36); Nullable: Yes,
with default The name of the model queue that the Q Apply program uses to create spill queues during the target loading process. Default: IBMQREP.SPILL.MODELQ |
CCD_CONDENSED | Data type: CHARACTER(1); Nullable: Yes,
with default Reserved. Default: N |
CCD_COMPLETE | Data type: CHARACTER(1); Nullable: Yes,
with default Reserved. Default: N |
SOURCE_TYPE | Data type: CHARACTER(1); Nullable: Yes,
with default The type of data source for the Q subscription.
|
SCHEMA_SUBNAME | Data type: VARCHAR(64); Nullable: Yes Reserved. |
SUB_CREATOR | Data type: VARCHAR(12); Nullable: Yes,
with default Identifies how this Q subscription was created. Default: NULL |