My Oracle Support Banner

After Upgrading Database And JDBC From To Intermittent ORA-01461 Errors Occur (Doc ID 461670.1)

Last updated on FEBRUARY 22, 2019

Applies to:

Oracle Database - Enterprise Edition - Version and later
JDBC - Version and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Information in this document applies to any platform.
***Checked for relevance on 04-Feb-2013***


A large application accesses the database through JDBC connections. A few days after upgrading the database and JDBC jar files from to, random ORA-01461 errors started to occur. The errors are not tied to any table or statement.

The exception reported by JDBC is:

    java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column

The ORA-01461 occurs on statements like:
    UPDATE table SET column = ? <... where clause ...>
    INSERT INTO table VALUES (?, ?)

The ORA-01461 did not occur with the database.


Upgraded the database from to


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.