2016年07月22日 16:35:37
⁄ 错误警告 
⁄ 共 884字
⁄ 被围观 3,857次
原因: 出现这个问题,可能有人move过表,或者disable 过索引。
alter table xxxxxx move tablespace xxxxxxx 命令后,索引就会失效。
alter index index_name unusable,命令使索引失效。
解决办法:重建索引才是解决这类问题的完全的方法。
alter index index_name rebuild (online);
或者
alter index index_name rebuild;
如果是分区索引只需要重建那个失效的分区 。
alter index index_name rebuild partition partition_...
Oracle, Warning, 开发工具阅读全文