run
{
allocate channel t1 type disk;
allocate channel t2 type disk;
allocate channel t3 type disk;
allocate channel t4 type disk;
#configure maxsetsize to 20 G;
configure backup optimization on;
crosscheck backup;
crosscheck copy;
delete noprompt expired copy;
delete noprompt expired backup;
delete noprompt obsolete;
backup as compressed backupset database format ‘/orabak/rman/dbbak_%d_%s_%p_%T’;
sql ‘alter system archive log current’;
backup as compressed backupset format ‘/orabak/rman/archbak_%d_%s_%p_%T’ archivelog all delete all input;
release channel t1;
release channel t2;
release channel t3;
release channel t4;
}