Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Inserting/updating CLOB - works in one DB but not in another

Re: Inserting/updating CLOB - works in one DB but not in another

From: Frank van Bortel <fvanbortel_at_netscape.net>
Date: Thu, 02 Sep 2004 09:50:17 +0200
Message-ID: <ch6iut$1j6$1@news3.tilbu1.nb.home.nl>


heidi wrote:
> I am puzzled with a problem that was reported by one of our customers in
> Germany; the one that I cannot reproduce locally.
>
> A Java program, using the JDBC driver, runs this code snippet:
>
> CLOB clob = CLOB.createTemporary(con, false, CLOB.DURATION_CALL);
> blobs.addElement(clob);
> char[] buffer = string.toCharArray();
> clob.putChars(1, buffer);
> ((OraclePreparedStatement) ps).setCLOB(index, clob);
>
> This results in the following SQL command:
>
> update CHART set DESCRIPTION = ? where NAME = 'Procedure1'
>
> DESCRIPTION is a column of CLOB type.
>
> Both Oracle installations (ours and the customer's) use the same DB server
> (V9.2.0.1.0) and the same JDBC driver. Our installation works fine. The
> German one fails with the following error:
>
> java.sql.SQLException: Keine weiteren Daten aus Socket zu lesen
> java.sql.SQLException: E/A-Exception: Software caused connection abort:
> socket write error
> SRV SQLException: java.sql.SQLException: Keine weiteren Daten aus Socket zu
> lesen
> SRV getSQLState = null
> SRV getErrorCode = 17410
> SRV ERROR: java.sql.SQLException: Keine weiteren Daten aus Socket zu lesen
>
> Code 17410 means "No more data to read from socket".
>
> I suspected some obscure differences in character sets and their treatment
> by CLOB, so I attempted to create a new database with the exact same
> contents and settings as our customer's:
>
> nls_characterset = AL32UTF8
> nls_nchar_characterset = UTF8
> nls_language = GERMAN
> nsl_territory = GERMANY
>
> but still cannot reproduce the problem.
>
> I hope that someone can help me out.
>
> TIA
>
> Heidi
>
>

How about using the same *client* characterset as your customer? Bet it is german as well. BTW - did you check the release notes on 9.2.0.4, or 9.2.0.5?

-- 

Regards,
Frank van Bortel
Received on Thu Sep 02 2004 - 02:50:17 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US