Object Recompilation fails with ORA-4045 ORA-4052 ORA-1045 ORA-6508 (Doc ID 1293027.1)

Last updated on FEBRUARY 06, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.2 to 11.2.0.3 [Release 11.2]
Information in this document applies to any platform.
Any objects that deals with Database Links


Symptoms

OracleUser has been granted CREATE and EXECUTE on object. And that object includes a reference to a remote DB.

Error Message example;

ERROR at line 1:
ORA-04045: errors during recompilation/revalidation of
OES.RETAILER_DOC_PREFS_PKG
ORA-04052: error occurred when looking up remote object
AWI.EMAIL_UTIL@YDEV.AWIWEB.COM
ORA-00604: error occurred at recursive SQL level 2
ORA-01045: user AWIWEB lacks CREATE SESSION privilege; logon denied
ORA-02063: preceding line from YDEV
ORA-06508: PL/SQL: could not find program unit being called:
"OES.RETAILER_DOC_PREFS_PKG"
ORA-06512: at line 2

 

Changes

Upgraded to Oracle 11g 11.2.0.2.

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