rman備份腳本,在windows下

set rq=%date:~-10%
rman target 'sys/syspassword@target as sysdba' catalog rman/rmanpassword@catalog @'D:/lxj/backup.sql'  log d:/lxj/lxj%rq%.log 

backup.sql文件的內容如下:
run { 
allocate channel Channel1 type disk format 'D:/backup/b_%u_%p_%c';
backup  
   ( database  include current controlfile );

backup  ( archivelog all  not backed up 8 times );

}
allocate channel for maintenance device type disk;
delete archivelog until time 'sysdate - 10' backed up 8 times to disk;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章