Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> SQLException: "Data size bigger than... "
Hi,
when I set a String with setObject(int, Object) in a
PreparedStatement, I get the SQLException:
"Data size bigger than max size for this type"
The oracle data type is LONG. The exception occurs only when the
string is longer than 4kBytes.
I haven't found any information about the maximum size of a java
String which i can set with setObject. I know that the oracle
data type LONG type is mapped to JDBC data type LONGVARCHAR.
But isn't there enough space for a string when using this type.
Something near 1GigaByte ???
We are using oracle 8.0.4 database with the oracle thin JDBC
driver.
Has someone an idea ?
--== Sent via Deja.com http://www.deja.com/ ==-- ---Share what you know. Learn what you don't.--- Received on Fri May 14 1999 - 02:07:24 CDT