DSN_VIRTUAL_INDEXES
The virtual indexes table, DSN_VIRTUAL_INDEXES, enables optimization tools to test the effect of creating and dropping indexes on the performance of particular queries.
Tip: You can use tools
such as IBM® Data Server Manager and related Db2 Tools for z/OS® solutions to simplify this task.
Recommendation: Do not manually insert data into or
delete data from this table, it is intended to be used only by optimization tools.
Column name | Data type | Description |
---|---|---|
TBCREATOR | VARCHAR(128) | The schema or authorization ID of the owner of the table on which the index is being created or dropped. |
TBNAME | VARCHAR(128) | The name of the table on which the index is being created or dropped. |
IXCREATOR | VARCHAR(128) | The schema or authorization ID of the owner of the index. |
IXNAME | VARCHAR(128) | The index name. |
ENABLE | CHAR(1) | Indicates whether this index should be considered in the
scenario that is being tested. This column can have one of the following values:
If this column contains 'Y', but the index definition is not valid, the index is ignored. |
MODE | CHAR(1) | Indicates whether the index is being created or dropped.
This column can have one of the following values:
|
UNIQUERULE | CHAR(1) | Indicates whether the index is unique. This column can
have one of the following values:
|
COLCOUNT | SMALLINT | The number of columns in the key. |
CLUSTERING | CHAR(1) | Indicates whether the index is clustered. This column
can have one of the following values:
|
NLEAF | INTEGER | The number of active leaf pages in the index. If unknown, the value is -1. |
NLEVELS | SMALLINT | The number of levels in the index tree. If unknown, the value is -1. |
INDEXTYPE | CHAR(1) | The index type. This column can have one of the
following values:
|
PGSIZE | SMALLINT | The size, in kilobytes, of the leaf pages in the index. This column can have one of the following values: 4, 8, 16, or 32. |
FIRSTKEYCARDF | FLOAT | The number of distinct values of the first key column. If unknown, the value is -1. |
FULLKEYCARDF | FLOAT | The number of distinct values of the key. If unknown, the value is -1. |
CLUSTERRATIOF | FLOAT | The percentage of rows that are in clustering order. Multiply this column value by 100 to get the percent value. For example, a value of .9125 in this column indicates that 91.25%. of the rows are in clustering order. If unknown, the value is -1. |
PADDED | CHAR(1) | Indicates whether keys within the index are padded for
varying-length column data. This column can have one of the following values:
|
COLNO1 | SMALLINT | The column number of the first column in the index key. |
ORDERING1 | CHAR(1) | Indicates the order of the first column in the index
key. This column can have one of the following values:
|
COLNOn | SMALLINT | The column number of the nth column in the index key, where n is a number between 2 and 64, including 2 and 64. If the number of index keys is less than n, this column is null. |
ORDERINGn | CHAR(1) | Indicates the order of the nth column in the
index key, where n is a number between 2 and 64, including 2 and 64. This column
can have one of the following values:
If the number of index keys is less than n, this column is null. |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]()
![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]()
![]() |