SQLException After PL/SQL Package Changed (Doc ID 1662195.1)

Last updated on APRIL 20, 2014

Applies to:

Oracle WebLogic Server - Version 10.3.6 and later
Information in this document applies to any platform.

Goal

Customer observed SQLException in their application log after changes has been done on PL/SQL packages in Oracle database.

java.sql.SQLException: ORA-4068: existing state of packages has been discarded
ORA-4061: existing state of package "PACKAGENAME.PROCEDURENAME" has been invalidated
ORA-4065: not executed, altered or dropped package  "PACKAGENAME.PROCEDURENAME"
ORA-6508: PL/SQL: could not find program unit being called:  "PACKAGENAME.PROCEDURENAME"

They have to reset affected data source on Admin Console. Is this expected behavior? Is there any better solution for this?

Solution

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