首页 > 数据库技术 > 详细

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

时间:2017-01-10 17:26:59      阅读:227      评论:0      收藏:0      [点我收藏+]
--检查损坏索引
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

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

原文:http://www.cnblogs.com/surinfo/p/6269729.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!