ASM and CONFIGURE RETENTION POLICY TO REDUNDANCY 1

I have a 11gR2 database in Linux. ALL the database files (including ARCHIVELOGs) are in ASM. I'm configuing and using RMAN in order to backup the DB & ArchiveLogs.
I have "CONFIGURE RETENTION POLICY TO REDUNDANCY 1" configured.
Please help me understand its meaning and function within ASM.
I thought that based on that configuation that my OBSOLETE ARCHIVELOG files within ASM would be automatically be deleted?
So once I completed my second set of backups, when I executed, "DELETE NOPROMPT OBSOLETE" & "DELETE NOPROMPT EXPIRED ARCHIVELOG ALL", that the first second of ARCHIVELOG backups would be deleted?
...thanks in advance

ASM has nothing to do with retention or deletion. You can find the definition of redundancy in the docs at http://tahiti.oracle.com

Similar Messages

  • CONFIGURE RETENTION POLICY TO REDUNDANCY 0

    Our database is 11g R2, below is our RMAN script
    Presently our retention policy is 1, so 1 backup is retained along with the current backup.
    I Just want to have 1 backup, i.e RMAN should take the backup and delete the old bacup.
    Will it work if i change the retention policy to 0 ?
    RUN
      ALLOCATE CHANNEL ch1 DEVICE TYPE DISK;
      ALLOCATE CHANNEL ch2 DEVICE TYPE DISK;
      ALLOCATE CHANNEL ch3 DEVICE TYPE DISK;
      DELETE NOPROMPT OBSOLETE;
      BACKUP DATABASE INCLUDE CURRENT CONTROLFILE format 'G:\Oracle\flash_recovery_area\BACKUPSET\tmp\rman_backup\df_%d_%s_%p_%T';
      SQL "ALTER SYSTEM ARCHIVE LOG CURRENT";
      BACKUP ARCHIVELOG ALL DELETE INPUT format 'G:\Oracle\flash_recovery_area\BACKUPSET\tmp\rman_backup\df_%d_%s_%p_%T';
    RMAN> show all
    2> ;
    using target database control file instead of recovery catalog
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
    CONFIGURE BACKUP OPTIMIZATION OFF; # defaultEdited by: user10243788 on Apr 24, 2012 1:14 AM

    user10243788 wrote:
    Our database is 11g R2, below is our RMAN script
    Presently our retention policy is 1, so 1 backup is retained along with the current backup.
    I Just want to have 1 backup, i.e RMAN should take the backup and delete the old bacup.
    Will it work if i change the retention policy to 0 ?You cannot set the retention policy to redundancy 0 because redundancy count must be greater than zero.
    >
    RUN
    ALLOCATE CHANNEL ch1 DEVICE TYPE DISK;
    ALLOCATE CHANNEL ch2 DEVICE TYPE DISK;
    ALLOCATE CHANNEL ch3 DEVICE TYPE DISK;
    DELETE NOPROMPT OBSOLETE;
    BACKUP DATABASE INCLUDE CURRENT CONTROLFILE format 'G:\Oracle\flash_recovery_area\BACKUPSET\tmp\rman_backup\df_%d_%s_%p_%T';
    SQL "ALTER SYSTEM ARCHIVE LOG CURRENT";
    BACKUP ARCHIVELOG ALL DELETE INPUT format 'G:\Oracle\flash_recovery_area\BACKUPSET\tmp\rman_backup\df_%d_%s_%p_%T';
    }Just switch the order of operation:
    use
    BACKUP DATABASE INCLUDE CURRENT CONTROLFILE format 'G:\Oracle\flash_recovery_area\BACKUPSET\tmp\rman_backup\df_%d_%s_%p_%T';
    DELETE NOPROMPT OBSOLETE;
    instead of
    DELETE NOPROMPT OBSOLETE;
    BACKUP DATABASE INCLUDE CURRENT CONTROLFILE format 'G:\Oracle\flash_recovery_area\BACKUPSET\tmp\rman_backup\df_%d_%s_%p_%T';
    You can also exclude the operation SQL "ALTER SYSTEM ARCHIVE LOG CURRENT" because BACKUP ARCHIVELOG ALL implicitly switch logfile before archiving.

  • CONFIGURE RETENTION POLICY TO REDUNDANCY 1;

    Hi all,
    we would like to create one a week a full backup level 0 and every day a level 1 cumulative RMAN backup.
    We would like to configure RMAN that he only holds one cumulative and the full backup.
    Does we can use the parameter RETENTION POLICY 1 or RMAN also delete the full backup after a day ?.
    Otherwise we need to configure it to 7 days and and delete the other level 1 backups by script.
    Thanks
    *T                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    >
    We would like to configure RMAN that he only holds one cumulative and the full backup.
    Thanks
    *TYou can't do this. RMAN holds all cumulative level 1 backups that is relationship to Level 0 backup. But as soon as you make level 0 backup at next week old level 0 and related cumulative backups will be obsolete.
    Unfortunately you should delete manual the previosly cumulative backups.
    You don't necessary RETENTION POLICY to 7. Leave it to 1. One level 0 and the last cumulative lvl 1 backup is enough for recovering.

  • Configure Retention Policy?

    Dear all,
    What is the difference between "configure retention policy to recovery window of 14 days" and "configure retention policy to redundancy 2"?
    Best Regards,
    Amy

    We are backing up our database full backup once a week (on Monday) and 2 times of daily backup.
    Is "CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS" good enough?
    I am very confused about retention policy.
    here is our parameters in RMAN
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backup/db/ba
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/10.1.0/db_1/db
    Please advice.

  • Not set configure retention policy to recovery window of 7 days

    HI all,
    if parameter "" configure retention policy to recovery window of 7 days "" is not set
    then i am taking weekly and inreamental cumulative backup any effect of backup
    i think in this case delete obsolete is not working.
    currently parameter set is CONFIGURE RETENTION POLICY TO REDUNDANCY 1;

    HI all,
    if parameter "" configure retention policy to recovery window of 7 days "" is not set
    then i am taking weekly and inreamental cumulative backup any effect of backup
    i think in this case delete obsolete is not working.
    currently parameter set is CONFIGURE RETENTION POLICY TO REDUNDANCY 1;

  • RETENTION POLICY TO REDUNDANCY value

    Hi,
    in 10g R2 on Win 2003,
    we do an incremental rman backup every night excepte sunday and every sunday a full rman backup. We want to be able to restore from last 3 weeks (I mean from 21 days before, if today is 25 of feb, to be able to restore/recover from 4 of Feb). Then what should be the value of RETENTION POLICY TO REDUNDANCY of RMAN catalog ?
    Many thanks.

    thank you . How about this :
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/setup005.htm#sthref261
    3.5.5.1 Configuring a Recovery Window-Based Retention Policy
    The RECOVERY WINDOW parameter of the CONFIGURE command specifies the number of days between the current time and the earliest point of recoverability. RMAN does not consider any full or level 0 incremental backup as obsolete if it falls within the recovery window. Additionally, RMAN retains all archived logs and level 1 incremental backups that are needed to recover to a random point within the window.
    Run the CONFIGURE RETENTION POLICY command at the RMAN prompt. This example ensures that you can recover the database to any point within the last week:
    RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    RMAN does not automatically delete backups rendered obsolete by the recovery window. Instead, RMAN shows them as OBSOLETE in the REPORT OBSOLETE output and in the OBSOLETE column of V$BACKUP_FILES. RMAN deletes obsolete files if you run the DELETE OBSOLETE command.
    3.5.5.2 Configuring a Redundancy-Based Retention Policy
    The REDUNDANCY parameter of the CONFIGURE RETENTION POLICY command specifies how many backups of each datafile and control file that RMAN should keep. In other words, if the number of backups for a specific datafile or control file exceeds the REDUNDANCY setting, then RMAN considers the extra backups as obsolete. The default retention policy is REDUNDANCY=1.
    As you produce more backups, RMAN keeps track of which ones to retain and which are obsolete. RMAN retains all archived logs and incremental backups that are needed to recover the nonobsolete backups.
    Assume that you make a backup of datafile 7 on Monday, Tuesday, Wednesday, and Thursday. You now have four backups of the datafile. If REDUNDANCY is 2, then the Monday and Tuesday backups are obsolete. If you make another backup on Friday, then the Wednesday backup becomes obsolete.
    Run the CONFIGURE RETENTION POLICY command at the RMAN prompt, as in the following example:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 3;
    3.5.5.3 Showing the Current Retention Policy
    RMAN> SHOW RETENTION POLICY;
    see V$RMAN_CONFIGURATION

  • CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 0 DAYS;

    Hi Guys
    Can you please put some light on the 0 days. what is the meaning on 0 days and how does this work.
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 0 DAYS; If I take full backup every night how many backup will it contain and how will it obsolete the backup.
    RMan 9i R2
    Soalris 5.9
    I understand the concept if recover window is 1 or more days but confuse with 0 days.
    Thank you in advance.

    RECOVERY WINDOW OF 0 DAYS is effective like REDUNDANCY 1.
    RMAN> configure retention policy to recovery window of 0 days;
    old RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
    new RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 0 DAYS;
    new RMAN configuration parameters are successfully stored
    RMAN> backup datafile 4;
    Starting backup at 09-SEP-07
    using target database controlfile instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=15 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00004 name=E:\ORACLE\ORADATA\WIN9I\DRSYS01.DBF
    channel ORA_DISK_1: starting piece 1 at 09-SEP-07
    channel ORA_DISK_1: finished piece 1 at 09-SEP-07
    piece handle=E:\ORACLE\ORA92\DATABASE\0BIRHB2F_1_1 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
    Finished backup at 09-SEP-07
    RMAN> report obsolete;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 0 days
    no obsolete backups found
    RMAN> backup datafile 4;
    Starting backup at 09-SEP-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00004 name=E:\ORACLE\ORADATA\WIN9I\DRSYS01.DBF
    channel ORA_DISK_1: starting piece 1 at 09-SEP-07
    channel ORA_DISK_1: finished piece 1 at 09-SEP-07
    piece handle=E:\ORACLE\ORA92\DATABASE\0CIRHB4Q_1_1 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
    Finished backup at 09-SEP-07
    RMAN> report obsolete;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 0 days
    Report of obsolete backups and copies
    Type                 Key    Completion Time    Filename/Handle
    Backup Set           10     09-SEP-07
      Backup Piece       10     09-SEP-07          E:\ORACLE\ORA92\DATABASE\0BIRHB2F_1_1
    RMAN> delete backup;
    using channel ORA_DISK_1
    List of Backup Pieces
    BP Key  BS Key  Pc# Cp# Status      Device Type Piece Name
    10      10      1   1   AVAILABLE   DISK        E:\ORACLE\ORA92\DATABASE\0BIRHB2F_1_1
    11      11      1   1   AVAILABLE   DISK        E:\ORACLE\ORA92\DATABASE\0CIRHB4Q_1_1
    Do you really want to delete the above objects (enter YES or NO)? yes
    deleted backup piece
    backup piece handle=E:\ORACLE\ORA92\DATABASE\0BIRHB2F_1_1 recid=10 stamp=632859727
    deleted backup piece
    backup piece handle=E:\ORACLE\ORA92\DATABASE\0CIRHB4Q_1_1 recid=11 stamp=632859802
    Deleted 2 objects
    RMAN> configure retention policy to redundancy 1;
    old RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 0 DAYS;
    new RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
    new RMAN configuration parameters are successfully stored
    RMAN> backup datafile 4;
    Starting backup at 09-SEP-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00004 name=E:\ORACLE\ORADATA\WIN9I\DRSYS01.DBF
    channel ORA_DISK_1: starting piece 1 at 09-SEP-07
    channel ORA_DISK_1: finished piece 1 at 09-SEP-07
    piece handle=E:\ORACLE\ORA92\DATABASE\0DIRHB90_1_1 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
    Finished backup at 09-SEP-07
    RMAN> report obsolete;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 1
    no obsolete backups found
    RMAN> backup datafile 4;
    Starting backup at 09-SEP-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00004 name=E:\ORACLE\ORADATA\WIN9I\DRSYS01.DBF
    channel ORA_DISK_1: starting piece 1 at 09-SEP-07
    channel ORA_DISK_1: finished piece 1 at 09-SEP-07
    piece handle=E:\ORACLE\ORA92\DATABASE\0EIRHB9H_1_1 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
    Finished backup at 09-SEP-07
    RMAN> report obsolete;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 1
    Report of obsolete backups and copies
    Type                 Key    Completion Time    Filename/Handle
    Backup Set           12     09-SEP-07
      Backup Piece       12     09-SEP-07          E:\ORACLE\ORA92\DATABASE\0DIRHB90_1_1
    RMAN>

  • RMAN Backups with retention policy to redundancy 1 doesn't work fine.

    Hi experts,
    I have a Oracle database with the following system backups:
    Monday:       ArchiveLog Backup
    Tuesday:      Full Backup
    Wednesday:  ArchiveLog Backup
    Thursday:     ArchiveLog Backup
    Friday :         Full Backup
    Saturday:      ArchiveLog Backup
    Sunday:       ArchiveLog Backup
    ArchiveLog Backup = backup tag  'ARCHIVELOG_BACKUP' device type disk archivelog all not backed up delete all input;
    Full Backup = backup tag 'FULL_BACKUP'  device type disk database skip readonly  plus archivelog tag 'FULL_BACKUP_ARCHIVELOGS';
                         crosscheck backup;
                         crosscheck copy;
                         delete noprompt obsolete;    
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 8;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    What this system has done until last two weeks? For example:
    Tuesday :     Full Backup
    Wednesday:  ArchiveLog Backup
    Thursday:     ArchiveLog Backup
    Friday :         Full Backup - > After that, Full backup from Tuesday and ArchiveLog backups from Wed, and Thurs, are deleted. (Thanks to Retention policy) .
    What this system do now?
    Tuesday :     Full Backup
    Wednesday:  ArchiveLog Backup
    Thursday:     ArchiveLog Backup
    Friday :         Full Backup - > After that, Full backup from Tuesday are deleted but not ArchiveLog backups from Wed, and Thurs.
    When I execute a crosscheck on RMAN return that all are AVAILABLE.
    My question is: What is right? The system backups before or after?
    Thanks for your help!

    You are confused about the purpose of crosscheck.
    There are two concepts for which you must grasp the distinction.
    - Expired
    - Obsolete
    Expired
    When an archive log is written, or rman makes a backup, a record of that archivelog or backupset is written to the repository in the control file.
    Crosscheck simply checks the existence of the archivelogs or backupsets that are recorded in the repository.  If something went missing (say, if you used an OS command to delete archivelogs), the record of the missing file is marked as 'expired'.  If you follow the crosscheck command with a 'delete expired' command, the repository records that have been marked 'expired' are deleted from the repository, so rman has no more memory of those files.  Note that 'expired' has nothing to do with retention policy.  Also note that if you do not actually issue the 'delete expired' command, the expired records will remain in the repository. 
    Obsolete
    The retention policy deals with when a backupset is obsolete, meaning it is no longer needed to protect the retention period.  Backupset are not marked as obsolete.  They are evaluated for obsolescence at the time of a command that needs it -- "report obsolete" or "delete obsolete", or when FRA maintenance requires an implied 'delete obsolete'.

  • RMAN on Oracle 8i and 10g Retention Policy

    I have several Oracle 8i and Oracle 10g database instances on a Windows 2003 server. We use RMAN backups on these servers. We run a batch job daily to database backups. We create RMAN level 0 on Sunday, Thursday level 1, Tuesday, Thursday, Friday, and Saturday level 2 backups.
    I would like to keep the backup files for 7 days. Oracle 9i has the CONFIGURE RETENTION POLICY TO RECOVERY WINDOWS OF 7 DAYS parameter.
    What parameter can I use on the Oracle 8i database to keep only 7 days of backup files on disk?
    Should I add the CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS parameter to RMAN parameter list below or to the Oracle parameter list?
    Oracle 9i parameter
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    RMAN parameter list:
    set logdir=\\ta\WIN_ORABACKUP\DATA\W004\PRD6\LOGS
    set logdirbak=\\ta\WIN_ORABACKUP\LOGS
    set backupdir=\\ta\WIN_ORABACKUP\DATA\W004\PRD6\HOTBACKUP
    set scriptdir=\\ngacelerra\WIN_ORABACKUP\SCRIPTS
    set logname=%Year%%Month%%Day%%Hour%%Minute%%Second%_PRD6_rman.log
    set scriptname=PRD6_LVL%1%.rmn
    mkdir %logdir%
    mkdir %backupdir%
    rman target sys/password@PRD6 nocatalog log %logdir%\%logname% @%scriptdir%\%scriptname%
    copy %logdir%\%logname% %logdirbak%\%logname%

    Hi,
    there is no CONFIGURE command in RMAN in ORACLE 8i.
    It was a 9i new feature!
    Also, in Oracle 10g there are no incremental level 2 backups available any more.
    We only have level 0 and 1 in 10g!
    If you want to read about the new backup strategy of ORACLE 10g pls refer to my weblog:
    http://luhartma.blogspot.com/2006/02/why-restore-before-recover-new-oracle.html
    Hope this helps for the first.
    Regards,
    Lutz

  • RMAN-05021 configuring retention policy on standby

    Hello all.
    Running Oracle 11.2.0.2 on Linux (x64); single-node instance.
    We've the following setup:
    bvlive (PRIMARY)
    bvstby2 (STANDBY)
    We currently have a retention policy of 21 days, and backup space on the standby is starting to be an issue.
    Initially, I thought I could reconfigure this on the standby - but RMAN won't allow this:
    STANDBY:
    RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 14 days;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of configure command at 10/15/2012 10:09:50
    RMAN-05021: this configuration cannot be changed for a BACKUP or STANDBY control fileWhich makes sense when I think about it. I saw this thread retention policy is not configure but get different results:
    PRIMARY:
    RMAN> configure retention policy to recovery window of 14 days;
    old RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 21 DAYS;
    new RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 14 DAYS;
    new RMAN configuration parameters are successfully stored
    RMAN> show all;
    RMAN configuration parameters for database with db_unique_name BVLIVE are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 14 DAYS;STANDBY:
    RMAN> SHOW ALL;
    RMAN configuration parameters for database with db_unique_name BVSTBY2 are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 21 DAYS;Which also makes sense; so I'm not convinced the original poster solved his problem. I've seen a few threads about this which involve:
    1. shutting down standby
    2. configuring retention policy on primary
    3. taking a backup controlfile from primary
    4. copying it across to the standby
    5. restarting standby using the backed-up controlfile
    But then this seems to be for RAC, which we're not using.
    It occurred to me that I could use the KEEP UNTIL option when taking backups, but ran into; ORA-19811: cannot have files in DB_RECOVERY_FILE_DEST with keep attributes (i.e. I can't use KEEP and store backups in the FRA).
    Can anyone please advise on the best way to get the retention period down on the standby, ideally without having to rebuild the standby from scratch?
    Thanks,
    Ray
    Edited by: ray_h on 15-Oct-2012 03:33

    Hello all.
    @ P. Forstmann: thanks for confirming.
    @ S Rao: Yep - this is the link I had in mind. Tried it out and it worked. One thing to note is that I didn't have to rename datafiles - presumably creating the standby controlfile negates the need for this in 11g (indeed, the alert log shows these two lines when you mount):
    Set as converted control file due to db_unique_name mismatch
    Changing di2dbun from bvlive to bvstby2which put my mind at ease when the rename commands failed, saying the files didn't exist
    @ mseberg: Typically, our MOS license ran out just as a useful link shows up.
    Thanks everyone.
    Ray

  • Purpose of Retention Policy Recovery Window and Redundancy

    Hi,
    Good Evening,
    I have some queries regarding the RMAN Retention Policy Recovery Window and Redundancy.
    1. Any condition is there to set the Retention Policy Recovery Window and Redundancy and control_file_record_keep_time?What is the relationship between these 3 parameters?
    2. Explain the scenario if i set the control_file_record_keep_time=4 Redundancy=3 and Recovery Window=7?
    3. If i set the Redundancy=3 and Recovery Window=7 means my backup place only have 3 copies of backup based on the redundancy then what is the purpose of Recovery Window=7 please give some example.
    4. If i change the values for Recovery Window=3 and Redundancy=7 what will happened, how many days backup will be available in my FRA location?Explain with one scenario?
    Thanks in advance.
    Vijay.

    Hi,
    Take a look of the above doc contents:
    Configuring the Backup Retention Policy
    As explained in "Backup Retention Policies", the backup retention policy specifies which backups must be retained to meet your data recovery requirements. This policy can be based on a recovery window or redundancy. Use the CONFIGURE RETENTION POLICY command to specify the retention policy.
    so  you have option to choose either  recovery windows or redundancy based you can set the configuration like
    read in the Doc What it said for both:
    Recovery Window-Based Retention Policy ==>RMAN does not consider any full or level 0 incremental backup as obsolete if it falls within the recovery window.  Additionally, RMAN retains all archived logs and level 1 incremental backups that are needed to recover to a random point within the window.
    Redundancy-Based Retention Policy==>The REDUNDANCY parameter of the CONFIGURE RETENTION POLICY command specifies how many full or level 0 backups of each datafile and control file that RMAN should keep. If the number of full or level 0 backups for a specific datafile or control file exceeds the REDUNDANCY setting, then RMAN considers the extra backups as obsolete. The default retention policy is REDUNDANCY 1.
    RMAN> show RETENTION POLICY;
    using target database control file instead of recovery catalog
    RMAN configuration parameters for database with db_unique_name DDTEST are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    RMAN> CONFIGURE RETENTION POLICY TO REDUNDANCY 3;
    old RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    new RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 3;
    new RMAN configuration parameters are successfully stored
    RMAN> show RETENTION POLICY;
    RMAN configuration parameters for database with db_unique_name DDTEST are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 3;
    RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    old RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 3;
    new RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    new RMAN configuration parameters are successfully stored
    RMAN> show RETENTION POLICY;
    RMAN configuration parameters for database with db_unique_name DDTEST are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    CONTROL_FILE_RECORD_KEEP_TIME:This parameter applies only to records in the control file that are circularly reusable (such as archive log records and various backup records) ref Doc:CONTROL_FILE_RECORD_KEEP_TIME
    1. Any condition is there to set the Retention Policy Recovery Window and Redundancy and control_file_record_keep_time?What is the relationship between these 3 parameters?
    2. Explain the scenario if i set the control_file_record_keep_time=4 Redundancy=3 and Recovery Window=7?
    3. If i set the Redundancy=3 and Recovery Window=7 means my backup place only have 3 copies of backup based on the redundancy then what is the purpose of Recovery Window=7 please give some example.
    4. If i change the values for Recovery Window=3 and Redundancy=7 what will happened, how many days backup will be available in my FRA location?Explain with one scenario?
    so i believe you can get the Answer from Your Question from Above details.
    HTH

  • When Retention policy is set as REDUNDANCY

    DB version: 10.2.0.4
    Just trying to understand the concept of Redundancy.
    If i set my Retention Policy set to REDUNDANCY like
    CONFIGURE RETENTION POLICY TO REDUNDANCY 4;and all the backup files are stored in one location like '/u04/rmanbkp/' then multiple copies (4 of them) of the same datafile with different names (unique names generated using U% setting) will be created here. Right?
    The next day all these datafile copies will be obsolete. Right?
    Recovery Window retention policy is more widely used than Redundancy . Right?

    on the 5th day,the first (out of 4 copies) copy of backup becomes obseleteprovided that you do exactly one backup every day. If you do 6 backups a day -- e.g. every 4 hours -- you'd be obsoleting a backup less than 24 hours old !
    So, if you are DBA new to a site, ask first "how many backups we do, what is the RETENTION Policy" ?
    Hemant K Chitale

  • Retention Policy and report/delete obsolete

    The database is Oracle 9i on Solaris 8 Platform.
    The backup of datafiles and archivelog files use tape and run every night.
    The backups should be held for two weeks therefore using RMAN retention policy with REPORT / DELETE OBSOLETE will be the apropiate method. Unfortunatelly somehow none of the two methods of retention policy RECOVERY WINDOW or REDUNDANCY don't seem to work. The big question is WHY?
    I configured the retention policy using:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 7
    Then ALLOCATE CHANNEL FOR MAINTENANCE DEVICE TYPE sbt;
    I ran CROSSCHECK BACKUP with a correct output and then REPORT OBSOLETE. The report displays all existing backups - (SYSDATE-2)!
    If using RECOVERY WINDOW OF 7 DAYS then the obsolete report displays the list of backups - (SYSDATE-1).
    Somehow whatever number I use (7/9/5)in any of the retention policy the result is identical with the one above!

    Really I do not know if there is a limitation regarding that aspect if you take the backups in tapes directly. I have implanted and I have seen it function well when backups are store directly in disk.
    Find out here if that is a limitation.
    Recovery Manager Quick Reference Contents / Search / / PDF
    Recovery Manager Reference Contents / Search / Index / PDF
    Recovery Manager User's Guide Contents / Search / Index / PDF
    http://otn.oracle.com/pls/db92/db92.docindex?remark=homepage
    Joel P�rez

  • Retention policy configuration

    Hi, I need some clarification regarding the two configuration parameter of retention policy, so please help me regarding this , I am giving my view about both the configuration
    1 . CONFIGURE RETENTION POLICY TO REDUNDANCY 3;
    Explanation => This configuration ensure that there can be the maximum of three backup of copies of a data file and control file, we we take the backup for our database/ datafile/ control file for the 4th times, then our previous backup which was taken for the first time will be not be in used, it become obsolete...
    suppose on the above configuration , the first backup will be obsolete after taking the database/datafile/controlfile
    backup for fourth time...when we take the backup for 5th time, the process will goes as previous , the second backup that was taken earlier will become obsolete..
    2.CONFIGURE RETENTION POLICY TO RECOVER WINDOW OF 5 DAYS;
    Explanation = > This configuration deals basically with the time based..here the main concept is that the backup will be there of period basis. The recovery window is a period of time that begins with the current time and extend backward in time to the period of recoverability is the earliest time.
    Here, the backup that was taken early will remain there unless and until the specified days does not met..
    on the above configuration the backup will remain and can be in use that was taken from last five days
    suppose. today is 08/11/2010, and the back up is taken then the backup can be recovered form 04th of nov..
    Please show me the right path regarding my view and clear up my concept if I am wrong....
    Thanks in advance

    Hi,
    Welcome to forums.. !!
    1 . CONFIGURE RETENTION POLICY TO REDUNDANCY 3;
    Explanation => This configuration ensure that there can be the maximum of three backup of copies of a data file and control file, we we take the backup for our database/ datafile/ control file for the 4th times, then our previous backup which was taken for the first time will be not be in used, it become obsolete...
    suppose on the above configuration , the first backup will be obsolete after taking the database/datafile/controlfile
    backup for fourth time...when we take the backup for 5th time, the process will goes as previous , the second backup that was taken earlier will become obsolete..
    2.CONFIGURE RETENTION POLICY TO RECOVER WINDOW OF 5 DAYS;
    Explanation = > This configuration deals basically with the time based..here the main concept is that the backup will be there of period basis. The recovery window is a period of time that begins with the current time and extend backward in time to the period of recoverability is the earliest time.
    Here, the backup that was taken early will remain there unless and until the specified days does not met..
    on the above configuration the backup will remain and can be in use that was taken from last five days
    suppose. today is 08/11/2010, and the back up is taken then the backup can be recovered form 04th of nov..Your understanding is correct. some times if the backups will not become obsolete, under the recovery window, when it needs for recovery.
    - Pavan Kumar N

  • RMAN RETENTION POLICY configuration.

    Currently I am doing RMAN backup once a day and save the copy to tapes through TSM. If I want to keep 15 copies of the db (NOT 15 same copies. It will be one copy from every day backup, so each copy will be different). How should I configure the RETENTION POLICY? Shall I do
    RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 15 DAYS;
    Or shall I do
    RMAN> CONFIGURE RETENTION POLICY TO REDUNDANCY 3;
    Also do I need to configure anything on the TSM side?
    Thanks.

    To keep the last 15 full backups use redundancy 15.
    You don't need to do anything on TSM if:
    - you use RMAN to backup directly to tape device and
    - you use RMAN DELETE OBSOLETE statements to purge old backups.
    See http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmconfb.htm#BRADV8400

Maybe you are looking for

  • No video on espn

    No video on espn

  • Workflows -ABAP

    Hello ABAPers, I am looking for some technical information relating to workflows in DP Approval route.It is looking interesting as I am Functional consultant and looking for inputs from Technical team.I thought of sharing this interesting this error

  • Epson 740 Inkjet won't print from Epson Driver!

    Hi All, I've just recently upgraded to Tiger, from Jaguar, and all was well...until today! My colour printer is an Epson Stylus 740 and it was printing perfectly yesterday but now the all jobs are "Stopped"! If I click on "Start Jobs" the progress ba

  • Has anyone else been disappointed in their finished iPhoto book?

    I experienced several problems with poor quality results in my iphoto book received this January. I created it on the latest Macbook Air, using iPhoto "11. The cover was shoddily finished, the pages were wrinkled as if the book were shipped while sti

  • HT201272 how can I download previous music purchases?

    I downloaded them previously and then "hid" them in my music folder. Now even when I go onto iStores it says I have purchased them but i cant see where to download them.. getting relaly really frustrated... I have uninstalled iTunes, I have tried eve