有一次,在做异机迁移时:本地没有足够的空间存放rman备份文件,最后想到了分批次备份数据文件的方案,脚本如下:
run{
allocate channel ch1 type disk ;
allocate channel ch2 type disk ;
allocate channel ch3 type disk ;
allocate channel ch4 type disk ;
allocate channel ch5 type disk ;
allocate channel ch5 type disk ;
allocate channel ch6 type disk ;
allocate channel ch7 type disk ;
allocate channel ch8 type disk ;
backup datafile 149,66,78,77,76,70,69,68,4,21,22,23,83,82,84,17,34,35,36,18,63,64,65,80,81,38,28,27,20,19,11,10,9,172,150,151,152,26,12,25,128,129,130,127,112,126,113,171,8,119,118,117,100,99,79,125,173,153,29,3,1,7,13,14,15,24,40,41,43,44,45,46,47,48,49,50,51,52,53,71,87,97,98,101,102,103,104,105,106,120,121,122,123,124,133,134,135 format '/bossdata/rmanbackup/bossdatafile149-135-20140416%d%U.dbf.%T';
release channel ch1;
release channel ch2;
release channel ch3;
release channel ch4;
release channel ch5;
release channel ch6;
release channel ch7;
release channel ch8;
}
exit;
阅读(987) | 评论(0) | 转发(0) |