冷静、沉淀

分析索引是否变'坏'

上一篇 / 下一篇  2004-10-11 00:00:00 / 个人分类:Oracle

使用以下语句验证索引

-- 使用以下语句验证索引
-- 注意pct_used,如果小于used_space/btree_space-pct_free,考虑rebuild索引
-- An index can deteriorate over time due to sparseness, not due to "unbalancing".
analyze index <index_name> validate structure
/
select btree_space, used_space, pct_used, blocks, lf_blks, br_blks from index_stats
/
ALTER INDEX <index_name> COALESCE COMPUTE STATISTICS
/

TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-08-22  
     12
3456789
10111213141516
17181920212223
24252627282930
31      

数据统计

  • 访问量: 9786
  • 日志数: 823
  • 建立时间: 2007-12-28
  • 更新时间: 2008-08-08

RSS订阅

Open Toolbar