Oracle索引状态查询&索引重建


--检查损坏索引
SELECT status , COUNT (*)
  FROM dba_indexes
  GROUP BY status
UNION
SELECT status , COUNT (*)
  FROM dba_ind_partitions
  GROUP BY status
UNION
SELECT status , COUNT (*)
  FROM dba_ind_subpartitions
  GROUP BY status
--重建索引
alter index pk_kc03 rebuild nologging ;
or
alter index pk_kc03 rebuild


免责声明!

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



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