rman_backup_del.rcv
--------------------------
configure retention policy to recovery window of 7 days;
configure backup optimization on;
configure device type disk parallelism 4;
configure compression algorithm 'MEDIUM';
configure channel device type disk format 'D:\RMANBACKUP\bakset\%d_%T_%U';
run {
allocate channel c1 device type disk;
allocate channel c2 device type disk;
allocate channel c3 device type disk;
allocate channel c4 device type disk;
sql 'alter system archive log current';
sql 'alter system archive log current';
backup as compressed backupset
incremental level 0
database
tag 'DB_FULL_%date%'
format 'D:\RMANBACKUP\bakset\db0_%d_%T_%U'
include current controlfile
plus archivelog
delete input;
backup as compressed backupset
spfile
tag 'SPFILE_%date%'
format 'D:\RMANBACKUP\bakset\spfile_%d_%T_%U';