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

Last updated on JULY 05, 2017

Applies to:

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

Symptoms

After upgrading the database from 10.2.0.5 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

Changes

 Upgrade from 10.2 to 11g.

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