标题: DG DUPLICATE报错:PLS-00201: identifier 'DBMS_RCVCAT.GETDBID' must be declared [打印本页] 作者: 郑全 时间: 2022-6-14 11:22 标题: DG DUPLICATE报错:PLS-00201: identifier 'DBMS_RCVCAT.GETDBID' must be declared
RMAN> duplicate target database for standby from active database nofilenamecheck;
Starting Duplicate Db at 13-JUN-22
using channel ORA_AUX_DISK_1
contents of Memory Script:
{
backup as copy reuse
targetfile '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwxxx' auxiliary format
'/u01/app/oracle/product/11.2.0/db_1/dbs/orapwxxdb' ;
}
executing Memory Script
Starting backup at 13-JUN-22
using channel ORA_DISK_1
Finished backup at 13-JUN-22
contents of Memory Script:
{
backup as copy current controlfile for standby auxiliary format '/data/xxdb/control01.ctl';
restore clone controlfile to '/data/xxdb/control02.ctl' from
'/data/xxdb/control01.ctl';
}
executing Memory Script
Starting backup at 13-JUN-22
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
copying standby control file
output file name=/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_xx.f tag=TAG20220613T203545 RECID=2 STAMP=1107290146
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
Finished backup at 13-JUN-22
Starting restore at 13-JUN-22
using channel ORA_AUX_DISK_1
DBGSQL: TARGET> begin :fhdbi := dbms_rcvcat.getDbid; end;
DBGSQL: sqlcode = 6550
DBGSQL: B :fhdbi = 32766
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 06/13/2022 20:35:48
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