ARCHIVE_DELETEION_POLICY

Hi ,
Iam taking RMAN backup on SUNDAY and WEDNESDAY night Full backup as per my project policy . so i have the bewlo script to take backup to TAPE(netbackup veritas)
1. i want to delete all the archive logs after backed up to TAPE.?
2. Also is it possible to delete old backup from tape before taking NEW backup so that i can free some space from TAPE for NEW ONE.?
RUN {
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
ALLOCATE CHANNEL ch01 TYPE 'SBT_TAPE';
send 'NB_ORA_POLICY=${NB_POLICY_NAME}' ;
BACKUP
    $BACKUP_TYPE
    SKIP INACCESSIBLE
    TAG hot_db_bk_level0
    FILESPERSET 5
# recommended format
FORMAT 'bk_%s_%p_%t'
DATABASE;
sql 'alter system archive log current';
RELEASE CHANNEL ch00;
RELEASE CHANNEL ch01;
# backup all archive logs
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
ALLOCATE CHANNEL ch01 TYPE 'SBT_TAPE';
BACKUP
   filesperset 20
   FORMAT 'al_%s_%p_%t'
ARCHIVELOG ALL DELETE INPUT;
RELEASE CHANNEL ch00;
RELEASE CHANNEL ch01;
Thanks ,

Hi,
> 1. i want to delete all the archive logs after backed up to TAPE.?
And what is the question here? You are already using the RMAN clause "ARCHIVELOG ALL DELETE INPUT".
> 2. Also is it possible to delete old backup from tape before taking NEW backup so that i can free some space from TAPE for NEW ONE.?
Yes, if you would use a RMAN policy driven third party software like IBM Tivoli Data Protection for Databases. NetBackup is based on the NetBackup catalog driven retention policies and so you don't need to think about it - your NetBackup admin has to care about it. You only have to crosscheck the RMAN backups (and delete the expired ones) to keep the RMAN catalog up-to-date. By the way it makes *NO* sense to delete the old backup BEFORE taking a new backup.
> But one of my senior got the below script from net
Then your senior is no senior, if he/she needs to download that basic stuff from the net.
> and wat it will do exactly, becos  i need to explain the script before implement.
Are you serious?
Regards
Stefan

Similar Messages

Maybe you are looking for

  • How do I point my RDS 2012 R2 server to pick up the RDS licences from a dedicated RDS Licence server

    I have configured a dedicated server 2012 R2 box to be the RDS licence server for the Domain. When I use the Review configuration option, I get 2 green tick circles which indicate to me that all is well. However, when I built a separate RDS Server 20

  • BOMBOS interface "warning" message after changes saved in the BOM.

    Hello, We our client is facing an issue, regarding BOM change / Modification in CS02. After any modifications saved in the BOM (transaction CS02), in SLG1 transaction system gives u201Cwarning messageu201D as given below. 1.     Entry already exists

  • Attachment name in mail sent through Bursting

    Hi Gurus, We have a requirement to Burst the output of a program and store the file in UNIX as well as mail. But the file name in UNIX is different from the one that has to appear in e-mail attachment. I am only able to set the file name same for UNI

  • OWB HS DATES DUAL -1

    oK, I was able to get the below view to pull back records based on today's date from an HS service. But where do I put the -1 to change the dual date from today's to yesterday?? select "order_number", "date_created" from SYS.NICHECOM_TRANS_CREDITS_VW

  • Why does keyboard work only after restart

    This is an irratic problem. I have pen/pad not mouse but same thing methinks, can open files etc but when it comes to filling in anything it will not allow, sometimes even after restart it works butthenafter abreak I find it will not allow typing aga