
SYSDYNQRYDEP catalog table
The SYSDYNQRYDEP table contains information about dependencies for dynamic query packages. The schema is SYSIBM.
Access paths for SQL statements might depend on objects that Db2 does not actually use when it processes the selected access paths. Such dependencies are recorded in the SYSDYNQRYDEP catalog table, but they are not be shown in EXPLAIN output.
Column name | Data type | Description | Use |
---|---|---|---|
SDQ_STMT_ID | BIGINT NOT NULL | The identifier of the stabilized dynamic SQL statement. | G |
COPYID | SMALLINT NOT NULL | The copy type of the stabilized runtime structures for the query in this row:
|
G |
BQUALIFIER | VARCHAR(128) NOT NULL | The value of the column depends on the type of object:
|
G |
BNAME | VARCHAR(128) NOT NULL | The name of the object that the query depends on. | G |
BTYPE | CHAR(1) NOT NULL | Type of object identified by BNAME and BQUALIFIER:
|
G |
CLASS | CHAR(1) NOT NULL |
|
G |
BAUTH | SMALLINT NOT NULL WITH DEFAULT | ![]()
![]() |
G |
AUTHID_TYPE | CHAR(1) NOT NULL WITH DEFAULT | The type of authorization indicated by AUTHID.
|
G |
AUTHID | VARCHAR(128) NOT NULL WITH DEFAULT | The owner of the privilege on the object on which the query is dependent, or a zero-length string if the value of CLASS is 'D'. | G |
DBNAME | VARCHAR(128) NOT NULL WITH DEFAULT | If the value of SDBADMAUTH is 'Y', DBNAME contains the name of the database on which the user or role indicated by AUTHID holds DBADM authority. Otherwise the value is blank. | G |
BADMINAUTH | CHAR(1) NOT NULL | The authority that allowed access to the object on which the query is dependent. The admin
authority only applies when CLASS is 'A'.
|
G |
PUBLICAUTH | CHAR(1) NOT NULL WITH DEFAULT |
|
G |
ALLOBJAUTH | CHAR(1) NOT NULL WITH DEFAULT |
|
G |
QUERYHASH | BINARY(16) WITH DEFAULT | The hash key of the statement text if the value of CLASS is 'D', otherwise hexadecimal zeros. | G |
— | CLOB(2M) NOT NULL WITH DEFAULT | Internal use only. | I |
— | CHAR(8) NOT NULL FOR BIT DATA | Internal use only. | I |
