java.sql.SQLException:ORA-01460 with OraclePreparedStatement setXXX Methods for large data sizes (Doc ID 305403.1)

Last updated on MAY 19, 2017

Applies to:

JDBC - Version 9.2.0.6 and later
Information in this document applies to any platform.
This problem can occur on any platform.

Symptoms

Receive the following error when inserting data into a CLOB column using ((OraclePreparedStatement)stmt).setStringForClob:

java.sql.SQLException: ORA-01460: unimplemented or unreasonable conversion requested

The error does not occur when the size of data inserted is small.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms