ORA-22992 Occurs If Using PreparedStatement.setNull(x, java.sql.Types.BLOB) Over DBLink (Doc ID 2065087.1)

Last updated on OCTOBER 13, 2015

Applies to:

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

Symptoms


When using PreparedStatement.setNull(x, java.sql.Types.BLOB) to insert a row including LOBs over dblink, the JDBC thin driver returns the error:

java.sql.SQLException: ORA-22992: cannot use LOB locators selected from remote tables
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:445)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:450)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:192)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement. java:207)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedSta tement.java:1044)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme nt.java:1329)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePrep aredStatement.java:3593)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat ement.java:3694)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePrepa redStatementWrapper.java:1378)
...



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