oracle adg PLS-00201: identifier 'DBMS_RCVCAT.GETDBID' must be declared

在使用adg搭建第二个从库的时候,遇到了下面的错误提示:
DBGSQL: TARGET> begin :fhdbi := dbms_rcvcat.getDbid; end;
DBGSQL: sqlcode = 6550
DBGSQL: B :fhdbi = 32765
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 06/22/2017 11:13:38
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
ORA-06550: line 1, column 17:
PLS-00201: identifier ‘DBMS_RCVCAT.GETDBID’ must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

使用了catalog,但是在连接的时候没有指定catalog,需要用下面的连接方式:
rman target sys/test@dbadb_pri auxiliary sys/test@dbadb_std2 nocatalog

你可能感兴趣的:(dataguard)