run{ ############################################################################### # RMAN Script: original_bkp.rcv # # Uses the old-style Oracle 8i7 RMAN commands to back up the entire database. # ############################################################################### # Back up database control file to trace SQL "ALTER DATABASE BACKUP CONTROLFILE TO TRACE"; # Configure channels using ALLOCATE and SETLIMIT directives ALLOCATE CHANNEL d1 TYPE DISK FORMAT 'k:\rmanbkup\df0_%d_%s_%t'; SETLIMIT CHANNEL d1 KBYTES 256000; # Back up all critical tablespaces using Incremental Level 0 - Cumulative. # Note that the current control file is also archived. BACKUP INCREMENTAL LEVEL 0 CUMULATIVE (DATABASE FILESPERSET 5 INCLUDE CURRENT CONTROLFILE ); # Back up the current control file separately so that the newly-created # backups can be restored independent of the target database's control file. BACKUP CURRENT CONTROLFILE TAG='curcfbkp'; # Back up all available archived redo logs BACKUP ARCHIVELOG ALL; RELEASE CHANNEL d1; }