壹佰网|ERP100 - 企业信息化知识门户

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3112|回复: 9

[资产|安全|PM|工单] configdb出现的问题

[复制链接]
发表于 2008/11/24 11:53:21 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622  。

您需要 登录 才可以下载或查看,没有帐号?注册

x
本帖最后由 mxg1104 于 2008-11-24 11:55 编辑

java.sql.SQLException: ORA-29855: error occurred in the execution of ODCIINDEXC
EATE routine
ORA-20000: Oracle Text error:
DRG-10700: preference does not exist: global_lexer
ORA-06512: at \"CTXSYS.DRUE\", line 160
ORA-06512: at \"CTXSYS.TEXTINDEXMETHODS\", line 364

        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.jav
:112)
        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
        at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
        at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:207)
        at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:946

        at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatem
nt.java:1168)
        at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.j
va:1687)
        at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1653

        at psdi.configure.CommonShell.doSql(CommonShell.java:339)
        at psdi.configure.ConfigDB.alterTable(ConfigDB.java:1452)
        at psdi.configure.ConfigDB.configureTables(ConfigDB.java:550)
        at psdi.configure.ConfigDB.process(ConfigDB.java:255)
        at psdi.configure.ConfigDB.main(ConfigDB.java:2564)
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-20000: Oracle Text error:
DRG-10700: preference does not exist: global_lexer
ORA-06512: at \"CTXSYS.DRUE\", line 160
ORA-06512: at \"CTXSYS.TEXTINDEXMETHODS\", line 364
Thu Nov 13 12:46:34 CST 2008
ConfigDB completed with errors  Thu Nov 13 12:46:34 CST 2008
RestoreFromBackup completed  Thu Nov 13 12:46:34 CST 2008




修改了几个字段的属性configdb报的错,数据库是oracle,请大侠帮忙一下!
发表于 2008/11/24 13:04:23 | 显示全部楼层
这要看你的数据库是什么版本的,如果是9i的话你需要升级到9.2.0.6以上,如果是10的话,你可以先看看你对maximo用户的授权.
 楼主| 发表于 2008/11/24 13:12:15 | 显示全部楼层
oracle 10.2
权限
create user maximo identified by maximo;
alter user maximo default tablespace maximo quota unlimited on maximo;
alter user maximo temporary tablespace temp;
grant create trigger to maximo;
grant create session to maximo;
grant create sequence to maximo;
grant create synonym to maximo;
grant create table to maximo;
grant create view to maximo;
grant create procedure to maximo;
grant alter session to maximo;
grant execute on ctxsys.ctx_ddl to maximo;

grant create job to maximo;
发表于 2008/11/24 13:22:10 | 显示全部楼层
几个办法,
1 你尝试一下这个,grant dba to maximo; 然后在配置数据库;
2 你去maximo/tools/maximo/log下面把configdb的log日志打开看一下,看看是执行什么语句时出错
发表于 2008/11/24 13:23:11 | 显示全部楼层
如果觉得dba的权限太大就执行下面的;
grant create any table to maximo;
grant create any index to maximo;
grant create any sequence to maximo;
 楼主| 发表于 2008/11/24 17:21:38 | 显示全部楼层
好的,我试试,多谢!
发表于 2008/11/24 17:42:38 | 显示全部楼层
首先确定数据库安装时,进行imp是否出现过类似的错误
首要解决imp的问题

从DRG-10700: preference does not exist: global_lexer
这个错误,有可能是oracle text出了问题,如果你用em或安装oracle时直接建库,那oracle text一般都正常,grant execute on ctxsys.ctx_ddl to maximo;执行就会正常

如果不正常,就重装oracle text吧
完了还不行,就不知道了
发表于 2008/11/27 15:19:38 | 显示全部楼层
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);
发表于 2008/11/27 15:21:56 | 显示全部楼层
刚有个同事遇到一样的问题,帮忙解决了一下。ibm有官方的文档,用maximo用户执行
2遍上面的sql就可以了。
不过很抱歉,ibm官方发布的文档地址我记不清了,电脑坏了一次,收藏的地址都没了。唉。
发表于 2009/4/13 17:43:29 | 显示全部楼层
上面的很好用,呵呵。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2025/11/30 02:32 , Processed in 0.020503 second(s), 14 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表