Oracle 查看index是否失效

一、普通索引是否失效

select * from dba_indexes s where s.owner  in ('ISMP','BOSS','PAY','ACCOUNT','SETTLE','TEMP_DSF') and s.status!='VALID';

二、分区索引状态
select * from dba_ind_partitions l where l.index_owner  in ('ISMP','BOSS','PAY','ACCOUNT','SETTLE','TEMP_DSF') and l.status!='USABLE';

三、重建索引

rebuild online;

猜你喜欢

转载自www.cnblogs.com/xibuhaohao/p/11957914.html
今日推荐