run{ ############################################################################### # RMAN Script: new_bkp.rcv # # Demonstrates Oracle 9iR2 RMAN command directives to: # - Back up whole database using default configurations # - Back up selected archived redo logs # - Delete archived redo logs that have been backed up more than twice # ############################################################################### # Back up all critical tablespaces using Incremental Level 0 - Cumulative. BACKUP INCREMENTAL LEVEL 0 CUMULATIVE ( DATABASE ); # Back up all archived redo logs that have not yet been backed up # at least twice to the same device BACKUP ARCHIVELOG ALL NOT BACKED UP 2 TIMES; # Delete all archived redo logs that have already been backed up at least twice # to the same device DELETE ARCHIVELOG ALL BACKED UP 2 TIMES TO DEVICE TYPE DISK; }