已发生了数据库错误 ORA-29861: 域索引标记为 LOADING/FAILED/UNUSABLE

错误状况:


BMXAA4407E - 在工作流程处理过程中发生非预期异常。
BMXAA4211E - 对WFASSIGNMENT 任务分配=2,568,992 过程=MRAPPROVE 过程修订=6 工作流程标识=42,689 节点标识=26进行操作时,已发生了数据库错误,编号为29861。
ORA-29861: 域索引标记为 LOADING/FAILED/UNUSABLE

 解决过程:

刚开始以为是域索引的问题或是全文索引的问题:执行一下全文索引的脚本,如下:

call ctx_ddl.drop_preference('global_lexer');
call ctx_ddl.drop_preference('default_lexer');
call ctx_ddl.drop_preference('english_lexer');
call ctx_ddl.drop_preference('chinese_lexer');
call ctx_ddl.drop_preference('japanese_lexer');
call ctx_ddl.drop_preference('korean_lexer');
call ctx_ddl.drop_preference('german_lexer');
call ctx_ddl.drop_preference('dutch_lexer');
call ctx_ddl.drop_preference('swedish_lexer');
call ctx_ddl.drop_preference('french_lexer');
call ctx_ddl.drop_preference('italian_lexer');
call ctx_ddl.drop_preference('spanish_lexer');
call ctx_ddl.drop_preference('portu_lexer');
call ctx_ddl.create_preference('default_lexer','basic_lexer');
call ctx_ddl.create_preference('english_lexer','basic_lexer');
call ctx_ddl.create_preference('chinese_lexer','chinese_lexer');
call ctx_ddl.create_preference('japanese_lexer','japanese_lexer');
call ctx_ddl.create_preference('korean_lexer','korean_morph_lexer');
call ctx_ddl.create_preference('german_lexer','basic_lexer');
call ctx_ddl.create_preference('dutch_lexer','basic_lexer');
call ctx_ddl.create_preference('swedish_lexer','basic_lexer');
call ctx_ddl.create_preference('french_lexer','basic_lexer');
call ctx_ddl.create_preference('italian_lexer','basic_lexer');
call ctx_ddl.create_preference('spanish_lexer','basic_lexer');
call ctx_ddl.create_preference('portu_lexer','basic_lexer');
call ctx_ddl.create_preference('global_lexer', 'multi_lexer');
call ctx_ddl.add_sub_lexer('global_lexer','default','default_lexer');
call ctx_ddl.add_sub_lexer('global_lexer','english','english_lexer','en');
call ctx_ddl.add_sub_lexer('global_lexer','simplified chinese','chinese_lexer','zh');
call ctx_ddl.add_sub_lexer('global_lexer','japanese','japanese_lexer',null);
call ctx_ddl.add_sub_lexer('global_lexer','korean','korean_lexer',null);
call ctx_ddl.add_sub_lexer('global_lexer','german','german_lexer','de');
call ctx_ddl.add_sub_lexer('global_lexer','dutch','dutch_lexer',null);
call ctx_ddl.add_sub_lexer('global_lexer','swedish','swedish_lexer','sv');
call ctx_ddl.add_sub_lexer('global_lexer','french','french_lexer','fr');
call ctx_ddl.add_sub_lexer('global_lexer','italian','italian_lexer','it');
call ctx_ddl.add_sub_lexer('global_lexer','spanish','spanish_lexer','es');
call ctx_ddl.add_sub_lexer('global_lexer','portuguese','portu_lexer',null);

运行起来,问题没解决。 


好吧,那就在数据库配置中去除已启用文本搜索?

Configdb的时候无法完成,报“域索引状态为loading,不能进行ddl操作”(记不太清了,也忘记截图了)。

 

好吧,那看起来是oracle库中索引的问题。Google到一篇文章:

1.    ORA-29861: 域索引标记为 LOADING/FAILED/UNUSABLE  

2.    这是该表的一个intermedia索引有问题  

3.    先查询看看当前的全文索引  

4.    select idx_name,idx_status from ctxsys.ctx_indexes;  

5.    需要重建同步全文索引:  

6.    alter index  索引名  rebuild online parameters('sync')  

7.    如果还是不行就删除 索引  

8. drop index 索引名 force;  

查自己库中的索引SELECT t.* FROM ctxsys.ctx_indexes t,果然有好多状态异常的,如下:

 

按照上面的方法修复,不行,那就干脆删除掉算了(注:我的是测试环境,希望你慎重,我也没搞清楚这个表是做什么的)

运行好像没什么错误了。但是还没搞清楚oracle的这个东西ctxsys.ctx_indexes到底是什么,抽时间要好好看看,待续。。。

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值