ORA-24816 When Updating A CLOB Column (Doc ID 2056682.1)

Last updated on MAY 05, 2017

Applies to:

JDBC - Version 9.2.0 and later
Information in this document applies to any platform.

Symptoms

Getting ORA-24816 Expanded non LONG bind data supplied after actual LONG or LOB column when updating a CLOB column with JDBC 11.2.0.3. The failing SQL looks like this:


The column data types are:

                FEATURED_CONTENT_ID NUMBER
                FEATURED_CONTENT_TYPE_ID NUMBER
                PROGRAMMING_BUILD_NOTES VARCHAR2(4000)
                PROGRAMMING_BUILD_NOTES_CLOB CLOB

               

ERROR
----------
java.sql.SQLException: ORA-24816: Expanded non LONG bind data supplied after actual LONG or LOB column

  at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:113)
  at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
  at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
  at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:754)
  at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:219)
  at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:972)
  at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1192)
  at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3415)
  at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3460)
  at JDBCTestV2.testJDBC(JDBCTestV2.java:102)
  at JDBCTestV2.main(JDBCTestV2.java:161)



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