ITPub博客

首页 > 数据库 > Oracle > oracle 分析索引

oracle 分析索引

原创 Oracle 作者:fancyfreeman 时间:2009-07-21 09:56:36 0 删除 编辑

SQL>analyze index index_name validate structure;

SQL> SELECT blocks, pct_used, distinct_keys
2 lf_rows, del_lf_rows
3 FROM index_stats;
BLOCKS PCT_USED LF_ROWS DEL_LF_ROWS
------ --------- -------- ------------
25 11 14 0
1 row selected.
Reorganize the index if it has a high proportion of deleted rows, for example, when the
ratio of DEL_LF_ROWS to LF_ROWS exceeds 30%.

LF_ROWS :叶子数

DEL_LF_ROWS:删除的叶子数

要在同一个session中查看,否则看不见数据。

[@more@]

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

上一篇: 没有了~
下一篇: 没有了~
请登录后发表评论 登录
全部评论
  • 博文量
    1
  • 访问量
    877