DB2 v10.5 EXPLAIN TABLES

db2 解释表

1、ADVISE_INDEX 建议索引


COLUMN NAMEDATA_TYPEDESCIRBE
EXPLAIN_REQUESTERVARCHAR(128)Authorization ID of initiator of this Explain request.
EXPLAIN_TIMETIMESTAMPTime of initiation for Explain request.
SOURCE_NAMEVARCHAR(128)Name of the package running when the dynamic statement was explained or name of the source file when static SQL was explained.
SOURCE_SCHEMAVARCHAR(128)Schema, or qualifier, of source of Explain request.
SOURCE_VERSIONVARCHAR(64)Version of the source of the Explain request.
EXPLAIN_LEVELCHAR(1)Level of Explain information for which this row is relevant.
STMTNOINTEGERStatement number within package to which this explain information is related.
SECTNOINTEGERSection number within package to which this explain information is related.
QUERYNOINTEGERNumeric identifier for explained SQL statement. For dynamic SQL statements (excluding the EXPLAIN SQL statement) issued through CLP or CLI, the default value is a sequentially incremented value. Otherwise, the default value is the value of STMTNO for static SQL statements and 1 for dynamic SQL statements.
QUERYTAGCHAR(20)Identifier tag for each explained SQL statement. For dynamic SQL statements issued through CLP (excluding the EXPLAIN SQL statement), the default value is 'CLP'. For dynamic SQL statements issued through CLI (excluding the EXPLAIN SQL statement), the default value is 'CLI'. Otherwise, the default value used is blanks.
NAMEVARCHAR(128)Name of the index.
CREATORVARCHAR(128)Qualifier of the index name.
TBNAMEVARCHAR(128)Name of the table or nickname on which the index is defined.
TBCREATORVARCHAR(128)Qualifier of the table name.
COLNAMESCLOB(2M)List of column names.
UNIQUERULECHAR(1)Unique rule:D = Duplicates allowedP = Primary indexU = Unique entries only allowed
COLCOUNTSMALLINTNumber of columns in the key plus the number of include columns if any.
IIDSMALLINTInternal index ID.
NLEAFBIGINTNumber of leaf pages; -1 if statistics are not gathered.
NLEVELSSMALLINTNumber of index levels; -1 if statistics are not gathered.
FIRSTKEYCARDBIGINTNumber of distinct first key values; -1 if statistics are not gathered.
FULLKEYCARDBIGINTNumber of distinct full key values; -1 if statistics are not gathered.
CLUSTERRATIOSMALLINTDegree of data clustering with the index; -1 if statistics are not gathered or if detailed index statistics are gathered (in which case, CLUSTERFACTOR will be used instead).
AVGPARTITION_ CLUSTERRATIOSMALLINTDegree of data clustering within a single data partition. -1 if the table is not table partitioned, if statistics are not gathered, or if detailed statistics are gathered (in which case AVGPARTITION_CLUSTERFACTOR will be used instead).
AVGPARTITION_ CLUSTERFACTORDOUBLEFiner measurement of the degree of clustering within a single data partition. -1 if the table is not table partitioned, if statistics are not gathered, or if the index is defined on a nickname.
AVGPARTITION_PAGE_ FETCH_PAIRSVARCHAR(520)A list of paired integers in character form. Each pair represents a potential buffer pool size and the corresponding page fetches required to access a single data partition from the table. Zero-length string if no data is available, or if the table is not table partitioned.
DATAPARTITION_ CLUSTERFACTORDOUBLEA statistic measuring the "clustering" of the index keys with regard to data partitions. This field holds a number between zero and one, with one representing perfect clustering and zero representing no clustering.
CLUSTERFACTORDOUBLEFiner measurement of degree of clustering, or -1 if detailed index statistics have not been gathered or if the index is defined on a nickname.
USERDEFINEDSMALLINTDefined by the user.
SYSTEM_REQUIREDSMALLINT1 if one or the other of the following conditions is met:This index is required for a primary or unique key constraint, or this index is a dimension block index or composite block index for a multi-dimensional clustering (MDC) table.This is an index on the (OID) column of a typed table.2 if both of the following conditions are met:This index is required for a primary or unique key constraint, or this index is a dimension block index or composite block index for an MDC table.This is an index on the (OID) column of a typed table.0 otherwise.
CREATE_TIMETIMESTAMPTime when the index was created.
STATS_TIMETIMESTAMPLast time when any change was made to recorded statistics for this index. Null if no statistics available.
PAGE_FETCH_PAIRSVARCHAR(520)A list of pairs of integers, represented in character form. Each pair represents the number of pages in a hypothetical buffer, and the number of page fetches required to scan the table with this index using that hypothetical buffer. (Zero-length string if no data available.)
REMARKSVARCHAR(254)User-supplied comment, or null.
DEFINERVARCHAR(128)User who created the index.
CONVERTEDCHAR(1)Reserved for future use.
SEQUENTIAL_PAGESBIGINTNumber of leaf pages located on disk in index key order with few or no large gaps between them. (-1 if no statistics are available.)
DENSITYINTEGERRatio of SEQUENTIAL_PAGES to number of pages in the range of pages occupied by the index, expressed as a percent (integer between 0 and 100, -1 if no statistics are available.)
FIRST2KEYCARDBIGINTNumber of distinct keys using the first two columns of the index (-1 if no statistics or inapplicable)
FIRST3KEYCARDBIGINTNumber of distinct keys using the first three columns of the index (-1 if no statistics or inapplicable)
FIRST4KEYCARDBIGINTNumber of distinct keys using the first four columns of the index (-1 if no statistics or inapplicable)
PCTFREESMALLINTPercentage of each index leaf page to be reserved during initial building of the index. This space is available for future inserts after the index is built.
UNIQUE_COLCOUNTSMALLINTThe number of columns required for a unique key. Always <=COLCOUNT. < COLCOUNT only if there a include columns. -1 if index has no unique key (permits duplicates)
MINPCTUSEDSMALLINTIf not zero, then online index defragmentation is enabled, and the value is the threshold of minimum used space before merging pages.
REVERSE_SCANSCHAR(1)Y = Index supports reverse scans
N = Index does not support reverse scans
USE_INDEXCHAR(1)Y = index recommended or evaluated
N = index not to be recommended
R = an existing clustering RID index was recommended (by the Design Advisor) to be unclustered; this is the case when a new clustering RID index is recommended for the tableI = Ignore an existing non-unique index. The EXISTS column should be 'Y' in this case or the index will not be ignored.
CREATION_TEXTCLOB(2M)The SQL statement used to create the index.
PACKED_DESCBLOB(1M)Internal description of the table.
RUN_IDTIMESTAMPA value corresponding to the START_TIME of a row in the ADVISE_INSTANCE table, linking it to the same Design Advisor run.
INDEXTYPEVARCHAR(4)Type of index.
CLUS = Clustering
REG = Regular
DIM = Dimension block index
BLOK = Block index
EXISTSCHAR(1)Set to 'Y' if the index exists in the database catalog or 'N' if the index does not currently exist in the catalog.
RIDTOBLOCKCHAR(1)Set to 'Y' if the RID index was used to make a block index in the Design Advisor.
NULLKEYSCHAR(1)Specifies whether null keys are indexed.
N = Keys that contain all null values are not indexed (not considering columns or expressions from the INCLUDE clause)
Y = Keys that contain all null values are indexed (not considering columns or expressions from the INCLUDE clause)


2、
















评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值