[重庆思庄每日技术分享]-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

这个问题,一般是由于执行这个复制操作的客户端版本和目标端版本不一致导致

换到目标端机器去执行连接并执行复制,即可解决问题。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值