SYSCONTEXT catalog table
The SYSCONTEXT table contains one row for each trusted context. The schema is SYSIBM.
FL 505 SYSIBM.SYSCONTEXT has an associated history table, SYSIBM.SYSCONTEXT_H, which provides temporal versioning of the catalog table. Both 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 by 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 |
---|---|---|---|
NAME | VARCHAR(128)
NOT NULL |
Name of the trusted context. | G |
CONTEXTID | INTEGER
NOT NULL GENERATED ALWAYS AS IDENTITY |
Internal context ID. | G |
DEFINER | VARCHAR(128)
NOT NULL |
Authorization ID or role that defined the trusted context. | G |
DEFINERTYPE | CHAR(1)
NOT NULL |
The type of the definer:
|
G |
SYSTEMAUTHID | VARCHAR(128)
NOT NULL |
The Db2 primary
authorization ID that is used to establish the connection. For remote
requests, SYSTEMAUTHID is derived from the system user ID that is
provided by an external entity, such as a middleware server. For
local requests, SYSTEMAUTHID depends on one of the following sources
of the address space:
|
G |
DEFAULTROLE | VARCHAR(128)
NOT NULL |
Name of the trusted context default role. | G |
OBJECTOWNERTYPE | CHAR(1)
NOT NULL |
Whether the ROLE AS OBJECT
OWNER AND QUALIFIER clause is specified in the definition of this
trusted context:
|
G |
CREATEDTS | TIMESTAMP
NOT NULL |
The time when the trusted context is created. | G |
ALTEREDTS | TIMESTAMP
NOT NULL |
The time when the trusted context is last altered. | G |
ENABLED | CHAR(1)
NOT NULL |
The status of the trusted context:
|
G |
ALLOWPUBLIC | CHAR(1)
NOT NULL |
Whether the connection is allowed to be reused
for PUBLIC:
|
G |
AUTHENTICATEPUBLIC
|
CHAR(1)
NOT NULL |
Whether authentication is required for PUBLIC when
ALLOWPUBLIC is Y:
|
G |
RELCREATED | CHAR(1)
NOT NULL |
The release of Db2 that is used to create the object. See Release dependency indicators for the values. | 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 |
REMARKS | VARCHAR(762)
NOT NULL |
A character string that is provided using the COMMENT statement. | G |
DEFAULTSECURITYLABEL
|
VARCHAR(24)
NOT NULL |
Name of the context default RACF security label. | G |
SYS_START | TIMESTAMP(12)
NOT NULL GENERATED ALWAYS AS ROW BEGIN |
FL 505 ![]() ![]() |
G |
SYS_END | TIMESTAMP(12)
NOT NULL GENERATED ALWAYS AS ROW END |
FL 505 ![]() ![]() |
G |
TRANS_START | TIMESTAMP(12)
NOT NULL GENERATED ALWAYS AS TRANSACTION START ID |
FL 505 ![]() ![]() |
G |
![]() ![]() |
![]() VARCHAR(128)
GENERATED ALWAYS AS (SESSION_USER) ![]() |
![]() ![]() |
![]() ![]() |