My Oracle Support Banner

oracle.jdbc.driver.OraclePreparedStatement is not public in oracle.jdbc.driver after upgrade from 10.2 rdbms (Doc ID 1578119.1)

Last updated on OCTOBER 05, 2022

Applies to:

Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.


After upgrading the database from to 11g, errors may occur similar to the following when trying to recompile invalid java classes


oracle.jdbc.driver.OraclePreparedStatement is not public in oracle.jdbc.driver; cannot be accessed from outside package
((OraclePreparedStatement)upd).setExecuteBatch (100);
1 error
ORA-29535: source requires recompilation


Inspection of the java source reveals that it imports oracle.jdbc.driver


 Upgrade from 10.2 to 11g.


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.