catalog 直连oracle,Oracle版本升级后引出的catalog连接问题

Oracle版本升级后引出的catalog连接问题  arronax_zyj

环境说明:catalog数据库版本为10.2.0.1

qzpoais数据库版本为10.2.0.3

以下操作是在qzpoais对应服务器上完成

问题描述:

1.连接catalog恢复目录

$ rman catalog rman/rman@rmanlog

Recovery Manager: Release 10.2.0.3.0 - Production on Mon Nov 5 16:15:35 2007

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

connected to recovery catalog database

PL/SQL package RMAN.DBMS_RCVCAT version 10.02.00.00 in RCVCAT database is not cu

rrent

PL/SQL package RMAN.DBMS_RCVMAN version 10.02.00.00 in RCVCAT database is not cu

rrent

2.连接目标数据库

RMAN> connect target /

connected to target database: QZPOAIS (DBID=1075906752)

3.用show all查看RMAN参数设置时报错

RMAN> show all;

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of show command at 11/05/2007 16:15:45

RMAN-06004: ORACLE error from recovery catalog database:

ORA-06550: line 1, column 2273:

PLS-00302: component 'GETRANGEALBACKUP' must be declared

ORA-06550: line 1, column 2238:

PL/SQL: Statement ignored

ORA-06550: line 1, column 2453:

PLS-00302: component 'RESTORECMD_T' must be declared

ORA-06550: line 1, column 2424:

PL/SQL: Statement ignored

解决方法:

1.首先用upgrade catalog更新catalog

RMAN> upgrade catalog;

recovery catalog owner is RMAN

enter UPGRADE CATALOG command again to confirm catalog upgrade

2.再次执行upgrade catalog

RMAN> upgrade catalog

recovery catalog upgraded to version 10.02.00.03

DBMS_RCVMAN package upgraded to version 10.02.00.00

DBMS_RCVCAT package upgraded to version 10.02.00.00

3.更新完成后用show all还是报错

RMAN> show all;

RMAN configuration parameters are:

CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default

CONFIGURE BACKUP OPTIMIZATION OFF; # default

CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default

CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default

CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default

CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

CONFIGURE MAXSETSIZE TO UNLIMITED; # default

CONFIGURE ENCRYPTION FOR DATABASE OFF; # default

CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of show command at 11/05/2007 16:20:35

RMAN-06004: ORACLE error from recovery catalog database: RMAN-20021: database no

t set

RMAN-06031: could not translate database keyword

RMAN> exit

4.断开后重新连接,即可恢复正常,因为是对新会话生效

$ rman

Recovery Manager: Release 10.2.0.3.0 - Production on Mon Nov 5 16:21:59 2007

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

RMAN> connect target /

connected to target database: QZPOAIS (DBID=1075906752)

RMAN> connect catalog rman/rman@rmanlog

connected to recovery catalog database

RMAN> show all;

starting full resync of recovery catalog

full resync complete

RMAN configuration parameters are:

CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default

CONFIGURE BACKUP OPTIMIZATION OFF; # default

CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default

CONFIGURE CONTROLFILE AUTOBACKUP ON;

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default

CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default

CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

CONFIGURE MAXSETSIZE TO UNLIMITED; # default

CONFIGURE ENCRYPTION FOR DATABASE OFF; # default

CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default

CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default

CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/10.2.0/db_1/dbs/

snapcf_qzpoais1.f'; # default

RMAN> exit

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值