'java.sql.SQLException: Attempt to set a parameter name that does not occur in the SQL' in JDBC 11.2.0.1.0 (Doc ID 1074130.1)

Last updated on MARCH 08, 2017

Applies to:

JDBC - Version: 11.2.0.1 to 11.2.0.1 - Release: 11.2 to 11.2
Information in this document applies to any platform.

Symptoms

When trying to use named parameter with OracleCallableStatement with JDBC 11.2.0.1 against an Oracle database 11.2.0.1, then following exception is obtained:

java.sql.SQLException: Attempt to set a parameter name that does not occur in the SQL: V_CUR

When the same code is executed with 11.1.0.7.0  JDBC driver against the same 11.2.0.1 database, it works fine.

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