oracle 9I 資料庫異機恢復( Catalog 庫 )

ysjxjf發表於2008-02-14
1 , 透過 rman 進行 open resetlogs 後,catalogs 中的資料庫資訊更新為新伺服器中恢復出來的資料庫資訊。這時透過 rman 所做的備份,都是針對新恢復出的資料庫。
RMAN> alter database open resetlogs;
資料庫已開啟
在恢復目錄中註冊的資料庫的新實體化
正在啟動全部恢復目錄的 resync
完成全部 resync
2 , 透過 sqlplus 進行 open resetlogs 時,因不做 resync ,rman catalog 中的資訊還是原資料庫的,這時透過 rman 所做的備份,還是針對原資料庫的。
參考:
rman unregister database :
1 , % rman TARGET SYS/change_on_install@prod1 CATALOG rman/rman@rcat

connected to target database: RDBMS (DBID=1237603294)
connected to recovery catalog database

2 , LIST BACKUP SUMMARY;
3 , Run DELETE statements to delete all existing physical backups
DELETE BACKUP DEVICE TYPE sbt;
DELETE BACKUP DEVICE TYPE DISK;
4 , % sqlplus rman/rman@rcat
SQL> SELECT DB_KEY, DB_ID FROM DB WHERE DB_ID = 1237603294;
5 , While still connected to the recovery catalog, enter the following, 
where DB_KEY and DB_ID are the corresponding columns from the row you got from the query in step 4: 
SQL> EXECUTE dbms_rcvcat.unregisterdatabase(db_key, db_id)

[@more@]

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

相關文章