ORA-04065 ORA-06508 ORA-06512 ON PROGRAM UNITS THAT ARE VALID (Doc ID 1067179.1)

Last updated on DECEMBER 06, 2016

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 11.1 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 09-Sep-2016***


Numerous trace files are generated with the following errors:
ORA-04065: not executed, altered or dropped
ORA-04065: not executed, altered or dropped stored procedure
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at line 1

The object referenced in the errors is valid.
Flushing the shared pool temporarily alleviates the problem.


Database was migrated from to  The objects were constantly being updated.


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