My Oracle Support Banner

After DB Upgrade From 11.2 To 12.1, Java Stored Procedure Reports "java.sql.SQLSyntaxErrorException: ORA-00904" (Doc ID 2689853.1)

Last updated on JULY 02, 2023

Applies to:

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


After upgrading Oracle Database from to, a java stored procedure (using KPRB) reports “java.sql.SQLSyntaxErrorException: ORA-00904”.

When the java program used in the Java Stored Procedure was tested on the OS shell / command-prompt, with JDK 6 + JDBC Thin Driver (ojdbc6.jar), the issue still reproduced.

On applying JDBC <patch 20692348> to JDBC Thin Driver (ojdbc6.jar), the issue did not reproduce in the standalone java program running on OS shell / command-prompt.




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

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