rman備份學習

zlingyi發表於2015-03-10
rman備份老是沒備份成功,檢視log日誌發現控制檔案中的歸檔日誌已經刪除(RMAN-06059錯誤),新增一下
change archivelog all crosscheck; 即可OK。
rman target / msglog=/home/oracle/rmanbackup/rmanbackup.log < run{
allocate channel c1 device type disk;
allocate channel c2 device type disk;
backup as compressed backupset database format '/u01/kuozhan1/rmanbackup/%T_%U.dbf';
sql 'alter system archive log current';
backup archivelog all format '/u01/kuozhan1/rmanbackup/%T_%U.arc' delete all input;
release channel c1;
release channel c2;
}
EOF

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

相關文章