创建一个.bat文件
start_rman.bat
D:\app\Administrator\product\11.2.0\dbhome_1\BIN\rman target / cmdfile D:\123\rman_db.txt log D:\123\archive.log append
创建一个备份脚本
rman_db.txt
run{
allocate channel ch1 type disk;
allocate channel ch2 type
disk;
backup full format 'D:\123\db_full_%d_%T_%s_%p_%u' database include
current controlfile;
backup archivelog all format
'D:\123\archive_%d_%s_%p_%u';
report obsolete;
delete obsolete device type
disk;
release channel ch1;
release channel ch2;
}
在windows创建一个任务计划程序就OK了。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25517773/viewspace-730302/ ,如需转载,请注明出处,否则将追究法律责任。