rman_backup_D.sh
---------------------------------
###### RMAN BACKUP BEGIN ######
dt=`date +%Y%m%d`
rman catalog rman/rman target cmdfile /home/oracle/scripts/rman.sql log /home/oracle/log/rman_${dt}.log
###### RMAN BACKUP END #######
rman.sql
---------------------------------
run
{ allocate channel node1 type disk;
set limit channel node1 kbytes=2000000;
sql 'alter system archive log current';
backup format '/dbback/databack/full%n%s%p%t' ( database include current controlfile);
backup format '/dbback/databack/arch%n%s%p' (archivelog like '/dbback/log/arch%' delete input channel node1);
release channel node1;
}
阅读(1209) | 评论(0) | 转发(0) |