首页 > 数据库 > Oracle > 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
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31558081/viewspace-2216391/,如需转载,请注明出处,否则将追究法律责任。