應對 "RMAN-06023: no backup or copy of datafile 1 found to restore"錯誤

itpremier發表於2011-08-26

----錯誤資訊:

執行restore database 或 duplicate target database to vmdb2;

報如下錯誤:

1、$ rman target /
<wbr> <wbr> RMAN> restore database;
RMAN-03002: failure of restore command at 06/11/2005 01:19:01
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
----經過深入檢討,發現問題並非沒有備份,而是恢復目標路徑不存在。
----解決辦法:
1, 建立目標路徑。 mkdir -p /opt/app/oracle/oradata/VMDB2/
2,建立路徑對映,(注意:需對所有恢復的資料檔案作路徑對映檢查)
db_file_name_convert='/VMDB1','/VMDB2','/opt/app/oracle/oradata/VMDB1/','/data/VMDB2'
log_file_name_convert='/VMDB1','/VMDB2','/opt/app/oracle/oradata/VMDB1/','/data/VMDB2'
[@more@]

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

相關文章