我用eos开发,在启动服务器的时候,后台报如下错误:
ORA-01502: 索引'OMGAP.PK_EOSEJBREGISTER'或这类索引的分区处于不可用状态
一开始还是好好的,不知道为什么一下子就报错了,谁碰到过这种情况,帮我解决一下。

解决方案 »

  1.   

    【转载自网络】ORA-01502: 索引'P_ABCD.PK_WEB_BASE'或这类索引的分区处于不可用状态 
    原因:出现这个问题,可能有人move过表,或者disable 过索引。
    1、alter table xxxxxx move tablespace xxxxxxx 命令后,索引就会失效。
    2、alter index index_name  unusable,命令使索引失效。解决办法:
    1、重建索引才是解决这类问题的完全的方法。
    alter index index_name rebuild (online);
    2、如果是分区索引只需要重建那个失效的分区 。
    alter index index_name rebuild partition partition_name (online); 说明:
    1. alter session set skip_unusable_indexes=true;就可以在session级别跳过无效索引作查询。
    2.分区索引应适用user_ind_partitions。
    3.状态分4种:
    N/A说明这个是分区索引需要查user_ind_partitions或者user_ind_subpartitions来确定每个分区是否可用;
    VAILD说明这个索引可用;
    UNUSABLE说明这个索引不可用;
    USABLE 说明这个索引的分区是可用的。http://www.sudu.cn/info/html/edu/20071225/20526.html
    http://blog.oracle.com.cn/html/65/t-122265.html
      

  2.   

    ORA-01502: index "string.string" or partition of such index is in unusable state 
    Cause: An attempt has been made to access an index or index partition that has been ed unusable by a direct load or by a DDL operation
    Action: DROP the specified index, or REBUILD the specified index, or REBUILD the unusable index partition需要重新创建索引OMGAP.PK_EOSEJBREGISTERALTER INDEX PK_EOSEJBREGISTER REBUILD;
      

  3.   

    这个问题是由于服务器的错误,我是客户端的,我是用的cvs上的项目,在连接服务器的时候出现的这个错误,现在公司的人正在解决这个问题,呵呵。