RMAN定時全備份資料庫之簡單例項

hky87發表於2009-12-17
列舉一個簡單的使用RMAN進行資料庫定時全備份的例子。
1.編寫ramn指令碼及bat指令碼
全備份backup_full.rcv內容:
connect target sys/manager123@orcl;
run{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
backup full tag 'dbfull' format 'D:\oracle\product\10.2.0\oradata\OMF\ORCL\ba
ckup\full%u_%s_%p' database include current controlfile;
sql 'alter system archive log current';
 backup filesperset 3 format 'D:\oracle\product\10.2.0\oradata\OMF\ORCL\backup
\arch%u_%s_%p' archivelog all delete input;
release channel c1;
release channel c2;
release channel c3;
 }
cmd命令backup_full.bat
rman cmdfile='D:\backup_full.rcv'

2.在控制皮膚中使用嚮導新建工作計劃,設定執行時間.

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

相關文章