首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

oracle 索引出错解决办法

2012-07-31 
oracle 索引出错解决方法【jdbc的错误】ORA-01502: index XXXX or partition of such index is in unusabl

oracle 索引出错解决方法

【jdbc的错误】ORA-01502: index 'XXXX' or partition of such index is in unusable state

【解决方法】

select index_name from user_indexes where status = 'UNUSABLE'

选中结果集,copy到eclipse里,使用正则替换成一下sql

alter index ${index_name} rebuild

然后执行替换后的语句

PS:参考正则

regexp: ^(.*)$

replaceBy: alter index $1 rebuild;

?

?

?

?

热点排行