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 9.2.0.8 to 12.2.0.1 [Release 9.2 to 12.2]
Information in this document applies to any platform.

Symptoms

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

Cause

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
Symptoms
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.