CHECK PLUS RI rules tables


Installing CHECK PLUS creates the following additional tables: 

  • BMCRELS 
  • BMCFOREIGNKEYS
  • BMCPRIMARYKEYS
  • BMCKEYS 

CHECK PLUS uses these tables to store any user-defined RI rules that you define under the CHECK DATA option when you specify SAVERULES YES. Subsequent CHECK DATA utility jobs automatically use these saved rules when running against the Db2 objects affected by the rules definitions. For information about the option that uses these tables, see SAVERULES.

The CHECK PLUS RI rules tables are created by using Db2-defined RI, with the cascade delete rule. You can access these BMC RI tables by using SQL statements.

CHECK PLUS BMCRELS table

Column name

Data type

Description

CREATOR

VARCHAR(128)

Creator of the table 1

TBNAME

VARCHAR(128)

Table name 1

RELNAME

VARCHAR(128)

Constraint name 1

REFTBCREATOR

VARCHAR(128)

Creator of the referenced table

REFTBNAME

VARCHAR(128)

Name of the referenced table

COLCOUNT

SMALLINT

Number of key columns

TIMESTAMP

TIMESTAMP

Timestamp of when the row was inserted

 1 The first three columns make up the primary key.

CHECK PLUS BMCFOREIGNKEYS table

Column name

Data type

Description

CREATOR

VARCHAR(128)

creator of the table 1

TBNAME

VARCHAR(128)

table name 1

RELNAME

VARCHAR(128)

constraint name 1

COLNAME

VARCHAR(128)

name of the key column

COLNO

SMALLINT

column number in the table

COLSEQ

SMALLINT

column sequence in the key

 1 The first three columns make up the foreign key.

CHECK PLUS BMCPRIMARYKEYS table

Column name

Data type

Description

TBCREATOR

VARCHAR(128)

Creator of the table 1

TBNAME

VARCHAR(128)

Table name 1

COLCOUNT

SMALLINT

Number of key columns

TIMESTAMP

TIMESTAMP

Timestamp of when the row was inserted

1 The first two columns make up the primary key.

CHECK PLUS BMCKEYS table

Column name

Data type

Description

TBCREATOR

VARCHAR(128)

Creator of the table 1

TBNAME

VARCHAR(128)

Table name 1

COLNAME

VARCHAR(128)

Column name

COLSEQ

SMALLINT

Column sequence in the key

1 The first two columns make up the foreign key.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*