问题
I have a Java application where I store data in clob and then I use UPDATEXML to update. It works perfectly on latin characters, symbols. But I come from Georgia and it won't update Georgian letters (აბგ). I tried with Russian letters and it worked perfectly.
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();
This is my update statement, when I try to update Georgian letters, I get different errors:
ORA-00603: ORACLE server session terminated by fatal error
java.sql.SQLRecoverableException: No more data to read from socket
I suppose it has something to do with encoding.. any ideas?
来源:https://stackoverflow.com/questions/55515523/cant-update-xml-with-non-latin-characters-in-oracle