My Oracle Support Banner

Compiling Object In One Schema Invalidates Object In Another (Doc ID 415983.1)

Last updated on JULY 03, 2023

Applies to:

PL/SQL - Version to [Release 9.2 to 12.2]
Information in this document applies to any platform.


Compiling a procedure in one schema invalidates a procedure in another schema under the following scenario:

Both schemas have a database link that is named the same but points to different remote databases that contain a remote object named the same.

Due to package invalidation,  errors like ORA-6508, ORA-4063 or ORA-4065 can occur at run time.

ORA-04063: package body "owner.package" has errors
ORA-06508: PL/SQL: could not find program unit being called: "owner.package"
ORA-4065:  not executed, altered or dropped %s


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.