Monday, April 25, 2016

level_1_backup

crosscheck archivelog all;
run {
        #
        # Level 1 database backup to tape
        #
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
allocate channel c4 type disk;
#
sql 'alter system archive log current';
        backup
        incremental level 1 cumulative
        tag level_1_bkup_database
        format '/orabackup/ORA_%d_LVL1_%U_%t.rmn'
        database;
#
        backup
        tag level_1_bkup_database
        format '/orabackup/ORA_%d_LVL1_ARC_%U_%t.rmn'
        archivelog all not backed up 1 times;
#
release channel c1;
release channel c2;
release channel c3;
release channel c4;
}
allocate channel for maintenance type disk;
crosscheck backup;
delete noprompt obsolete;
release channel;
resync catalog;
exit

No comments:

Post a Comment