SYSTABLESPACE catalog table
The SYSTABLESPACE table contains one row for each table space. The schema is SYSIBM.
Column name | Data type | Description | Use |
---|---|---|---|
NAME | VARCHAR(24)
NOT NULL |
Name of the table space. | G |
CREATOR | VARCHAR(128)
NOT NULL |
Authorization ID of the owner of the table space. | G |
DBNAME | VARCHAR(24)
NOT NULL |
Name of the database that contains the table space. | G |
DBID | SMALLINT
NOT NULL |
Internal identifier of the database which contains the table space. | S |
OBID | SMALLINT
NOT NULL |
Internal identifier of the table space file descriptor. | S |
PSID | SMALLINT
NOT NULL |
Internal identifier of the table space page set descriptor. | S |
BPOOL | CHAR(8)
NOT NULL |
Name of the buffer pool used for the table space. | G |
PARTITIONS | SMALLINT
NOT NULL |
Number of partitions of the table space; 0 if the table space is not partitioned. | G |
LOCKRULE | CHAR(1)
NOT NULL |
Lock size of the table space:
|
G |
PGSIZE | SMALLINT
NOT NULL |
Size of pages in the table space in kilobytes. | G |
ERASERULE | CHAR(1)
NOT NULL |
Whether the data
sets are to be erased when dropped. The value is meaningless if the table space is a
partition-by-range table space.
|
G |
STATUS | CHAR(1)
NOT NULL |
Availability status of the table space:
|
G |
IMPLICIT | CHAR(1)
NOT NULL |
Whether the table space was created implicitly:
|
G |
NTABLES | SMALLINT
NOT NULL |
Number of tables defined in the table space. | G |
NACTIVE | INTEGER
NOT NULL |
Number of active pages in the table space. A page is termed active if it is formatted for rows, even if it currently contains none. The value is 0 if statistics have not been gathered. This is an updatable column. | S |
VARCHAR(24)
NOT NULL |
Not used | N | |
CLOSERULE | CHAR(1)
NOT NULL |
Whether the data sets are candidates for closure
when the limit on the number of open data sets is reached.
|
G |
SPACE | INTEGER
NOT NULL |
Number of kilobytes of DASD storage allocated to the table space, as determined by the last execution of the STOSPACE utility. The value is 0 if the table space is not related to a storage group, or if STOSPACE has not been run. If the table space is partitioned, the value is the total kilobytes of DASD storage allocated to all partitions that are storage group defined. | 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. If ALTER TABLESPACE changes the DSSIZE value to 128G or 256G, this column value is changed to O, which is the release dependency indicator for Version 10. The value in this field is not a reliable indicator of release dependencies. RELCREATED should be used instead. |
G |
— | VARCHAR(54)
NOT NULL |
Internal use only. | I |
— | VARCHAR(24)
NOT NULL |
Internal use only. | I |
SEGSIZE | SMALLINT
NOT NULL WITH DEFAULT |
Number of pages in each segment of a segmented table space. The value is 0 if the table space is not segmented. | G |
CREATEDBY | VARCHAR(128)
NOT NULL WITH DEFAULT |
Primary authorization ID of the user who created the table space. | G |
STATSTIME | TIMESTAMP
NOT NULL WITH DEFAULT |
If RUNSTATS or another utility with inline statistics updated the statistics, the date and time when the last utility invocation updated the statistics. The default value is '0001-01-01-00.00.00.000000'. The default value indicates that statistics were not collected. This column can be updated. |
G |
LOCKMAX | INTEGER | The maximum number of locks per user to acquire
for the table or table space before escalating to the next locking
level.
|
G |
TYPE | CHAR(1)
NOT NULL WITH DEFAULT |
The type of table space:
|
G |
CREATEDTS | TIMESTAMP
NOT NULL WITH DEFAULT |
Time when the CREATE statement was executed for the table space. If the table space was created in a Db2 release prior to Version 5, the value is '0001-01-01.00.00.00.000000'. | G |
ALTEREDTS | TIMESTAMP
NOT NULL WITH DEFAULT |
Time when the most recent ALTER TABLESPACE statement was executed for the table space. If no ALTER TABLESPACE statement has been applied, ALTEREDTS has the value of CREATEDTS. If the index was created in a Db2 release prior to Version 5, the value is '0001-01-01.00.00.00.000000'. | G |
ENCODING_SCHEME | CHAR(1)
NOT NULL WITH DEFAULT 'E' |
Default encoding scheme for the table space:
|
G |
SBCS_CCSID | INTEGER
NOT NULL WITH DEFAULT |
Default SBCS CCSID for the table space. For a table space in a work file database, a TEMP database, or a database created in a Db2 release prior to Version 5, the value is 0. | G |
DBCS_CCSID | INTEGER
NOT NULL WITH DEFAULT |
Default DBCS CCSID for the table space. For a table space in a work file database, a TEMP database, or a database created in a Db2 release prior to Version 5, the value is 0. | G |
MIXED_CCSID | INTEGER
NOT NULL WITH DEFAULT |
Default mixed CCSID for the table space. For a table space in a work file database, a TEMP database, or a database created in a Db2 release prior to Version 5, the value is 0. | G |
MAXROWS | SMALLINT
NOT NULL DEFAULT 255 |
The maximum number of rows that Db2 will place on a data page. The default value is 255. For a LOB table space, the value is 0 to indicate that the column is not applicable. | G |
LOCKPART | CHAR(1)
NOT NULL WITH DEFAULT |
Not used. | N |
LOG | CHAR(1)
NOT NULL WITH DEFAULT 'Y' |
Whether the changes to a table space are to be
logged.
|
G |
NACTIVEF | FLOAT
NOT NULL WITH DEFAULT -1 |
Number of active pages in the table space. A page is termed active if it is formatted for rows, even if it currently contains none. The value is -1 if statistics have not been gathered. This is an updatable column. | S |
DSSIZE | INTEGER
NOT NULL WITH DEFAULT |
Maximum size of a data set in kilobytes. The value might be 0 if the table space was created prior to DB2® 10, but will contain the actual value after the table space is converted to a partitioned by growth table space. | G |
OLDEST_VERSION | SMALLINT
NOT NULL WITH DEFAULT |
The version number of the oldest format of data in the table space and any image copies. | G |
CURRENT_VERSION | SMALLINT
NOT NULL WITH DEFAULT |
The version number describing the newest format of data in the table space. A zero indicates that the table space has never had versioning. After the version number reaches the maximum value, the number wraps back to one. | G |
AVGROWLEN | INTEGER
NOT NULL WITH DEFAULT -1 |
Average length of rows for the tables in the table space or part. If the table space or part is compressed, the value is the compressed row length. If the table space or part is not compressed, the value is the uncompressed row length. The value is -1 if statistics have not been gathered. | G |
SPACEF | FLOAT
NOT NULL WITH DEFAULT |
Kilobytes of DASD storage for the storage group. The value is -1 if statistics have not been gathered. This is an updatable column. | G |
CREATORTYPE | CHAR(1)
NOT NULL WITH DEFAULT |
Indicates the type of creator:
|
G |
RELCREATED | CHAR(1)
NOT NULL |
The release of Db2 that is used to create the object. Blank if created prior to DB2 9. See Release dependency indicators for all other values. | G |
INSTANCE | SMALLINT
NOT NULL WITH DEFAULT |
INSTANCE indicates the data set instance number of the current base object (table and index). | G |
CLONE | CHAR(1)
NOT NULL WITH DEFAULT |
Indicates whether the table space contains any
objects that are involved in a clone relationship:
|
G |
MAXPARTITIONS | SMALLINT
NOT NULL WITH DEFAULT |
Identifies the maximum number of partitions to which the table space can grow. 0 if the table space is not a partition-by-growth table space. | G |
MEMBER_CLUSTER | CHAR(1)
NOT NULL WITH DEFAULT |
Whether MEMBER CLUSTER is specified for the table
space:
|
G |
ORGANIZATIONTYPE | CHAR(1)
NOT NULL WITH DEFAULT |
Type of table space organization:
|
G |
HASHSPACE | BIGINT
NOT NULL WITH DEFAULT |
The amount of space, in KB, that is to be allocated to the table space or partition as hash space. For partition-by-growth table spaces, the space applies to the whole table space. For partition-by-range table spaces, the space is applicable for each partition. | G |
HASHDATAPAGES | BIGINT
NOT NULL WITH DEFAULT |
The total number of hash data pages to preallocate for hash space. For partition-by-growth table spaces, this includes all pages in the fixed part of the table space. For partition-by-range table spaces, this is the number of pages in the fixed hash space in each partition unless it is overridden by providing hash space at the partition level. This is calculated by Db2 from the value specified with the HASH SPACE option or when the REORG utility is run with automatic estimation of space. The calculated value is used in the hash algorithm. The value is 0 for non-hash table spaces. The value is also 0 for table spaces which have been changed to use hash access but have not been reorganized. | G |
PAGENUM |
CHAR(1)
NOT NULL WITH DEFAULT 'A' |
Format of pages for the table space and indexes created on tables in the table space, indicating absolute or relative page numbering.
|
G |
INSERTALG | SMALLINT NOT NULL WITH DEFAULT | The insert algorithm level for tables in this table space.
|
|
PQTY | INTEGER WITH DEFAULT NULL | For user-managed data sets, the value is the primary space allocation in units of
4 KB storage blocks or -1. PQTY is based on a value of PRIQTY in the appropriate CREATE or ALTER TABLESPACE statement. Unlike PQTY, however, PRIQTY accepts space in 1 KB units. A value of -1
indicates that one of the following cases is true:
This column contains the null value when the value is unknown for objects created prior to Db2 12. |
|
STORTYPE | CHAR(1) WITH DEFAULT NULL | Type of storage allocation:
This column is not used for rows representing catalog table spaces. Catalog data sets are managed by Db2 This column contains the null value when the value is unknown for objects created prior to Db2 12. |
|
STORNAME | VARCHAR(128) WITH DEFAULT NULL | Name of storage group used for space allocation. Blank if storage group not used. This column is not used for rows representing catalog table spaces. Catalog data sets are managed by Db2 This column contains the null value when the value is unknown for objects created prior to Db2 12. |
|
VCATNAME | VARCHAR(24) WITH DEFAULT NULL | Name of integrated catalog facility catalog used for space allocation. This column is not used for rows representing catalog table spaces. Catalog data sets are managed by Db2 This column contains the null value when the value is unknown for objects created prior to Db2 12. |
|
FREEPAGE | SMALLINT WITH DEFAULT NULL | Number of pages loaded before a page is left as free space. This column contains the null value when the value is unknown for objects created prior to Db2 12. |
|
PCTFREE | SMALLINT WITH DEFAULT NULL | Percentage of each page left as free space. This column contains the null value when the value is unknown for objects created prior to Db2 12. |
|
COMPRESS | CHAR(1) WITH DEFAULT NULL | Indicates the COMPRESS attribute for the table space. The following values are valid for the column:
This column contains the null value when the value is unknown for objects created prior to Db2 12. |
G |
GBPCACHE | CHAR(1) WITH DEFAULT NULL | Group buffer pool cache option specified for this table space or table space partition.
This column contains the null value when the value is unknown for objects created prior to Db2 12. |
|
TRACKMOD | CHAR(1) WITH DEFAULT NULL | Whether to track the page modifications in the space map pages:
This column contains the null value when the value is unknown for objects created prior to Db2 12.
|
|
SECQTYI | INTEGER WITH DEFAULT NULL | Secondary space allocation in units of 4 KB storage. For user-managed data sets,
the value is the secondary space allocation in units of 4 KB blocks. This column contains the null value when the value is unknown for objects created prior to Db2 12. |
|
PCTFREE_UPD | SMALLINT WITH DEFAULT NULL | The percentage of free space that is reserved for updates to variable length
records, as defined when the object as created or altered. This column contains the null value when the value is unknown for objects created prior to Db2 12. |
|
PCTFREE_UPD_CALC | SMALLINT WITH DEFAULT NULL | The percentage of free space that is reserved for updates to variable length records, calculated by Db2 or utilities. This column contains the null value when the value is unknown for objects created prior to Db2 12. |
|
COMPRESSRATIO |
SMALLINT
NOT NULL WITH DEFAULT |
Average percentage of bytes saved by compression on each compressed data record in the table space when the table space is defined with compression. This calculation includes overhead bytes for each row. The value is based on an average row length and varies depending on the actual length of the data rows. For example, a value of 25 indicates that the average compressed record size is approximately 75% the size of the uncompressed record. The value is -1 or 0 in the following cases:
|
G |
KEYLABEL | VARCHAR(192) NOT NULL WITH DEFAULT | The key label that is specified at the table level. Otherwise, the value is an empty string. |