-- Effective RMAN script
-- ©2005 Edward Stoever 

CONFIGURE CONTROLFILE AUTOBACKUP ON;                                        
CONFIGURE MAXSETSIZE TO 4G;                              
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 2 DAYS;  
RUN
{                                                                    
  ALLOCATE CHANNEL disk1 DEVICE TYPE DISK FORMAT 'DRAx:[ORACLE.RMAN_BACKUPS]%U';                      
  BACKUP INCREMENTAL LEVEL = 0 DATABASE;
} 
DELETE NOPROMPT BACKUP OF DATABASE COMPLETED BEFORE 'SYSDATE-(3/2)';
EXIT;