select t.name, --索引名
t.lf_rows, --number of leaf rows (values in the index)
t.lf_blks,
t.del_lf_rows, --number of deleted leaf rows in the index
(t.del_lf_rows / t.lf_rows)*100 ratio --删除比例
from index_stats t
where t.name='IDX$DVBDEVINSTEN_SERVICESTR2';
如果RATIO值大于30%以上就需要考虑索引重建了。
analyze index IDX$DVBDEVINST_BUSINSTID2 validate structure;