我正在尝试将格鲁吉亚字符更新为用于XML的Clob。我必须使用clob,因为文本通常很大。这是我的更新部分:
select = "update datadocumentxml d\n" +
" set d.datadocumentxml = updatexml(xmltype(d.datadocumentxml),'/Comments/@Comment', ?)\n" +
" .getClobVal(),\n" +
" where d.processengineguid = fnguidjava2raw(?)\n" +
" and d.datadocumentid = 'Comments'";
ps = conn.prepareStatement(select);
ps.setClob(1,clob);
ps.setString(2,processid);
rs = ps.executeQuery();
此代码可完美地用于英语,俄语,阿拉伯语和某些字符。但是,当我尝试更新超过6个字符的格鲁吉亚字母时,出现内部错误。我也尝试过日语字母,但它们也不起作用。
这是错误:
Caused by: java.sql.SQLException: ORA-00600: internal error code,
arguments: [17114], [0x7FEA96179698], [], [], [], [], [], [], [], [], [], []
ORA-00600: internal error code, arguments: [17114], [0x7FEA96179698], [], [], [], [], [], [], [], [], [], []
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:951)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:513)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:227)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:208)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1046)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1336)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3613)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3657)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1495)
at sun.reflect.GeneratedMethodAccessor845.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at oracle.ucp.jdbc.proxy.PreparedStatementProxyFactory.invoke(PreparedStatementProxyFactory.java:125)
at com.sun.proxy.$Proxy949.executeQuery(Unknown Source)
at ge.bog.integration.crif.data.collector.connector.parallelcomments.UpdateXml.setComment(UpdateXml.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
... 46 more
我认为这与JDBC驱动程序和字符集有关。
任何建议将大有帮助。谢谢。