ANALYZE INDEX clause

本文详细介绍了Oracle数据库中索引的统计信息,包括索引深度、叶子块数量、不同索引值的数量等,并解释了如何使用ANALYZE INDEX命令进行分析。

Oracle Database collects the following statistics for an index. Statistics
marked with an asterisk are always computed exactly. For conventional indexes,
when you compute or estimate statistics, the statistics appear in the data
dictionary views USER_INDEXES,ALL_INDEXES, and DBA_INDEXES in the columns shown
in parentheses.
■ * Depth of the index from its root block to its leaf blocks (BLEVEL)
■ Number of leaf blocks (LEAF_BLOCKS)
■ Number of distinct index values (DISTINCT_KEYS)
■ Average number of leaf blocks for each index value (AVG_LEAF_BLOCKS_PER_KEY)
■ Average number of data blocks for each index value (for an index on a table)
(AVG_DATA_BLOCKS_PER_KEY)
■ Clustering factor (how well ordered the rows are about the indexed values)
(CLUSTERING_FACTOR)

使用ANALYZE INDEX 分析索引的root块至叶子块的深度 ,叶子块数目 , distinct索引值 等信息 ,将分析数据保存在*INDEXES等视图的BLEVEL,LEAF_BLOCKS等字段

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10599713/viewspace-1001742/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10599713/viewspace-1001742/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值