手工將備份資訊新增到RMAN倉庫

perfychi發表於2013-12-19

from:http://flywitstar.blog.163.com/blog/static/185908125201283102425470/

如何手工將備份資訊新增到RMAN倉庫(使用恢復目錄資料庫)  

2012-09-03 10:56:29|  分類: oracle管理 備份 |  標籤:catalog  start  with  oracle  rman   |字號 

可以使用catalog及其關聯的關鍵字,將以下的備份檔案型別新增到恢復目錄中:

1.資料檔案副本 datafilecopyright

2.備份資訊段  backuppiece

3.控制檔案副本 controlfilecopy

4.歸檔重做日誌檔案 archivelog

還可以使用start with將多個備份檔案記錄到目錄中。

注:在start with子句中指定的檔名或者檔案路徑只是一個字首,不允許使用萬用字元。

例子:orcl資料庫在/u01/oradata/archivelog中有一個附加的歸檔日誌目標,這些歸檔日誌檔案的建立時間早於在恢復目錄中註冊的資料庫的時間。

1.檢視目錄中的檔案

ls -l /u01/oradata/archivelog

2.連線到rman,然後使用catalog start with命令將這些歸檔重做日誌檔案新增到恢復目錄中

rman target / catalog

rman> catalog start with '/u02/oradata/archivelog';

 

如果資料庫有閃回恢復區,可以使用下列命令重新記錄閃回恢復區中的所有備份內容。

rman>catalog recovery area noprompt;

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

相關文章