ORA-01502: 索引或这类索引的分区处于不可用状态

Oracle中的rowid例子中 执行了

alter table ACTOR move tablespace users;

后来在ACTOR表上执行插入语句时候报错

INSERT INTO "SAKILA"."ACTOR" ("FIRST_NAME","LAST_NAME","LAST_UPDATE")VALUES('', '', SYSDATE);

错误信息

ORA-01502: 索引或这类索引的分区处于不可用状态

原因

出现这个问题,可能有人move过表,或者disable 过索引。
1. alter table xxxxxx move tablespace xxxxxxx 命令后,索引就会失效。
2. alter index index_name  unusable,命令使索引失效。

解决办法:

重建索引   

alter index index_name rebuild online;

posted on 2015-04-24 00:03  小强斋太  阅读(2959)  评论(0编辑  收藏  举报

导航