JDBC Prepared Update Statement Fails With ORA-00936 After PreparedStatement.getParameterMetaData() In JDBC 12c (Doc ID 2004885.1)

Last updated on AUGUST 16, 2016

Applies to:

JDBC - Version 12.1.0.1.0 to 12.1.0.2.0 [Release 12.1]
Information in this document applies to any platform.

Symptoms

Oracle Database 12c ( 12.1.0.1.0)
JDBC 12.1.0.1

Java method java.sql.PreparedStatement.getParameterMetaData() fails with:

ORA-00936: missing expression

when executing the following UPDATE statement:


The statement works with JDBC Driver version 11.2.0.4 and older releases.

Changes

 Upgrade to JDBC 12c

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