oracle9i + jdk1.4中遇到的汉字问题!!!

seeu
04-06-28 205

环境:
JDK1.4 + Oracle9i (字符集 SIMPLIFIED CHINESE_CHINA.ZHS16GBK)

问题:
table_test表里有两个字段remark varchar2(4000), brief varchar2(4000),
当用PreparedStatement的如下代码:

StringReader r = new StringReader((String) o);
pstmt.setCharacterStream(i + 1, r, ((String) o).length());

插入remark,brief字段1500个汉字成功。但当update的时候,用的也是上面的方法,就出现如下异常:
ORA-22295: cannot bind more than 4000 bytes data to LOB and LONG columns in 1 statement
请问如何解决?