我正在尝试从 oracle db 中检索 xml,然后尝试将相同的 xml 插入到 Oracle 数据库的不同表中。通过 clob 进行的选择工作正常,但在更新时会引发错误。
java.sql.Clob myClob = null;
connect = DriverManager.getConnection(str2, str3, str4);
String sql = "select xml from table1 where id='3|32'";
stmt = connect.prepareStatement(sql);
ResultSet rs = stmt.executeQuery();
while (rs.next()) {
myClob = rs.getClob("XML"); // This part is working fine.
//Updation
connect1 = DriverManager.getConnection(str22, str33, str44);
String query1 = "update documentsout set xml = ? " +
"where id = ? ";
stmt1 = connect1.prepareStatement(query1);
stmt1.setString(1, myClob); // Inserting the same CLOB
stmt1.setString(2, id);
stmt1.executeUpdate(); // ERROR HERE
错误是
java.sql.SQLException: ORA-00600: internal error code, arguments: [kglgtbo1], [0x700000482AA4608], [], [], [], [], [], [], [], [], [], []
你能帮忙吗?