Start of change

DB2 directory tables

DB2® for z/OS® maintains a set of tables (in database DSNDB01) called the DB2 directory. Authorized users can query the directory; however, it is primarily intended for use by DB2 and is therefore subject to change.

About these topics

These topics describe the directory tables that allow SELECT operations by describing the columns of those tables.

Users must have one of the following privileges to execute SELECT statements on the directory tables:

  • Installation SYSADM
  • SYSADM
  • SYSCTRL
  • ACCESSCTRL
  • DATAACCESS
  • SECADM
  • SQLADM
  • System DBADM
  • DBADM on DSNDB01
  • The SELECT privilege on a specific table

All directory tables are qualified by SYSIBM. Do not use this qualifier for user-defined tables.

The directory tables are not, in most cases, updated as part of DB2 operations.

Start of changeThe following table lists restrictions on SQL statements that reference directory tables:End of change

Start of change
SQL statement Restriction
ALTER TABLE table-name cannot specify a directory table.
ALTER TABLESPACE The table space cannot be altered if it is associated with a directory table.
CREATE INDEX ON table-name or aux-table-name cannot specify a directory table.
CREATE TRIGGER ON table-name cannot specify a directory table.
DELETE FROM table-name cannot specify a directory table.
DROP table-name cannot specify a directory table.
INSERT INTO table-name cannot specify a directory table.
MERGE INTO table-name cannot specify a directory table.
RENAME source-table-name cannot specify a directory table.
UPDATE table-name cannot specify a directory table.
End of change

Programming interface information

None of the directory table columns are part of the general-use programming interface. The column labeled "Use" in the table that describes the column indicates whether the column is part of the product-sensitive interface or is for internal, IBM use, only. The values that "Use" can assume are as follows:

Value
Meaning
S
Column is part of the product-sensitive interface
I
Column is for internal use only

For columns for which "Use" is I, the name of the column and its description do not appear in the explanation of the column.

End of change