今天接到业务员反映错误:
ORA-20000: index "ADAPTER"."PK_ADAPTER_ANALISLYZERSCHEDULE" or partition of such index is in unusable state
查看索引项目
select * from dba_indexes
但是里面的status 却是 VALID
不解。。。。
先处理问题吧,
思路索引错误,那就删除索引重建。
错误报出的索引是主键,所以删除主键
alter table table_name drop primary key;
然后重建索引。
ORA-20000: index "ADAPTER"."PK_ADAPTER_ANALISLYZERSCHEDULE" or partition of such index is in unusable state
查看索引项目
select * from dba_indexes
但是里面的status 却是 VALID
不解。。。。
先处理问题吧,
思路索引错误,那就删除索引重建。
错误报出的索引是主键,所以删除主键
alter table table_name drop primary key;
然后重建索引。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26764973/viewspace-1183106/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26764973/viewspace-1183106/