重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1462|回复: 0
打印 上一主题 下一主题

[安装] DG DUPLICATE报错:PLS-00201: identifier 'DBMS_RCVCAT.GETDBID' must be declared

[复制链接]
跳转到指定楼层
楼主
发表于 2022-6-14 11:22:05 | 只看该作者 回帖奖励 |正序浏览 |阅读模式


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


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

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

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-25 23:37 , Processed in 0.091878 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表