rman建立catalog過程及問題處理

regonly1發表於2013-01-05
 
背景說明:
rman環境下建立catalog庫。
出現問題:
在目標機上註冊到catalog庫時,出現如下錯誤資訊:

RMAN> register database;
PL/SQL package RMAN.DBMS_RCVCAT version 10.02.00.00 in RCVCAT database is not current
PL/SQL package RMAN.DBMS_RCVMAN version 10.02.00.00 in RCVCAT database is not current
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of register command at 01/05/2013 15:50:52
RMAN-06004: ORACLE error from recovery catalog database: ORA-06550: ? 1 ?, ? 2273 ?:
PLS-00302: ???? 'GETRANGEALBACKUP' ??
ORA-06550: ? 1 ?, ? 2238 ?:
PL/SQL: Statement ignored
ORA-06550: ? 1 ?, ? 2453 ?:
PLS-00302: ???? 'RESTORECMD_T' ??
ORA-06550: ? 1 ?, ? 2424 ?:
PL/SQL: Statement ignored
 
問題分析:
期初以為是我把之前的catalog庫刪除掉了,導致後續登出時需要的相關資訊沒有而導致報錯。
於是尋求這方面的幫助。
但是搜尋baidu令我很失望,搜尋相應的關鍵字無法返回我想要的結果。於是我將同樣的關鍵字用google來搜尋。
結果出來了我想要的資訊,不是我崇洋媚外,國外的技術真的要比我們先進太多了。
原來很簡單,問題的關鍵不在於下面的提示上,而在於上面的提示:
PL/SQL package RMAN.DBMS_RCVCAT version 10.02.00.00 in RCVCAT database is not current
PL/SQL package RMAN.DBMS_RCVMAN version 10.02.00.00 in RCVCAT database is not current
原來是因為兩邊包版本不同的原因,導致在執行命令時報錯了。解決的辦法很簡單,只要對catalog庫升級即可:
[oracle@vmlinux ~]$ rman target / catalog
Recovery Manager: Release 10.2.0.4.0 - Production on Sat Jan 5 15:59:47 2013
Copyright (c) 1982, 2007, Oracle.  All rights reserved.
connected to target database: ORA10G (DBID=3976420220, not open)
connected to recovery catalog database
PL/SQL package RMAN.DBMS_RCVCAT version 10.02.00.00 in RCVCAT database is not current
PL/SQL package RMAN.DBMS_RCVMAN version 10.02.00.00 in RCVCAT database is not current
RMAN> upgrade catalog;
recovery catalog owner is RMAN
enter UPGRADE CATALOG command again to confirm catalog upgrade

對第一次執行的升級命令系統要做一次confirm,再執行一次後,方才有效(可從升級資訊中看到版本的變化情況):
RMAN> upgrade catalog;
recovery catalog upgraded to version 10.02.00.04
DBMS_RCVMAN package upgraded to version 10.02.00.00
DBMS_RCVCAT package upgraded to version 10.02.00.00
 
再次註冊catalog,成功:
RMAN> register database;
database registered in recovery catalog
starting full resync of recovery catalog
full resync complete
 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12932950/viewspace-752152/,如需轉載,請註明出處,否則將追究法律責任。

相關文章