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

Last updated on JULY 05, 2017

Applies to:

PL/SQL - Version 9.2.0.8 to 11.2.0.3 [Release 9.2 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 26-Jul-2012***

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 runtime,

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

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