1. 程式人生 > >Oracle 索引的失效檢查

Oracle 索引的失效檢查

select index_name, partition_name, status
from user_ind_partitions
where status = 'UNUSABLE'
union all
select index_name, '' as partition_name, status
from user_indexes
where status = 'UNUSABLE';