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 to [Release 11.2]
Information in this document applies to any platform.
Any objects that deals with Database Links


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
ORA-04052: error occurred when looking up remote object
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:
ORA-06512: at line 2



Upgraded to Oracle 11g


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