2012-11-5 11gR2 "ADMINISTRATOR'S GUIDE" page 647 - 698

本文探讨了监控索引空间使用的策略,并提供了分析、验证索引效率、检查空间使用百分比的方法。通过定期操作分析、验证索引并检查PCT_USED,可以发现索引空间使用率的变化,进而决定是否需要通过合并或重建索引来优化空间使用。

 

 

Consider Costs and Benefits of Coalescing or Rebuilding Indexes -- COALESCE与REBUILD

 

 

Monitoring Space Use of Indexes -- 监控索引的空间使用
If key values in an index are inserted, updated, and deleted frequently, the index can
lose its acquired space efficiently over time. Monitor index efficiency of space usage at
regular intervals by first analyzing the index structure, using the ANALYZE
INDEX...VALIDATE STRUCTURE statement, and then querying the INDEX_STATS
view: -- 定期对索引做个检查


SELECT PCT_USED FROM INDEX_STATS WHERE NAME = 'index';
The percentage of index space usage varies according to how often index keys are
inserted, updated, or deleted. Develop a history of average efficiency of space usage
for an index by performing the following sequence of operations several times:
 -- Analyzing statistics
 -- Validating the index
 -- Checking PCT_USED
 -- Dropping and rebuilding (or coalescing) the index
When you find that index space usage drops below its average, you can condense the
index space by dropping the index and rebuilding it, or coalescing


Indexes Data Dictionary Views -- 与索引相关的数据字典视图

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值