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;


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM