关于索引的信息统计
QL> analyze index
idx_test_objectid
compute statistics;
索引已分析
已用时间: 00: 00: 00.09
SQL> select height,(del_lf_rows/lf_rows)*100 from index_stats;
未选定行
已用时间: 00: 00: 00.01
SQL> analyze index idx_test_objectid
;
索引已分析
已用时间: 00: 00: 00.04
SQL> select height,(del_lf_rows/lf_rows)*100 from index_stats;
HEIGHT (DEL_LF_ROWS/LF_ROWS)*100
---------- -------------------------
2 6.03644482
compute statistics 与validate structure的差别在哪里?
compute statistics 收集统计信息,供CBO使用
validate structure 分析索引结构、信息
如果没有validate structure,index_stats是查不到值的
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22664653/viewspace-668517/
,如需转载,请注明出处,否则将追究法律责任。