My Oracle Support Banner

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

Last updated on AUGUST 04, 2018

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 11.1 to 11.2]
Information in this document applies to any platform.


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.


To view full details, 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 a vibrant support community of peers and Oracle experts.