ORA-01502: 索引或这类索引的分区处于不可用状态
1. alter table xxxxxx move tablespace xxxxxxx 命令后,索引就会失效。
2. alter index index_name  unusable,命令使索引失效。
查询当前索引的状态:select distinct status from user_indexes;
查询那个索引无效:select index_name from  user_indexes where status <> 'VALID';
解决办法:
重建索引才是解决这类问题的完全的方法。
     alter index index_name rebuild (online);
     或者alter index index_name rebuild;

ORACLE ora-01502 索引失效

 亲测有效

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-11
  • 2022-02-08
  • 2021-05-20
  • 2022-12-23
  • 2021-11-13
  • 2021-11-27
相关资源
相似解决方案