SYSCONTROLS catalog table
The SYSCONTROLS table contains one row for each row permission and column mask. The schema is SYSIBM.
FL 505 SYSIBM.SYSCONTROLS has an associated history table, SYSIBM.SYSCONTROLS_H, which provides temporal versioning of the catalog table. SYSIBM.SYSCONTROLS_RTXT_H and SYSIBM.SYSCONTROLS_DESC_H are the history tables for the auxiliary tables, SYSIBM.SYSCONTROLS_RTXT and SYSIBM.SYSCONTROLS_DESC, which are associated with the two LOB columns, RULETEXT and DESCRIPTOR. The history tables contain the same columns, with the same data types. The temporal relationship must be enabled before the history table can be used. Rows in the history table can be deleted using the REORG TABLESPACE DISCARD option. For information about enabling the temporal relationship, see Temporal versioning for Db2 security-related catalog tables.
| Column name | Data type | Description | Use |
|---|---|---|---|
| SCHEMA | VARCHAR(128)
NOT NULL |
Schema of the row permission or column mask. | G |
| NAME | VARCHAR(128)
NOT NULL |
Name of the row permission or column mask. | G |
| OWNER | VARCHAR(128)
NOT NULL |
Owner of the row permission or column mask. | G |
| OWNERTYPE | CHAR(1)
NOT NULL |
Indicates the type of the owner:
|
G |
| TBSCHEMA | VARCHAR(128)
NOT NULL |
Schema of the table for which the row permission or column mask is defined. | G |
| TBNAME | VARCHAR(128)
NOT NULL |
Name of the table for which the row permission or column mask is defined. | G |
| TBCORRELATION | VARCHAR(128)
NOT NULL WITH DEFAILT |
If specified, the correlation name of the table for which the row permission or column mask is defined. Otherwise, the value is an empty string. | G |
| COLNAME | VARCHAR(128)
NOT NULL |
Column name for which the column mask is defined. Blank if this is a row permission. | G |
| COLNO | SMALLINT
NOT NULL |
Column number for which the column mask is defined. 0 if this is a row permission. | G |
| CONTROL_ID | INTEGER
NOT NULL GENERATED ALWAYS AS IDENTITY |
Internal access control ID. | S |
| CONTROL_TYPE | CHAR(1)
NUT NULL |
Indicates the type of the access control object:
|
G |
| ENFORCED | CHAR(1)
NUT NULL |
Indicates the type of the access enforced by the
row permission. Column mask always has a value of 'A'.
|
G |
| IMPLICIT | CHAR(1)
NUT NULL |
Indicates whether the row permission was implicitly
created:
|
G |
| ENABLE | CHAR(1)
NUT NULL |
Indicates whether the row permission or the column
mask is enabled for access control:
|
G |
| STATUS | CHAR(1)
NUT NULL |
Indicates the status of the row permission or column
mask definition:
|
G |
| CREATEDTS | TIMESTAMP
NOT NULL |
The timestamp when the row permission or column mask was created. | G |
| RELCREATED | CHAR(1)
NUT NULL |
The release of Db2 in which the row permission or column mask was created. See Release dependency indicators for values. | G |
| ALTEREDTS | TIMESTAMP
NOT NULL |
The timestamp when the row permission or column mask was last changed. | G |
| REMARKS | VARCHAR(762)
NOT NULL |
A character string provided by using the COMMENT ON statement. | G |
| IBMREQD | CHAR(1)
NOT NULL |
A value of Y indicates that the row was provided with the Db2 product code. For all other values, see Release dependency indicators. The value in this field is not a reliable indicator of release dependencies. RELCREATED should be used instead. |
G |
| ENVID | INTEGER
NOT NULL |
Internal identifier of the environment. | G |
| ROWID | ROWID
|
Row identifier to support LOB columns in the table. | G |
| RULETEXT | CLOB(2MB)
NOT NULL |
The source text of the search condition or expression
portion of the CREATE PERMISSION or CREATE MASK statement. Note: The lowercase letters in ordinary tokens are folded to uppercase in the text. However, lowercase letters in ordinary tokens are folded to uppercase in a C or Java™ program only if the appropriate precompiler option is specified.
|
G |
| DESCRIPTOR | BLOB(2MB)
NOT NULL |
Internal description of the row permission or column mask | S |
| SYS_START | TIMESTAMP(12)
NOT NULL GENERATED ALWAYS AS ROW BEGIN |
FL 505 The row-begin column of the SYSTEM_TIME period, for system-period data versioning.![]() |
G |
| SYS_END | TIMESTAMP(12)
NOT NULL GENERATED ALWAYS AS ROW END |
FL 505 The row-end column of the SYSTEM_TIME period, for system-period data versioning.![]() |
G |
| TRANS_START | TIMESTAMP(12)
NOT NULL GENERATED ALWAYS AS TRANSACTION START ID |
FL 505 The transaction-start-ID column, for system-period data versioning.![]() |
G |
| REGENERATETS | TIMESTAMP(12) NOT NULL | The time when the object was regenerated. The value is valid only for objects that can be regenerated. If no regeneration has occurred, this column contains the same value as the CREATEDTS column. | G |
FL 505 GEN_SESSION_USER![]() |
VARCHAR(128)
GENERATED ALWAYS AS (SESSION_USER) ![]() |
The value of the SESSION_USER special register. This column contains a null value when the value is unknown for the existing rows prior to catalog level V13R1M505.![]() |
G![]() |