My Oracle Support Banner

ORA-00933 When Using Bind Variables in JDBC 11.2 (Doc ID 1304235.1)

Last updated on JUNE 24, 2021

Applies to:

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

Symptoms

When the following statement is executed manually in sqlplus or toad, it works successfully:



Result:
PRODUCT_ID PRICE_LIST_ID
10000           plist1


If the statement is executed with JDBC driver version 11.1, the result is also the expected.

However, if the same statement is run with JDBC driver 11 release 2, it fails with:


CONTAINER:atg.repository.RepositoryException; SOURCE:java.sql.SQLException: java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended

[++SQLQuery++]
select v2.product_id, v2.price_list_id from PARTY_TYPE_RELEASE_VW v1, PRODUCT_SLOT_SMALL_VW v2 where v1.product_id = v2.product_id and v2.price_list_id = ?0 and v1.rank <= ?1 and v
1.party_id = ?2 and v1.primary_type = ?3 order by v1.rank
-- Parameters --
p[1] = {pd} plist1 (java.lang.String)
p[2] = {pd} 1 (java.lang.Integer)
p[3] = {pd} 18 (java.lang.Integer)
p[4] = {pd} POP (java.lang.String)
[--SQLQuery--]

Changes

Upgrade from JDBC driver 11.1 to JDBC driver 11.2.

Cause

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
Symptoms
Changes
Cause
Solution
References


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