



Contains one row for each table, view, or alias.
| Column name | Data type | Description | Use |
|---|---|---|---|
| NAME |
VARCHAR(18) NOT NULL |
Name of the table, view, or alias. |
G |
| CREATOR |
CHAR(8) NOT NULL |
Authorization ID of the owner of the table, view, or alias. |
G |
| TYPE |
CHAR(1) NOT NULL |
Type of object: A Alias G Created global temporary table T Table V View X Auxiliary table |
G |
| DBNAME |
CHAR(8) NOT NULL |
For a table, or a view of tables, the name of the database that contains the table space named in TSNAME. For a created temporary table, an alias, or a view of a view, the value is DSNDB06. |
G |
| TSNAME |
CHAR(8) NOT NULL |
For a table, or a view of one table, the name of the table space that contains the table. For a view of more than one table, the name of a table space that contains one of the tables. For a created temporary table, the value is SYSPKAGE. view of a view, the value is SYSVIEWS. For an alias, it is SYSDBAUT. |
G |
| DBID |
SMALLINT NOT NULL |
Internal identifier of the database; 0 if the row describes a view, alias, or created temporary table. |
S |
| OBID |
SMALLINT NOT NULL |
Internal identifier of the table; 0 if the row describes a view, an alias, or a created temporary table. |
S |
| COLCOUNT |
SMALLINT NOT NULL |
Number of columns in the table or view. The value is 0 if the row describes an alias. |
G |
| EDPROC |
CHAR(8) NOT NULL |
Name of the edit procedure; blank if the row describes a view or alias or a table without an edit procedure. |
G |
| VALPROC |
CHAR(8) NOT NULL |
Name of the validation procedure; blank if the row describes a view or alias or a table without a validation procedure. |
G |
| CLUSTERTYPE |
CHAR(1) NOT NULL |
Whether RESTRICT ON DROP applies: blank No Y Yes. Neither the table nor any table space or database that contains the table can be dropped. |
G |
| |
INTEGER NOT NULL |
Not used |
N |
| |
INTEGER NOT NULL |
Not used |
N |
| NPAGES |
INTEGER NOT NULL |
Total number of pages on which rows of the table appear. The value is -1 if statistics have not been gathered, or the row describes a view, an alias, a created temporary table, or an auxiliary table. This is an updatable column. |
S |
| PCTPAGES |
SMALLINT NOT NULL |
Percentage of active table space pages that contain rows of the table. A page is termed active if it is formatted for rows, regardless of whether it contains any. If the table space is segmented, the percentage is based on the number of active pages in the set of segments assigned to the table. The value is -1 if statistics have not been gathered, or the row describes a view, alias, created temporary table, or auxiliary table. This is an updatable column. |
S |
| IBMREQD |
CHAR(1) NOT NULL |
A value of Y indicates that the row came from the basic machine-readable material (MRM) tape. For all other values, see Release dependency indicators in topic D.0. |
G |
| REMARKS |
VARCHAR(254) NOT NULL |
A character string provided by the user with the COMMENT ON statement. |
G |
| PARENTS |
SMALLINT NOT NULL |
Number of relationships in which the table is a dependent. The value is 0 if the row describes a view, an alias, or a created temporary table. |
G |
| CHILDREN |
SMALLINT NOT NULL |
Number of relationships in which the table is a parent. The value is 0 if the row describes a view, an alias, or a created temporary table. |
G |
| KEYCOLUMNS |
SMALLINT NOT NULL |
Number of columns in the table's primary key. The value is 0 if the row describes a view, an alias, or a created temporary table. |
G |
| RECLENGTH |
SMALLINT NOT NULL |
For user tables, the maximum length of any record in the table. Length is 8+N+L, where: ° The number 8 accounts for the header (6 bytes) and the ID map entry (2 bytes). ° N is 10 if the table has an edit procedure, or 0 otherwise. ° L is the sum of the maximum column lengths. In determining a column's maximum length, take into account whether the column allows nulls and the data type of the column. If the column can contain nulls and is not a LOB or ROWID column, add 1 byte for a null indicator. Use 4 bytes for the length of a LOB column and 19 bytes for the length of a ROWID column. If the column has a varying-length data type (for example, VARCHAR, CLOB, or BLOB), add 2 bytes for a length indicator. For more information on column lengths, see "Data types" in topic 2.8. The value is 0 if the row describes a view, alias, or auxiliary table. For maximum row and record sizes, see Maximum record size in topic 5.36. |
G |
| STATUS |
CHAR(1) NOT NULL |
Indicates the status of the table definition: I The definition of the table is incomplete. The TABLESTATUS column indicates the reason for the table definition being incomplete. |
G |
| KEYOBID |
SMALLINT NOT NULL |
Internal DB2 identifier of the index that enforces uniqueness of the table's primary key; 0 if not applicable. |
S |
| LABEL |
VARCHAR(30) NOT NULL |
The label as given by a LABEL ON statement; otherwise an empty string. |
G |
| CHECKFLAG |
CHAR(1) NOT NULL WITH DEFAULT |
C The table space that contains the table is in a check pending status and there are rows in the table that can violate referential constraints, table check constraints, or both. blank The table contains no rows that violate referential constraints, table check constraints, or both; or the row describes a view, alias, or created temporary table. |
G |
| |
CHAR(4) NOT NULL WITH DEFAULT FOR BIT DATA |
Not used |
N |
| AUDITING |
CHAR(1) NOT NULL WITH DEFAULT |
Value of the audit option: A AUDIT ALL C AUDIT CHANGE blank AUDIT NONE, or the row describes a view, an alias, or a created temporary table. |
G |
| CREATEDBY |
CHAR(8) NOT NULL WITH DEFAULT |
Primary authorization ID of the user who created the table, view, or alias. |
G |
| LOCATION |
CHAR(16) NOT NULL WITH DEFAULT |
Location name of the object of an alias. Blank for a table, a view, or for an alias that was not defined with a three-part object name. |
G |
| TBCREATOR |
CHAR(8) NOT NULL WITH DEFAULT |
For an alias, the authorization ID of the owner of the referred to table or view; blank otherwise. |
G |
| TBNAME |
VARCHAR(18) NOT NULL WITH DEFAULT |
For an alias, the name for the referred to table or view; blank otherwise. |
G |
| CREATEDTS |
TIMESTAMP NOT NULL WITH DEFAULT |
Time when the CREATE statement was executed for the table, view, or alias |
G |
| ALTEREDTS |
TIMESTAMP NOT NULL WITH DEFAULT |
For a table, the time when the latest ALTER TABLE statement was applied. If no ALTER TABLE statement has been applied, or if the row is for a view or alias, ALTEREDTS has the value of CREATEDTS. |
G |
| DATACAPTURE |
CHAR(1) NOT NULL WITH DEFAULT |
Records the value of the DATA CAPTURE option for a table: blank No Y Yes For a created temporary table, DATACAPTURE is always blank. |
G |
| RBA1 |
CHAR(6) NOT NULL WITH DEFAULT FOR BIT DATA |
The log RBA when the table was created. Otherwise, RBA1 is X'000000000000', indicating that the log RBA is not known, or that the object is a view, an alias, or a created |
S |
| RBA2 |
CHAR(6) NOT NULL WITH DEFAULT FOR BIT DATA |
The log RBA when the table was last altered. Otherwise, RBA2 is X'000000000000' indicating that the log RBA is not known, or that the object is a view, an alias, or a created temporary table. RBA1 will equal RBA2 if the table has not |
S |
| PCTROWCOMP |
SMALLINT NOT NULL WITH DEFAULT |
Percentage of rows compressed within the total number of active rows in the table. This includes any row in a table space that is defined with COMPRESS YES. The value is -1 if statistics have not been gathered, or the row describes a view, alias, created temporary table, or auxiliary table. This is an updatable column. |
S |
| STATSTIME |
TIMESTAMP NOT NULL WITH DEFAULT |
If RUNSTATS updated the statistics, the date and time when the last invocation of RUNSTATS updated the statistics. The default value is '0001-01-01-00.00.00.000000'. For a created temporary table, the value of STATSTIME is always the default value. This is an updatable column. |
G |
| CHECKS |
SMALLINT NOT NULL WITH DEFAULT |
Number of check constraints defined on the table. The value is 0 if the row describes a view, an alias, or a created temporary table, or if no constraints are defined on the table. |
G |
| CARDF |
FLOAT NOT NULL WITH DEFAULT -1 |
Total number of rows in the table or total number of LOBs in an auxiliary table. The value is -1 if statistics have not been gathered or the row describes a view, alias, or created temporary table. This is an updatable column. |
S |
| CHECKRID5B |
CHAR(5) NOT NULL WITH DEFAULT |
Blank if the table or partition is not in a check pending status (CHECKFLAG is blank), if the table space is not partitioned, or if the table is a created temporary table. Otherwise, the RID of the first row of the table space partition that can violate referential constraints, table check constraints, or both; or the value is X'0000000000', indicating that any row can violate referential constraints. |
S |
| ENCODING_SCHEME |
CHAR(1) NOT NULL WITH DEFAULT 'E' |
Encoding scheme for tables, views, and local aliases: E EBCDIC A ASCII blank For remote aliases The value is 'E' for tables in non work file databases and blank for tables in work file databases created prior to Version 5 or the default database, DSNDB04. |
G |
L Definition is incomplete because an auxiliary table or auxiliary index has not been defined for a LOB column. R Definition is incomplete because the table lacks a required index on a row ID. U Definition is incomplete because the table lacks a required index on a unique key. blank Definition is complete. |
|||
© Copyright IBM Corp. 1982, 2007