SYSTABLEPART catalog table
The SYSTABLEPART table contains one row for each nonpartitioned table space and one row for each partition of a partitioned table space. The schema is SYSIBM.
Column name | Data type | Description | Use |
---|---|---|---|
PARTITION |
SMALLINT
NOT NULL |
Partition number; 0 if table space is not partitioned. | G |
TSNAME |
VARCHAR(24)
NOT NULL |
Name of the table space. | G |
DBNAME |
VARCHAR(24)
NOT NULL |
Name of the database that contains the table space. | G |
IXNAME |
VARCHAR(128)
NOT NULL |
Name of the partitioning index. This column is blank unless the table uses index-controlled partitioning. | G |
IXCREATOR |
VARCHAR(128)
NOT NULL |
The schema of the partitioning index. This column is blank unless the table uses index-controlled partitioning. | G |
PQTY |
INTEGER
NOT 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. However, unlike PQTY, PRIQTY asks for space in 1 KB units. A value of -1 indicates that either of the following cases is true:
|
G |
SQTY |
SMALLINT
NOT NULL |
For user-managed data sets, the value is the secondary space allocation in units
of 4 KB storage blocks or -1.
SQTY is based on a value of SECQTY in the appropriate CREATE or ALTER TABLESPACE statement. Unlike SQTY, however, SECQTY asks for space in 1 KB units. A value of -1 indicates that either of the following cases is true:
If the value does not fit into the column, the value of the column is 32767. See the description of column SECQTYI. |
G |
STORTYPE |
CHAR(1)
NOT NULL |
Type of storage allocation:
This column is not used for rows that represent catalog table spaces. Catalog data sets are managed by Db2 |
G |
STORNAME |
VARCHAR(128)
NOT NULL |
Name of storage group used for space allocation. Blank if storage group not used. This column is not used for rows that represent catalog table spaces. Catalog data sets are managed by Db2 |
G |
VCATNAME |
VARCHAR(24)
NOT NULL |
Name of integrated catalog facility catalog used for space allocation. This column is not used for rows that represent catalog table spaces. Catalog data sets are managed by Db2 |
G |
CARD |
INTEGER
NOT NULL |
Number of rows in the table space or partition or, if the table space is a LOB table space, the number of LOBs in the table space. The value is '2147483647' if the number of rows is greater than or equal to '2147483647'. The value is -1 if statistics were not gathered. | G |
FARINDREF |
INTEGER
NOT NULL |
Number of rows that are relocated far from their original page. The value is -1 if statistics were not gathered. Not applicable if the table space is a LOB table space. | S |
NEARINDREF |
INTEGER
NOT NULL |
Number of rows that are relocated near their original page. The value is -1 if statistics were not gathered. Not applicable if the table space is a LOB table space. | S |
PERCACTIVE |
SMALLINT
NOT NULL |
Percentage of space occupied by rows of data from active tables. The value is -1 if statistics were not gathered. The value is -2 if the table space is a LOB table space. This value is not applicable for understanding data distribution in tables that are organized for hash access. |
S |
PERCDROP |
SMALLINT
NOT NULL |
Percentage of space that rows of dropped tables occupy. The value is -1 if statistics were not gathered. The value is 0 for segmented table spaces. Not applicable if the table is an auxiliary table. | S |
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 |
LIMITKEY |
VARCHAR(765)
NOT NULL |
The
high value of the partition in external format. If the table space was converted from
index-controlled partitioning to table-controlled partitioning, the value is the highest possible
value for an ascending key, or the lowest possible value for a descending key. If the table is not
in a partition-by-range table space, the value is an empty string. This column can contain a mixture of values with differing formats:
|
S |
FREEPAGE |
SMALLINT
NOT NULL |
Number of pages loaded before a page is left as free space. | G |
PCTFREE |
SMALLINT
NOT NULL |
Percentage of each page that is left as free space. | G |
CHECKFLAG |
CHAR(1)
NOT NULL WITH DEFAULT |
|
G |
CHECKRID |
CHAR(4)
NOT NULL WITH DEFAULT FOR BIT DATA |
Not used. | N |
SPACE |
INTEGER
NOT NULL WITH DEFAULT |
Number of kilobytes of DASD storage that is allocated to the table space partition, as determined by the last execution of the STOSPACE utility or RUNSTATS utility.
|
G |
COMPRESS |
CHAR(1)
NOT NULL WITH DEFAULT |
Values for the column can be:
|
G |
PAGESAVE |
SMALLINT
NOT NULL WITH DEFAULT |
Percentage of pages that are saved in the table space or partition as a result of defining the table space with compression. For example, a value of 25 indicates a savings of 25 percent, so that the pages required are only 75 percent of what would be required without data compression. The calculation includes overhead bytes for each row, the bytes required for dictionary, and the bytes required for the current FREEPAGE and PCTFREE specification for the table space or partition. This calculation is based on an average row length, and the result varies depending on the actual lengths of the rows. The value is 0 if there are no savings from using data compression, or if statistics were not gathered. The value can be negative, if for example, data compression causes an increase in the number of pages in the data set. | S |
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. |
G |
GBPCACHE |
CHAR(1)
NOT NULL WITH DEFAULT |
Group buffer pool cache option that is specified for this table space or table space partition.
|
G |
CHECKRID5B |
CHAR(5)
NOT NULL WITH DEFAULT FOR BIT DATA |
Blank if the table or partition is not in a check-pending status (CHECKFLAG is blank), or if the table space is not partitioned. Otherwise, the RID of the first row of the table space partition that can violate referential constraints, check constraints, or both; or the value is X'0000000000', indicating that any row can violate referential constraints. | S |
TRACKMOD |
CHAR(1)
NOT NULL WITH DEFAULT |
Whether to track the page modifications in the space map pages:
|
G |
EPOCH |
INTEGER
NOT NULL WITH DEFAULT |
A number that increments whenever a utility operation that changes the location of rows in a table occurs. | G |
SECQTYI |
INTEGER
NOT NULL WITH DEFAULT |
Secondary space allocation in units of 4KB storage. For user-managed data sets, the value is the secondary space allocation in units of 4KB blocks. | G |
CARDF |
FLOAT
NOT NULL WITH DEFAULT -1 |
Number of rows in the table space or partition, or if the table space is a LOB table space, the number of LOBs in the table space. The value is -1 if statistics were not gathered. | G |
IPREFIX |
CHAR(1)
NOT NULL WITH DEFAULT 'I' |
The first character of the instance qualifier for the data set name for the table space or partition. 'I' or 'J' are the only valid characters for this field. The default is 'I'. | G |
ALTEREDTS |
TIMESTAMP
NOT NULL WITH DEFAULT |
Time when the most recent ALTER TABLESPACE statement was executed for the table space or partition. If no ALTER TABLESPACE statement was applied, the value is '0001-01-01.00.00.00.000000'. | G |
SPACEF |
FLOAT(8)
NOT NULL WITH DEFAULT -1 |
DASD storage in KB. The value is -1 if statistics were not gathered. The value might be nonzero for an auxiliary table in the LOB table space. This column can be updated. | G |
DSNUM |
INTEGER
NOT NULL WITH DEFAULT -1 |
Number of data sets. The value is -1 if statistics were not gathered. This column can be updated. | G |
EXTENTS |
INTEGER
NOT NULL WITH DEFAULT -1 |
Number of data set extents. The value is -1 if statistics were not gathered. This column can be updated. This value is only for the last DSNUM for the object. | G |
LOGICAL_PART |
SMALLINT
NOT NULL WITH DEFAULT |
The logical partition number (logical ascending or descending order) for partitioned table spaces. The physical partition number is kept in column PARTITION. LOGICAL_PART is 0 for nonpartitioned table spaces. For partitioned table spaces that were created before Version 8, LOGICAL_PART is originally 0, but might be changed later to a nonzero value by processes such as conversion to table-controlled partitioning. | G |
LIMITKEY_INTERNAL |
VARCHAR(512)
NOT NULL WITH DEFAULT FOR BIT DATA |
The highest value of the limit key of the partition in an internal format. If the table uses index-controlled partitioning instead of table-controlled partitioning or the table is not partitioned, the value is an empty string. If the table space was converted from index-controlled partitioning to table-controlled partitioning, the value is the highest possible value for an ascending key, or the lowest possible value for a descending key. If any column of the key has a field procedure, the internal format is the encoded form of the value. | S |
OLDEST_VERSION |
SMALLINT
NOT NULL WITH DEFAULT |
The version number of the oldest format of data in the table part and any image copies at the part level. | G |
CREATEDTS |
TIMESTAMP
NOT NULL WITH DEFAULT |
Time when the partition was created. | 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 were not gathered. | G |
FORMAT |
CHAR(1)
NOT NULL WITH DEFAULT |
Indicates the format of the rows in the table space or partition:
|
G |
RELCREATED |
CHAR(1)
NOT NULL |
The release of Db2 that is used to create the object. Blank if created before Version 9. See Release dependency indicators for all other values. | G |
REORG_LR_TS |
TIMESTAMP
NOT NULL WITH DEFAULT |
The time when the REORG or LOAD REPLACE utility last occurred. The default value is '0001-01-01.00.00.00.000000'. | G |
HASHSPACE |
BIGINT
NOT NULL WITH DEFAULT |
For partition-by-range (UTS) table spaces, the amount of space, in KB, specified at the partition level to override the space specification at the table level. If no override is provided it is the same as the value of HASHSPACE in the SYSIBM.SYSTABLEPSACE catalog table. For partition-by-growth table spaces, this value is zero. |
G |
HASHDATAPAGES |
BIGINT
NOT NULL WITH DEFAULT |
For partition-by-range table spaces, the number of hash data pages that correspond to the value of the HASHSPACE column for each partition. The value is 0 for table spaces that are changed to use hash access but not reorganized. For partition-by-growth table spaces, the value is zero. |
G |
RBA_FORMAT |
CHAR(1)
NOT NULL WITH DEFAULT |
The RBA and LRSN format for the
page sets of the table partition:
|
G |
PCTFREE_UPD |
SMALLINT
NOT NULL WITH DEFAULT |
The percentage of free space that is reserved for updates to variable length records, as defined when the object as created or altered. | G |
PCTFREE_UPD_CALC |
SMALLINT
NOT NULL WITH DEFAULT |
The percentage of free space that is reserved for updates to variable length records, which are calculated by Db2 or utilities. | G |
TYPE |
CHAR(1)
WITH DEFAULT NULL |
The type of partition.
|
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 |
BPOOL |
CHAR(8)
WITH DEFAULT NULL |
Name of the buffer pool used for the partition. The value might be NULL for table spaces that were created before Db2 12. In that case, Db2 uses the value in the SYSTABLESPACE.BPOOL column. |
G |
PGSIZE |
SMALLINT
WITH DEFAULT NULL |
Size of pages in the table space in kilobytes. The value might be NULL for table spaces that were created before Db2 12. In that case, Db2 uses the value in the SYSTABLESPACE.PGSIZE column. |
G |
DSSIZE |
INTEGER
WITH DEFAULT NULL |
Maximum size on a partitioned table space data set. 0 for a nonpartitioned table space. The value might be NULL for table spaces that were created before Db2 12. In that case, Db2 uses the value in SYSTABLESPACE.DSSIZE column. |
G |
MEMBER_CLUSTER |
CHAR(1)
WITH DEFAULT NULL |
Indicates whether MEMBER CLUSTER is specified for the table space.
The value might be NULL for table spaces that were created before Db2 12. In that case, Db2 uses the value in the SYSTABLESPACE.MEMBER_CLUSTER column. |
G |
COMPRESSRATIO |
SMALLINT
NOT NULL WITH DEFAULT |
Average percentage of bytes saved by compression on each compressed data record in the partition 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 |
COMPRESS_USED |
CHAR(1)
WITH DEFAULT NULL |
For a partitioned table space, this column indicates whether the partition is compressed. If the partition is compressed, the column indicates which compression algorithm is used. For a nonpartitioned table space, this column indicates whether the table space is compressed. If the table space is compressed, the column indicates which compression algorithm is used. In rare cases, this column is not updated when compression occurs. For more information, see Determining the effectiveness of compression.
|
G |