日志文件直接拷贝就可以,不需要另外的处理.
如果用rman,则给你参考脚本
run
{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
backup filesperset 3 archivelog all delete input;
release channel c1;
release channel c2;
release channel c3;
}
-----------------------
仅作参考,关键是要自己理解
如果用rman,则给你参考脚本
run
{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
backup filesperset 3 archivelog all delete input;
release channel c1;
release channel c2;
release channel c3;
}
-----------------------
仅作参考,关键是要自己理解
1、penitent(只取一瓢)的脚本还真不错,不过你需要启用rman的,这需要一些步骤,这个脚本不是直接就可以用的。
2、其实在windows下,用c写一段程序把归档位置的日志文件定期移到你的备份目录,然后用windows的自动任务执行来执行这段程序。
没有必要写c程序吧。
用rman备份的好处很多,如果有条件,建议大家采用rman来备份。