Distributed Query on DBA_PROPAGATION in a PL/SQL fails with ORA-04052

(Doc ID 1316173.1)

Last updated on SEPTEMBER 05, 2015

Applies to:

Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.


Source DB : and Destination DB - Works

Source DB : and Destination DB - FAILS

Source DB : and Destination DB - FAILS

l_status varchar2(100);


SELECT status into l_status
FROM dba_propagation@STRM112Q a where rownum < 2;

dbms_output.put_line('propagation: ' || l_status);



ERROR at line 1:
ORA-04052: error occurred when looking up remote object
ORA-00604: error occurred at recursive SQL level 1
ORA-06552: PL/SQL: Compilation unit analysis terminated
ORA-06553: PLS-201: identifier 'UNDEFINED' must be declared
ORA-02063: preceding 2 lines from STRM112Q

The same sql works.

SQL> select * from GV$SCHEDULER_RUNNING_JOBS@strm112p;

no rows selected


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