需要定义两个脚本,一个是自动批处理脚本,另一个是具体rman运行脚本。自动批处理脚本用来执行rman程序,并调用后面定义的rman脚本。举例如下:
1、rmanbackup.bat
rman target username/passwd@tnsname catalog username/passwd@catatnsname cmdfile='c:\xxxx\rman.txt'
2、rman.txt
run{
allocate channel t1 type disk format 'c:\xxx\%U';
backup database;
release channel t1 ;
}
exit
3、将rmanbackup.bat加到任务作业或者备份软件来调用。
<<前一篇 一个好用的C语言CRC32校验码程序源 | 在一台Windows电脑上安装多个Mysq 后一篇>> |