run{
allocate channel d1 type disk maxopenfiles 1; //分配一个磁盘通道
setlimit channel d1 readrate=50 kbytes=500000; //设置通道的I/O限制
backup //backup方式进行rman备份
format = 'i:\shsf_db_%U.bus' //格式化存储路径
filesperset = 1 //控制备份集的尺寸
database include current controlfile; //备份的内容
sql 'alter system archive log current'; //将系统归档
change archivelog all crosscheck; //检查RMAN 的目录以及物理文件
backup archivelog until time 'sysdate -3' //备份归档日志
format = 'i:\shsf_arch_del_%U.bus' //格式化存储路径
filesperset = 10 //控制备份集的尺寸
delete input; //删除输入
backup archivelog all //备份归档日志
filesperset = 10
format = 'i:\shsf_arch_%U.bus';
release channel d1; //释放通道
}
阅读(1558) | 评论(0) | 转发(0) |