码迷,mamicode.com
首页 > 其他好文 > 详细

索引失效查询与重建

时间:2017-11-29 18:23:58      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:分区索引   sele   rebuild   查询   alt   lte   nio   status   bsp   

-- 检查索引状态
select index_name, partition_name, status
from user_ind_partitions
where status = ‘UNUSABLE‘
union all
select index_name, ‘‘ as partition_name, status
from user_indexes
where status = ‘UNUSABLE‘;

-- 重建分区索引
alter index PK_SALE rebuild partition PY11Q3;
alter index IPK_TT_BSP_WAYBILL rebuild

索引失效查询与重建

标签:分区索引   sele   rebuild   查询   alt   lte   nio   status   bsp   

原文地址:http://www.cnblogs.com/fubinhnust/p/7921421.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!