rman connect target sys/Password;
run
{
allocate channel d1 device type disk;
allocate channel d2 device type disk;
sql 'alter system archive log current';
backup as compressed backupset database tag ORCL format 'D:\rman_backup\orcl_%T_%d_%s_%p.bkp';
backup format 'D:\rman_backup\orcl_arch_%T_%d_%s_%p.bkp' archivelog all;
backup format 'D:\rman_backup\CF_orcl_%T_%d.bkp' tag CF current controlfile;
release channel d1;
release channel d2;
}
exit;
{
allocate channel d1 device type disk;
allocate channel d2 device type disk;
sql 'alter system archive log current';
backup as compressed backupset database tag ORCL format 'D:\rman_backup\orcl_%T_%d_%s_%p.bkp';
backup format 'D:\rman_backup\orcl_arch_%T_%d_%s_%p.bkp' archivelog all;
backup format 'D:\rman_backup\CF_orcl_%T_%d.bkp' tag CF current controlfile;
release channel d1;
release channel d2;
}
exit;