Retention Policy problems

Hello,
i am trying to set up the automated archival of Exchange 2013.
So that e-mails, which are older than e.g. 1 year are get moved to the archive.
What i did:
1.  Create a archive database
2.  Create a archive mailbox
3.  Create a retention tag
4.  Create a retention policy
4.1 Including a Default tag and a personal tag
5. Linked it to a user: Set-mailbox “administrator” -RetentionPolicy "Movetoarchivpolicy"
6. Checked the User: Get-Mailbox “administrator” | Select RetentionPolicy
7. Started the ManagedFolderAssistant: Start-ManagedFolderAssistant -Identity “administrator”
8. But all Mails stayed in the Mailbox
9. I tryed to manually assign a retention tag to a Mail, but I dont have the button. (OWA and Outlook 2013 ProPlus).
Have anyone an idea, why i don't have the "assign policy" button?
And why all Mails stay in the Mailbox?
Thanks,

Hi,
Event 9018 means that Mailbox Assistant has processed the mailbox successfully. But retention policy still didn't work.
I recommend you create a new test mailbox and apply retention policy to this new mailbox to check if it works.
And please increase diagnostic logging level for MRM, and then monitor application log to check if there is any related events.
Best regards,
Belinda
Belinda Ma
TechNet Community Support

Similar Messages

  • Retention policy vs. Archivelog deletion policy

    Environment:
    Oracle EE 11.2.0.3 on Solaris 10.5
    Which policy takes precedence?
    My Retention Policy is set to 'Recovery window of 8 days' and my Archivelog deletion policy is set to 'backed up 2 times to disk'.
    My DAILY full backup happens at 03:00am and uses the following commands:
    backup incremental level 0 cumulative database tag 'full_daily' plus archivelog tag 'full_daily';
    DELETE NOPROMPT OBSOLETE;I also have an archivelog backup that runs every 4 hours at 02:00, 06:00, 10:00, 14:00, 18:00 and 22:00 and looks like this:
    backup archivelog all tag '&1';
    delete noprompt ARCHIVELOG UNTIL TIME 'SYSDATE-8';With the archivelog backup running every 4 hours the logs are getting backed up to disk the required 2 times very quickly. Much sooner than 8 days! :-)
    I have a problem where the archivelog backup that runs immediately AFTER the full database backup fails due to not being able to find some older archivelog files.
    In looking at V$ARCHIVED_LOG the files were dated (COMPLETION_DATE) just outside the 8 day retention window but they had a status of 'A' (Archived) instead of the 'D' (Deleted) I was expecting. When I ran a 'Crosscheck archivelog all' it changed the statuses to 'D' and the next archivelog backup ran successfully.
    What am I missing?
    Should I change the archivelog deletion policy to something else? If so, what and why (just trying to understand!) ?
    I am not using an FRA and have controlfile autobackup turned on.
    Please let me know if you need more information. I have been scouring the docs and the 11g RMAN Oracle Press book but haven't found the trick yet!
    Thanks for any assistance!
    -gary

    Hemant K Chitale wrote:
    The Retention Policy applies to Backups. It does not apply to ArchiveLogs.
    The ArchiveLog Deletion Policy applies to ArchiveLogs. It does not apply to Backups.
    Since you have 2 copies of ArchiveLogs in the backups and these are retained for 8 days, a "delete noprompt ARCHIVELOG UNTIL TIME 'SYSDATE-8';" is overkill. Why retain 8 days of archivelogs on disk if there are 2 copies already backed up ?
    Does your full backup that begins at 3am complete before 6am ? If it goes beyond 6am, it will be deleting some files after 6am but the "backup archivelog all" at 6am will expect some archivelogs (8 days old) to be present.
    Hemant K Chitale
    RMAN> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/oracle/oracle/.Autobackup_CTRL/%F.ctl_bkp';    
    Starting backup at 22-MAY-12
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00001 name=/oracle/oracle/oradata/orcl/system01.dbf
    output file name=/oracle/oracle/flash_recovery_area/ORCL/datafile/o1_mf_system_7vpg432v_.dbf tag=TAG20120522T122602 RECID=1 STAMP=783951999
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:46
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00002 name=/oracle/oracle/oradata/orcl/sysaux01.dbf
    output file name=/oracle/oracle/flash_recovery_area/ORCL/datafile/o1_mf_sysaux_7vpg5l1n_.dbf tag=TAG20120522T122602 RECID=2 STAMP=783952038
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00003 name=/oracle/oracle/oradata/orcl/undotbs01.dbf
    output file name=/oracle/oracle/flash_recovery_area/ORCL/datafile/o1_mf_undotbs1_7vpg6ms0_.dbf tag=TAG20120522T122602 RECID=3 STAMP=783952046
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00004 name=/oracle/oracle/oradata/orcl/users01.dbf
    output file name=/oracle/oracle/flash_recovery_area/ORCL/datafile/o1_mf_users_7vpg6ptn_.dbf tag=TAG20120522T122602 RECID=4 STAMP=783952047
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
    Finished backup at 22-MAY-12
    Starting Control File and SPFILE Autobackup at 22-MAY-12
    piece handle=/oracle/oracle/product/11.2.0/dbhome_1/dbs/controlfile_c-1309370544-20120522-02 comment=NONE
    Finished Control File and SPFILE Autobackup at 22-MAY-12
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    RMAN-08132: WARNING: cannot update recovery area reclaimable file list
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F';
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/oracle/oracle/.Autobackup_CTRL/%F.ctl_bkp';
    new RMAN configuration parameters are successfully stored
    RMAN> delete noprompt ARCHIVELOG UNTIL TIME 'SYSDATE-8';
    released channel: ORA_DISK_1
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=196 device type=DISK
    RMAN-08138: WARNING: archived log not deleted - must create more backups
    archived log file name=/oracle/oracle/flash_recovery_area/ORCL/archivelog/2012_04_28/o1_mf_1_2_7sq8tf5p_.arc thread=1 sequence=2
    RMAN-08138: WARNING: archived log not deleted - must create more backups
    archived log file name=/oracle/oracle/flash_recovery_area/ORCL/archivelog/2012_05_22/o1_mf_1_3_7vpdcjjm_.arc thread=1 sequence=3
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    RMAN-08132: WARNING: cannot update recovery area reclaimable file list
    RMAN> having problem with Archivelog backup.

  • How To Hide Retention Policy Tag View From OWA.

    Aslam

    Hi,
    I have exactly the opposite problem. In OWA 2013 (SP1) the assigned retention policy and the expiration date is not shown. We are in coexistance with Exchange 2010. OWA 2010, Outlook 2010/2013 are showing the assigned retention policy and the expiration
    date as shown in the first messsage of this thread. Setting "MustDisplayCommentEnabled" to true does not help. Any ideas how the information can be activated?
    Best,
    Manfred

  • Messaging Records Management: loss of functionality between Managed Folders and Retention Policy

    In Exchange 2007 and 2010 you can use Managed Folders with Managed Content Settings to act on messages based on when they were moved into the folder. E.g.,
    New-ManagedContentSettings -Name DeleteJunk -FolderName ManagedJunk -MessageClass * -RetentionEnabled $true -RetentionAction DeleteAndAllowRecovery -AgeLimitForRetention 30 -TriggerForRetention WhenMoved
    will delete items 30 days after they're moved into the Junk E-Mail folder designated by the Folder Name "Managed Junk".
    However, Exchange 2010 introduces Retention Policies as an alternative to Managed Folders, and Exchange 2013 drops Managed Folders entirely. With a Retention Policy, it's impossible to specify a TriggerForRetention. See http://technet.microsoft.com/en-us/library/dd335226%28v=exchg.141%29.aspx
    and note that New-RetentionPolicyTag lacks -TriggerForRetention as a parameter. If you Get-RetentionPolicyTag | fl you can still see a TriggerForRetention value, but it's "WhenDelivered" and can't be changed.
    Both http://technet.microsoft.com/en-us/library/bb430780%28v=exchg.141%29.aspx (Exchange 2010) and http://technet.microsoft.com/en-us/library/bb430780%28v=exchg.150%29.aspx (Exchange 2013) describe a rather convoluted method used to determine the age of
    a message for retention purposes, but I don't know whether to believe those pages. It seems apparent, though, that basing a message's age on WhenDelivered can easily produce undesired results.
    Consider a Retention Policy Tag placed on the Junk E-Mail folder which will perform DeleteAndAllowRecovery on items older than 30 days. A message arrives on 01/01/15 and is classified as Junk. It immediately starts aging based on the date 01/01/15. The user
    find the message, which was misclassified, and moves it to another folder. Since there's no way to set a TriggerForRetention based on WhenMoved, the message continues to age from 01/01/15. 90 days later, while the user is reviewing their mail, the user accidentally
    clicks the Junk button on the message. Because the message is more than 30 days old, it's deleted immediately.
    1) Am I correct? Or is there a way to use Retention Policies so that messages are acted on based on how long they've resided in their current folder?
    2) What do I have to do to get Microsoft to add the ability to change the TriggerForRetention on a Retention Policy Tag in Exchange 2013?
    Note, I'm not the first person to raise this issue. It's been discussed in a number of places including TechNet. Here are a few:
    http://social.technet.microsoft.com/Forums/exchange/en-US/82c01e6e-0184-4d25-b803-45a604ca0c68/retention-policy-tag-problem?forum=exchangesvrsecuremessaginglegacy
    http://www.shudnow.net/2010/04/08/exchange-2010-sp1-retention-policies/
    http://social.technet.microsoft.com/Forums/exchange/en-US/82c01e6e-0184-4d25-b803-45a604ca0c68/retention-policy-tag-problem

    By default there is no property on a message to identify a message is moved from one folder to another.Managed folder used to stamp a new property Moveddate on the message when the ContentSetting on the target folder was set to WhenMoved.
    WhenMoved functionality is not available with Retention Policy . You can raise your concern to make this functionality available by opening a ticket with support.

  • Retention policy for specific backupset

    Hi,
    Actually I am envolved in a Proof Of Concept for Exadata. My customer wants to set a specific rentention for one backupset. These are the steps followed and the problem:
    1. Perform a "backup as backupset" for database to disk.
    2. Perform a "backup backupset" to tape for the backup of step 1.
    3. Change the retention policy only for the backup of step 2 and set it to be kept until sysdate+x days.
    Does anyone know how can be this done?
    Best regards.

    You will need to create two different backup one to device type DISK with default retention and another backup to device type SBT_TAPE with specific retention.
    The SAME backup (backupset) cannot have two different retention (even if it's a copy). The copy of backupset belongs to a Backup which already has it own retention.
    see this example:
    RMAN> backup current controlfile ;
    Starting backup at 17-OCT-12
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=10 device type=DISK
    channel ORA_DISK_1: starting compressed full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    including current control file in backup set
    channel ORA_DISK_1: starting piece 1 at 17-OCT-12
    channel ORA_DISK_1: finished piece 1 at 17-OCT-12
    piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2012_10_17/o1_mf_ncnnf_TAG20121017T145951_87xwjrjn_.bkp tag=TAG20121017T145951 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:04
    Finished backup at 17-OCT-12
    RMAN> backup backupset from tag TAG20121017T145951 ;
    Starting backup at 17-OCT-12
    allocated channel: ORA_SBT_TAPE_1
    channel ORA_SBT_TAPE_1: SID=10 device type=SBT_TAPE
    channel ORA_SBT_TAPE_1: Data Protection for Oracle: version 5.5.1.0
    channel ORA_SBT_TAPE_1: input backup set: count=14735, stamp=796921191, piece=1
    channel ORA_SBT_TAPE_1: starting piece 1 at 17-OCT-12
    channel ORA_SBT_TAPE_1: backup piece /u01/app/oracle/flash_recovery_area/ORCL/backupset/2012_10_17/o1_mf_ncnnf_TAG20121017T145951_87xwjrjn_.bkp
    piece handle=BKP_CONTROL_ORCL_14735_1_20121017_2 comment=API Version 2.0,MMS Version 5.5.1.0
    channel ORA_SBT_TAPE_1: finished piece 1 at 17-OCT-12
    channel ORA_SBT_TAPE_1: backup piece complete, elapsed time: 00:00:04
    Finished backup at 17-OCT-12
    RMAN> list backup;
    BS Key  Type LV Size
    14667   Full    1.11M
      Control File Included: Ckp SCN: 142367578    Ckp time: 17-OCT-12
      Backup Set Copy #1 of backup set 14667
      Device Type Elapsed Time Completion Time Compressed Tag
      DISK        00:00:02     17-OCT-12       YES        TAG20121017T145951
        List of Backup Pieces for backup set 14667 Copy #1
        BP Key  Pc# Status      Piece Name
        14667   1   AVAILABLE   /u01/app/oracle/flash_recovery_area/ORCL/backupset/2012_10_17/o1_mf_ncnnf_TAG20121017T145951_87xwjrjn_.bkp
      Backup Set Copy #2 of backup set 14667
      Device Type Elapsed Time Completion Time Compressed Tag
      SBT_TAPE    00:00:02     17-OCT-12       YES        TAG20121017T145951
        List of Backup Pieces for backup set 14667 Copy #2
        BP Key  Pc# Status      Media                   Piece Name
        14668   1   AVAILABLE   44531                   BKP_CONTROL_ORCL_14735_1_20121017_2
    RMAN> change backuppiece 14668 keep forever logs;
    using channel ORA_DISK_1
    using channel ORA_SBT_TAPE_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of KEEP command at 10/17/2012 15:02:24
    RMAN-06528: CHANGE ... KEEP not supported for BACKUPPIECEIn example above the BACKUPSET 14667 have two BACKUPPIECE (14667,14668) if you change retention of BACKUPSET 14667 you will change retention of both BACKUPPIECE.
    I don't recommend do this ,but is a poor option:
    RMAN> delete backuppiece 14667;
    using channel ORA_DISK_1
    using channel ORA_SBT_TAPE_1
    List of Backup Pieces
    BP Key  BS Key  Pc# Cp# Status      Device Type Piece Name
    14667   14667   1   1   AVAILABLE   DISK        /u01/app/oracle/flash_recovery_area/ORCL/backupset/2012_10_17/o1_mf_ncnnf_TAG20121017T145951_87xwjrjn_.bkp
    Do you really want to delete the above objects (enter YES or NO)? yes
    deleted backup piece
    backup piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2012_10_17/o1_mf_ncnnf_TAG20121017T145951_87xwjrjn_.bkp RECID=14667 STAMP=796921192
    Deleted 1 objects
    RMAN> list backup;
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    14667   Full    1.11M      SBT_TAPE    00:00:02     17-OCT-12
            BP Key: 14668   Status: AVAILABLE  Compressed: YES  Tag: TAG20121017T145951
            Handle: BKP_CONTROL_ORCL_14735_1_20121017_2   Media: 44531
      Control File Included: Ckp SCN: 142367578    Ckp time: 17-OCT-12
    RMAN> change backupset 14667   keep forever;
    using channel ORA_DISK_1
    using channel ORA_SBT_TAPE_1
    keep attributes for the backup are changed
    backup will never be obsolete
    backup set key=14667   RECID=14667 STAMP=796921193
    RMAN > list backup;
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    14667    Full    1.11M      SBT_TAPE    00:00:02     17-OCT-12
            BP Key: 14667   Status: AVAILABLE  Compressed: YES  Tag: TAG20121017T145951
            Handle: BKP_CONTROL_ORCL_14735_1_20121017_2   Media: 44531
            Keep: BACKUP_LOGS        Until: FOREVER
      Control File Included: Ckp SCN: 142367578    Ckp time: 17-OCT-12Edited by: Levi Pereira on Oct 17, 2012 4:02 PM

  • Powershell script to apply retention policy by group

    I am working on a script to apply a specific retention policy to individuals who are members of a particular group, another for rooms, and yet another to everyone else.  Below is what I'm working with:
    I run into an error that states "Pipeline not executed because a pipeline is already executing..." and the retention policy doesn't get set.  can someone tell me where I've gone wrong here?  Or perhaps an easier solution?
    #Check entire domain
    Set-ADServerSettings -ViewEntireForest $true
    #Active Directory Group
    $Group = [ADSI]("LDAP://CN=EXCHANGE_DISABLE_PURGE,OU=EXCHANGE ACCOUNTS,DC=domain,dc=com")
    #Enum Group Members and set equal to array
    $Grouplist = $Group.member
    #do loop varaible setup
    $GroupLength=$Grouplist.count
    $GroupArrayLength=$GroupLength - 1
    $GroupCount = 0
    $Userlist= @(0..$GroupArrayLength)
    $UsersDN=@(0..$GroupArrayLength)
    #do loop to disable purge policy for all array members
    do {
     $Userlist[$GroupCount] = [ADSI]("LDAP://" + $Grouplist[$GroupCount])
     $UsersDN[$GroupCount] = $userlist[$GroupCount].distinguishedname
     $GroupLength=$GroupLength - 1
     $GroupCount++
    until ($GroupLength -eq 0)
    Get-mailbox -database db01 -resultsize Unlimited | foreach-object{
     if ([string[]]$UsersDN -contains $_.DistinguishedName){
      if ($_.RetentionPolicy -ne "NoPurge"){
       set-mailbox $_ -RetentionPolicy NoPurge
       write-host("Applied - No Purge Policy to "+$_.DisplayName) -ForeGroundColor Green
     elseif (($_.RecipientTypeDetails -eq "RoomMailBox") -or ($_.RecipientTypeDetails -eq "EquipmentMailbox")){
      if ($_.RetentionPolicy -ne "Default Resource/Equipment Policy"){
       set-mailbox -identity $_ -RetentionPolicy "Default Resource/Equipment Policy"
       write-host("Applied - Default Resource/Equipment Policy to "+$_.DisplayName) -ForeGroundColor Green
     else{
      if ($_.RetentionPolicy -ne "180DayDefault"){
       set-mailbox -identity $_ -RetentionPolicy "180DayDefault"
       write-host("Applied - Default 180 Day Purge Policy to "+$_.DisplayName) -ForeGroundColor Green

    Hi,
    In order to resolve this issue more efficiently, I recommend you post to the Script forum which is staffed by more experts specializing in this kind of problems. You might get a better answer there. Thanks for understanding.
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?category=scripting
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

  • Retention policy not removing items after 14 days?

    Hello and good day all.
    I hope some one can help with this. I have an Exchange 2013 server and i need to set a Retention policy to delete items from select mailboxes after 14 days. These boxes get automated log emails that are only needed if a problem is reported that day. Otherwise
    they are trash.  no users check these boxes and so they tend to fill up.
    The following was all done in the web interface.
    In "Retention tags" screen I have a policy called "14Days" and it is set "Delete and allow Recovery" then period is "In Days" 14
    This is then in the "Retention Policy" Screen added to a policy called "2Weeks"
    I then added this in "Mailbox Features" screen to the select boxes.
    All this done 26 days ago. I figured i need to wait the 14 days for the cycle to come around.  However these boxes still have items from September in them.  I used a command line to verify the policy is on the mail boxes.
    Some items are in the in-boxes and some are in deleted items.
    Steven Davis of Parabit Systems

    Hello and good morning.  The mystery continues.
    in event log is have items 9017 saying the work cycle started and there are 14 boxes on this data base. Then i have an event 9018 saying 14 were processed. 
    Does it matter that I have 4 Mailbox databases? the ones to have this policy are all in a single data base.
    There are no other policy's created or defined other then the ones that came with exchange that we don't use.
    I created a new policy with a 15 day retention and applied it to a box.
    Next i cleared the entire event log and then ran "Start-ManagedFolderAssistant" to force it on
    the mailbox.
    so then just to check i ran "Get-RetentionPolicyTag
    -Identity "15 day retention " | fl"
    And it looks okay.
    RunspaceId                            : b9b594a6-9e08-4ddd-aa68-5998e687388c
    MessageClassDisplayName               : All Mailbox Content
    MessageClass                          : *
    Description                           : Managed Content Settings
    RetentionEnabled                      : True
    RetentionAction                       : DeleteAndAllowRecovery
    AgeLimitForRetention                  : 15.00:00:00
    MoveToDestinationFolder               : 
    TriggerForRetention                   : WhenDelivered
    MessageFormatForJournaling            : UseTnef
    JournalingEnabled                     : False
    AddressForJournaling                  : 
    LabelForJournaling                    : 
    Type                                  : All
    IsDefaultAutoGroupPolicyTag           : False
    IsDefaultModeratedRecipientsPolicyTag : False
    SystemTag                             : False
    LocalizedRetentionPolicyTagName       : {}
    Comment                               : for field techs retention and a test to see why 14 day is not working
    RetentionId                           : a61c470b-367b-4cb9-b955-b02ff9c5a1c3
    LocalizedComment                      : {}
    MustDisplayCommentEnabled             : False
    LegacyManagedFolder                   : 
    AdminDisplayName                      : 
    ExchangeVersion                       : 1.0 (14.0.100.0)
    Name                                  : 15 day retention
    DistinguishedName                     : CN=15 day retention,CN=Retention Policy Tag Container,CN=First 
                                            Organization,CN=Microsoft 
                                            Exchange,CN=Services,CN=Configuration,DC=parabit,DC=com
    Identity                              : 15 day retention
    Guid                                  : a61c470b-367b-4cb9-b955-b02ff9c5a1c3
    ObjectCategory                        : parabit.com/Configuration/Schema/ms-Exch-ELC-Folder
    ObjectClass                           : {top, msExchELCFolder}
    WhenChanged                           : 1/7/2015 12:18:29 PM
    WhenCreated                           : 1/7/2015 12:18:29 PM
    WhenChangedUTC                        : 1/7/2015 5:18:29 PM
    WhenCreatedUTC                        : 1/7/2015 5:18:29 PM
    OrganizationId                        : 
    OriginatingServer                     : DMZAD.parabit.com
    IsValid                               : True
    ObjectState                           : Unchanged
    Steven Davis of Parabit Systems

  • 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

  • Can i use the retention policy without using the Flash Recovery area?

    Yes ,lets see here
    RMAN>list backup summary
    C:\>dir *.bus
    Volume in drive C is khurram
    Volume Serial Number is F49D-FF2B
    Directory of C:\
    File Not Found
    C:\>dir *.arc
    Volume in drive C is khurram
    Volume Serial Number is F49D-FF2B
    Directory of C:\
    File Not Found
    RMAN> crosscheck backup
    2> ;
    using channel ORA_DISK_1
    RMAN> list backup summary
    2> ;
    RMAN> show retention policy
    2> ;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    RMAN> run {
    2>   allocate channel ch0 type disk;
    3>   backup as compressed backupset database format
    4>   'c:\rman_%s_%d_%T.bus'
    5>   plus archivelog format 'c:\arch_%s_%d_%T.arc';
    6>   release channel ch0;
    7>   allocate channel ch1 device type disk format 'c:\arch_%s_%d_%T.arc';
    8>   release channel ch1;
    9>   delete force noprompt obsolete;
    10>   allocate channel ch2 device type disk format 'c:\rman_%s_%d_%T.bus';
    11>   release channel ch2;
    12>   delete force noprompt obsolete;
    13> }
    released channel: ORA_DISK_1
    allocated channel: ch0
    channel ch0: sid=146 devtype=DISK
    Starting backup at 15-APR-08
    current log archived
    channel ch0: starting compressed archive log backupset
    channel ch0: specifying archive log(s) in backup set
    input archive log thread=1 sequence=24 recid=79 stamp=652108461
    input archive log thread=1 sequence=25 recid=80 stamp=652112650
    channel ch0: starting piece 1 at 15-APR-08
    channel ch0: finished piece 1 at 15-APR-08
    piece handle=C:\ARCH_130_ORCL1_20080415.ARC comment=NONE
    channel ch0: backup set complete, elapsed time: 00:00:05
    Finished backup at 15-APR-08
    Starting backup at 15-APR-08
    channel ch0: starting compressed full datafile backupset
    channel ch0: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL1\SYSTEM01.DB
    F
    input datafile fno=00003 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL1\SYSAUX01.DB
    F
    input datafile fno=00004 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL1\USERS01.DBF
    input datafile fno=00002 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL1\UNDOTBS01.D
    BF
    channel ch0: starting piece 1 at 15-APR-08
    channel ch0: finished piece 1 at 15-APR-08
    piece handle=C:\RMAN_131_ORCL1_20080415.BUS comment=NONE
    channel ch0: backup set complete, elapsed time: 00:00:45
    Finished backup at 15-APR-08
    Starting backup at 15-APR-08
    current log archived
    channel ch0: starting compressed archive log backupset
    channel ch0: specifying archive log(s) in backup set
    input archive log thread=1 sequence=26 recid=81 stamp=652112703
    channel ch0: starting piece 1 at 15-APR-08
    channel ch0: finished piece 1 at 15-APR-08
    piece handle=C:\ARCH_132_ORCL1_20080415.ARC comment=NONE
    channel ch0: backup set complete, elapsed time: 00:00:02
    Finished backup at 15-APR-08
    Starting Control File and SPFILE Autobackup at 15-APR-08
    piece handle=C:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ORCL1\AUTOBACKUP\2008_
    04_15\O1_MF_S_652112718_408X3ZVJ_.BKP comment=NONE
    Finished Control File and SPFILE Autobackup at 15-APR-08
    released channel: ch0
    allocated channel: ch1
    channel ch1: sid=146 devtype=DISK
    released channel: ch1
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 1
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=146 devtype=DISK
    Deleting the following obsolete backups and copies:
    Type                 Key    Completion Time    Filename/Handle
    Backup Set           128    15-APR-08
      Backup Piece       128    15-APR-08          C:\ARCH_130_ORCL1_20080415.ARC
    Archive Log          79     15-APR-08          C:\ORACLE\PRODUCT\10.1.0\FLASH_RE
    COVERY_AREA\ORCL1\ARCHIVELOG\2008_04_15\O1_MF_1_24_408RYXDF_.ARC
    Archive Log          80     15-APR-08          C:\ORACLE\PRODUCT\10.1.0\FLASH_RE
    COVERY_AREA\ORCL1\ARCHIVELOG\2008_04_15\O1_MF_1_25_408X1SCR_.ARC
    deleted backup piece
    backup piece handle=C:\ARCH_130_ORCL1_20080415.ARC recid=128 stamp=652112652
    deleted archive log
    archive log filename=C:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ORCL1\ARCHIVEL
    OG\2008_04_15\O1_MF_1_24_408RYXDF_.ARC recid=79 stamp=652108461
    deleted archive log
    archive log filename=C:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ORCL1\ARCHIVEL
    OG\2008_04_15\O1_MF_1_25_408X1SCR_.ARC recid=80 stamp=652112650
    Deleted 3 objects
    released channel: ORA_DISK_1
    allocated channel: ch2
    channel ch2: sid=146 devtype=DISK
    released channel: ch2
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 1
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=146 devtype=DISK
    no obsolete backups found
    RMAN>
    C:\>dir *.bus
    Volume in drive C is khurram
    Volume Serial Number is F49D-FF2B
    Directory of C:\
    04/15/2008  02:24 PM        96,813,056 RMAN_131_ORCL1_20080415.BUS
                   1 File(s)     96,813,056 bytes
                   0 Dir(s)  61,960,724,480 bytes free
    C:\>dir *.arc
    Volume in drive C is khurram
    Volume Serial Number is F49D-FF2B
    Directory of C:\
    04/15/2008  02:25 PM            56,832 ARCH_132_ORCL1_20080415.ARC
                   1 File(s)         56,832 bytes
                   0 Dir(s)  61,960,724,480 bytes free
    C:\>
    RMAN> run {
    2>   allocate channel ch0 type disk;
    3>   backup as compressed backupset database format
    4>   'c:\rman_%s_%d_%T.bus'
    5>   plus archivelog format 'c:\arch_%s_%d_%T.arc';
    6>   release channel ch0;
    7>  }
    released channel: ORA_DISK_1
    allocated channel: ch0
    channel ch0: sid=146 devtype=DISK
    Starting backup at 15-APR-08
    current log archived
    channel ch0: starting compressed archive log backupset
    channel ch0: specifying archive log(s) in backup set
    input archive log thread=1 sequence=26 recid=81 stamp=652112703
    input archive log thread=1 sequence=27 recid=82 stamp=652112873
    channel ch0: starting piece 1 at 15-APR-08
    channel ch0: finished piece 1 at 15-APR-08
    piece handle=C:\ARCH_134_ORCL1_20080415.ARC comment=NONE
    channel ch0: backup set complete, elapsed time: 00:00:02
    Finished backup at 15-APR-08
    Starting backup at 15-APR-08
    channel ch0: starting compressed full datafile backupset
    channel ch0: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL1\SYSTEM01.DB
    F
    input datafile fno=00003 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL1\SYSAUX01.DB
    F
    input datafile fno=00004 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL1\USERS01.DBF
    input datafile fno=00002 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL1\UNDOTBS01.D
    BF
    channel ch0: starting piece 1 at 15-APR-08
    channel ch0: finished piece 1 at 15-APR-08
    piece handle=C:\RMAN_135_ORCL1_20080415.BUS comment=NONE
    channel ch0: backup set complete, elapsed time: 00:00:45
    Finished backup at 15-APR-08
    Starting backup at 15-APR-08
    current log archived
    channel ch0: starting compressed archive log backupset
    channel ch0: specifying archive log(s) in backup set
    input archive log thread=1 sequence=28 recid=83 stamp=652112925
    channel ch0: starting piece 1 at 15-APR-08
    channel ch0: finished piece 1 at 15-APR-08
    piece handle=C:\ARCH_136_ORCL1_20080415.ARC comment=NONE
    channel ch0: backup set complete, elapsed time: 00:00:02
    Finished backup at 15-APR-08
    Starting Control File and SPFILE Autobackup at 15-APR-08
    piece handle=C:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ORCL1\AUTOBACKUP\2008_
    04_15\O1_MF_S_652112928_408XBKCZ_.BKP comment=NONE
    Finished Control File and SPFILE Autobackup at 15-APR-08
    released channel: ch0
    RMAN> report obsolete
    2> ;
    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           129    15-APR-08
      Backup Piece       129    15-APR-08          C:\RMAN_131_ORCL1_20080415.BUS
    Backup Set           130    15-APR-08
      Backup Piece       130    15-APR-08          C:\ARCH_132_ORCL1_20080415.ARC
    Backup Set           131    15-APR-08
      Backup Piece       131    15-APR-08          C:\ORACLE\PRODUCT\10.1.0\FLASH_RE
    COVERY_AREA\ORCL1\AUTOBACKUP\2008_04_15\O1_MF_S_652112718_408X3ZVJ_.BKP
    Backup Set           132    15-APR-08
      Backup Piece       132    15-APR-08          C:\ARCH_134_ORCL1_20080415.ARC
    Archive Log          81     15-APR-08          C:\ORACLE\PRODUCT\10.1.0\FLASH_RE
    COVERY_AREA\ORCL1\ARCHIVELOG\2008_04_15\O1_MF_1_26_408X3HRP_.ARC
    Archive Log          82     15-APR-08          C:\ORACLE\PRODUCT\10.1.0\FLASH_RE
    COVERY_AREA\ORCL1\ARCHIVELOG\2008_04_15\O1_MF_1_27_408X8RXN_.ARC
    RMAN>Note: i have archivelog which is at FRA ,it also apply there and as well yours own defined backupsets path.
    Yours comments are wellcome.
    http://oraware.blogspot.com/2008/04/can-i-use-retention-policy-without.htmlKhurram

    Hmmm, I can't see where the confusion originates. The table near the bottom of www.apple.com/timecapsule/specs.html has one row labelled "For backup using Time Machine" and another row labelled "For AirPort Disk with a USB hard drive".
    The requirement for backup via Time Machine is OS 10.5.1 or better. Time Machine is not supported in pre-Leopard (OS 10.5) nor in Windows.
    The requirement for using Time Capsule as a remote disk is identified as "Mac with Mac OS X v10.4.8 or later" or "PC with Windows XP (SP2) or Windows Vista; Bonjour for Windows (included on Time Capsule CD)".
    Doesn't that pretty much spell out that Time Capsule works as a network drive without the need for Time Machine?
    Also Joe (the OP) never indicated any desire to use it with Windows so I'm not sure why all the discussion about Windows compatibility. ??
    Also the quote posted by Henry seems pretty clear:
    "Time Capsule with Time Machine in Leopard is the ideal backup solution. But that doesn’t mean Tiger, Windows XP, and Windows Vista users can’t enjoy the benefits of Time Capsule, too. Because it mounts as a wireless hard drive, Tiger and Windows users simply access Time Capsule directly from the wireless network for exchanging and storing files quickly and easily."

  • Performance Issue when turning on Retention Policy

    Hello,
    I am currently in the process of enabling retention policy for my organization. We have 18,000+ mailboxes. How much of a performance impact (if any) will it be to the end users if we were to enable retention polices for so many mailboxes at once?
    We have not had retentions enabled for about 3 years and the goals to basically delete/purge anything over 15 months. I tried doing some research on this and can't seem to find any topics pertaining to this particular question.
    Thanks,
    Emmanuel
    Emmanuel Fumero Exchange Administrator

    The user impact of enabling retention on this many mailboxes at once is not your primary issue - your primary issue will be how long it will take to complete the process on all of your mailboxes so it can "just keep up" from that point onward. 
    I'll give you some information about our own results and let you decide how you wish to implement retention for your users.
    We have 14,000+ mailboxes running on Exchange 2010, fully updated.  We migrated three years ago from "another messaging platform" well known for allowing users to have huge mailboxes with little or no capability to restrict how large the
    mailboxes grew - and they grew.  When I started here, our average mailbox size had just popped over 2GB, and our corporate target mailbox size limit was 2GB.  We had mailboxes over 30GB, and messages older than 10 years (our corporate retention policy
    states no emails older than 7 years is allowed).  We were tasked with implementing retention across the board, with the following settings:
    Daily emails will be kept only for 60 days, and can be recovered (if necessary) for another 60 days
    Working emails (things needed for projects, etc) can be kept for 2 years, and can be recovered (if necessary) for another 60 days
    Messages required for legal reasons can be kept for up to 7 years, and can't be recovered if they are deleted
    Messages saved for legal reasons do not count against the 2 GB mailbox size limit
    Due to my previous experience implementing retention (when I was a consultant focused on Microsoft Exchange), I knew that deploying to all users at once would cause a hit on our servers (your current fear, and well founded), but I had only deployed to smaller
    organizations, and never in so radical a manner - previously, size limits had been in effect, so retention was just to "maintain the status quo", rather than to hack huge amounts of stale data from the system.  However, we did have huge servers
    (72 GB RAM and 24CPUs, but multirole) that, early on, were not highly taxed (under 15% CPU average during the peak timeframe, and we are in only two time-zones, so all 13,000 users will connect during the 7:00-10:30 Eastern timeframe).  So we determined
    that we would ramp retention across the organization in the same manner that we migrated - each 1000 users would get retention enabled weekly in a phased manner.
    When we started our first group, the IT group (naturally), most users kept their mailboxes relatively small - only 1.8 GB average - so retention ran from Thursday (the day we kicked off the implementation) through the weekend.  However, as each subsequent
    group was placed into retention, we found that the retention task was taking longer and longer.  Toward the end, we had to slip some of our retention groups a day or so because retention for the previous mailboxes hadn't completed.  We attribute
    this to two factors - 1) the mailboxes were larger on average, and B) there were also more and more mailboxes in retention already that also had to be handled.
    In the end, we took 22 weeks to fully implement retention across the organization, and the process took another two weeks to get to the point that is was "running the status quo", rather than yanking huge volumes of stale email out of mailboxes. 
    During implementation, our servers' performance numbers were good - still under 30% CPU - and users weren't complaining about poor performance due to that (cached mode is a godsend), but getting the process to complete was our sticking point.  If
    you turn on retention for all 18,000 of your mailboxes at once, you will see some server performance degradation (especially if your servers aren't as beefy as ours), but the process may never have a chance to complete across the board.  Our 22 weeks
    may well take over a year for your mailboxes.
    HTH - you are going to need all the help you can get.  (-;

  • Control_file_record_keep_time vs retention policy

    Its not thread nor question just read from documents and tried to imply the fact of documents and i think its written correct what i tried to do proof it practically ,neither i am trying to be smart just share with you guys is my observation correct or not.i am using FRA area for backup.
    <quote>
    Relation between RMAN retention period and control_file_record_keep_time
    RMAN backup keeps the backup metadata information in the reusable section of the controlfile.Its depends on the parameter CONTROL_FILE_RECORD_KEEP_TIME. CONTROL_FILE_RECORD_KEEP_TIME specifies the minimum number of days before a reusable record in the control file can be reused.
    In the event a new record needs to be added to a reusable section and there is not enough space then it will delete the oldest record, which are aged enough.
    Backup retention policy is the rule to set regarding which backups must be retained (whether on disk or other backup media) to meet the recovery and other requirements.
    If the CONTROL_FILE_RECORD_KEEP_TIME is less than the retention policy then it may overwrite reusable records prior to obsoleting them in the RMAN metadata. Therfor it is recommended that the CONTROL_FILE_RECORD_KEEP_TIME should set to a higher value than the retention policy.
    Formula
    CONTROL_FILE_RECORD_KEEP_TIME = retention period + level 0 backup interval + 1
    For e.g.
    e.q. level 0 backup once a week with retention policy of a recovery windows of 14 days then in this
    case the CONTROL_FILE_RECORD_KEEP_TIME should be 14+7+1=22
    <quote>
    RMAN> show retention policy
    2> ;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    SQL> show parameter control_file_record_keep_time
    NAME                                 TYPE        VALUE
    control_file_record_keep_time        integer     7
    SQL>
    SQL> alter system set control_file_record_keep_time=1
      2  /
    System altered.
    SQL> show parameter control_file_record_keep_time
    NAME                                 TYPE        VALUE
    control_file_record_keep_time        integer     1
    RMAN> configure retention policy to redundancy  3
    2> ;
    new RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 3;
    new RMAN configuration parameters are successfully stored
    RMAN> show retention policy
    2> ;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 3;
    RMAN> backup database
    2> ;
    Starting backup at 20-NOV-07
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=126 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\SYSTEM01.DBF
    input datafile fno=00003 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\SYSAUX01.DBF
    input datafile fno=00002 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\UNDOTBS01.DBF
    input datafile fno=00004 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\USERS01.DBF
    channel ORA_DISK_1: starting piece 1 at 20-NOV-07
    channel ORA_DISK_1: finished piece 1 at 20-NOV-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\BACKUPSET\2007_11_20\O1_MF_NN
    NDF_TAG20071120T185951_3N5T2RTX_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:01:17
    Finished backup at 20-NOV-07
    Starting Control File and SPFILE Autobackup at 20-NOV-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\AUTOBACKUP\2007_11_20\O1_MF_S
    _639169270_3N5T598C_.BKP comment=NONE
    Finished Control File and SPFILE Autobackup at 20-NOV-07
    RMAN> report obsolete
    2> ;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 3
    no obsolete backups found
    RMAN> backup database
    2> ;
    Starting backup at 20-NOV-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=00001 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\SYSTEM01.DBF
    input datafile fno=00003 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\SYSAUX01.DBF
    input datafile fno=00002 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\UNDOTBS01.DBF
    input datafile fno=00004 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\USERS01.DBF
    channel ORA_DISK_1: starting piece 1 at 20-NOV-07
    channel ORA_DISK_1: finished piece 1 at 20-NOV-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\BACKUPSET\2007_11_20\O1_MF_NN
    NDF_TAG20071120T190313_3N5T94SG_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:01:22
    Finished backup at 20-NOV-07
    Starting Control File and SPFILE Autobackup at 20-NOV-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\AUTOBACKUP\2007_11_20\O1_MF_S
    _639169477_3N5TCPVW_.BKP comment=NONE
    Finished Control File and SPFILE Autobackup at 20-NOV-07
    RMAN> report obsolete
    2> ;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 3
    no obsolete backups found
    RMAN> backup database
    2> ;
    Starting backup at 20-NOV-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=00001 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\SYSTEM01.DBF
    input datafile fno=00003 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\SYSAUX01.DBF
    input datafile fno=00002 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\UNDOTBS01.DBF
    input datafile fno=00004 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\USERS01.DBF
    channel ORA_DISK_1: starting piece 1 at 20-NOV-07
    channel ORA_DISK_1: finished piece 1 at 20-NOV-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\BACKUPSET\2007_11_20\O1_MF_NN
    NDF_TAG20071120T190500_3N5TDGC9_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:55
    Finished backup at 20-NOV-07
    Starting Control File and SPFILE Autobackup at 20-NOV-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\AUTOBACKUP\2007_11_20\O1_MF_S
    _639169556_3N5TG65X_.BKP comment=NONE
    Finished Control File and SPFILE Autobackup at 20-NOV-07
    RMAN> report obsolete
    2> ;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 3
    Report of obsolete backups and copies
    Type                 Key    Completion Time    Filename/Handle
    Archive Log          30     19-NOV-07          C:\ORACLE\FLASH_RECOVERY_AREA\ORC
    \ORC\ARCHIVELOG\2007_11_19\O1_MF_1_1_3N35QQX7_.ARC
    Archive Log          31     19-NOV-07          C:\ORACLE\FLASH_RECOVERY_AREA\ORC
    \ORC\ARCHIVELOG\2007_11_19\O1_MF_1_2_3N39LR86_.ARC
    Archive Log          32     20-NOV-07          C:\ORACLE\FLASH_RECOVERY_AREA\ORC
    \ORC\ARCHIVELOG\2007_11_20\O1_MF_1_3_3N4RZBXV_.ARC
    Archive Log          33     20-NOV-07          C:\ORACLE\FLASH_RECOVERY_AREA\ORC
    \ORC\ARCHIVELOG\2007_11_20\O1_MF_1_4_3N4W8SLF_.ARC
    Archive Log          34     20-NOV-07          C:\ORACLE\FLASH_RECOVERY_AREA\ORC
    \ORC\ARCHIVELOG\2007_11_20\O1_MF_1_5_3N4Y1CN7_.ARC
    Archive Log          35     20-NOV-07          C:\ORACLE\FLASH_RECOVERY_AREA\ORC
    \ORC\ARCHIVELOG\2007_11_20\O1_MF_1_6_3N4Z6LGF_.ARC
    Archive Log          36     20-NOV-07          C:\ORACLE\FLASH_RECOVERY_AREA\ORC
    \ORC\ARCHIVELOG\2007_11_20\O1_MF_1_7_3N53S4XK_.ARC
    Archive Log          37     20-NOV-07          C:\ORACLE\FLASH_RECOVERY_AREA\ORC
    \ORC\ARCHIVELOG\2007_11_20\O1_MF_1_8_3N57XHYB_.ARC
    Archive Log          38     20-NOV-07          C:\ORACLE\FLASH_RECOVERY_AREA\ORC
    \ORC\ARCHIVELOG\2007_11_20\O1_MF_1_9_3N5C52D8_.ARC
    Archive Log          39     20-NOV-07          C:\ORACLE\FLASH_RECOVERY_AREA\ORC
    \ORC\ARCHIVELOG\2007_11_20\O1_MF_1_10_3N5C83YB_.ARC
    Archive Log          40     20-NOV-07          C:\ORACLE\FLASH_RECOVERY_AREA\ORC
    \ORC\ARCHIVELOG\2007_11_20\O1_MF_1_11_3N5K9J2Z_.ARC
    Archive Log          41     20-NOV-07          C:\ORACLE\FLASH_RECOVERY_AREA\ORC
    \ORC\ARCHIVELOG\2007_11_20\O1_MF_1_12_3N5MMXHO_.ARC
    Archive Log          42     20-NOV-07          C:\ORACLE\FLASH_RECOVERY_AREA\ORC
    \ORC\ARCHIVELOG\2007_11_20\O1_MF_1_13_3N5N566W_.ARC
    Archive Log          43     20-NOV-07          C:\ORACLE\FLASH_RECOVERY_AREA\ORC
    \ORC\ARCHIVELOG\2007_11_20\O1_MF_1_14_3N5RVB4G_.ARC
    RMAN>
    Now i just delete alls backup and increase the control_file_record_keep_time 7 which will be more then retention policy redundancy 3
    RMAN> list backup
    2> ;
    List of Backup Sets
    ===================
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    6       Full    512M       DISK        00:01:10     20-NOV-07
            BP Key: 6   Status: AVAILABLE  Compressed: NO  Tag: TAG20071120T185951
            Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\BACKUPSET\2007_11_20\O
    1_MF_NNNDF_TAG20071120T185951_3N5T2RTX_.BKP
      List of Datafiles in backup set 6
      File LV Type Ckp SCN    Ckp Time  Name
      1       Full 478504     20-NOV-07 C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\SYSTEM01
    .DBF
      2       Full 478504     20-NOV-07 C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\UNDOTBS0
    1.DBF
      3       Full 478504     20-NOV-07 C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\SYSAUX01
    .DBF
      4       Full 478504     20-NOV-07 C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\USERS01.
    DBF
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    7       Full    2M         DISK        00:00:04     20-NOV-07
            BP Key: 7   Status: AVAILABLE  Compressed: NO  Tag: TAG20071120T190110
            Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\AUTOBACKUP\2007_11_20\
    O1_MF_S_639169270_3N5T598C_.BKP
      Controlfile Included: Ckp SCN: 478975       Ckp time: 20-NOV-07
      SPFILE Included: Modification time: 20-NOV-07
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    8       Full    513M       DISK        00:01:15     20-NOV-07
            BP Key: 8   Status: AVAILABLE  Compressed: NO  Tag: TAG20071120T190313
            Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\BACKUPSET\2007_11_20\O
    1_MF_NNNDF_TAG20071120T190313_3N5T94SG_.BKP
      List of Datafiles in backup set 8
      File LV Type Ckp SCN    Ckp Time  Name
      1       Full 480265     20-NOV-07 C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\SYSTEM01
    .DBF
      2       Full 480265     20-NOV-07 C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\UNDOTBS0
    1.DBF
      3       Full 480265     20-NOV-07 C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\SYSAUX01
    .DBF
      4       Full 480265     20-NOV-07 C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\USERS01.
    DBF
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    9       Full    2M         DISK        00:00:02     20-NOV-07
            BP Key: 9   Status: AVAILABLE  Compressed: NO  Tag: TAG20071120T190437
            Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\AUTOBACKUP\2007_11_20\
    O1_MF_S_639169477_3N5TCPVW_.BKP
      Controlfile Included: Ckp SCN: 480346       Ckp time: 20-NOV-07
      SPFILE Included: Modification time: 20-NOV-07
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    10      Full    513M       DISK        00:00:52     20-NOV-07
            BP Key: 10   Status: AVAILABLE  Compressed: NO  Tag: TAG20071120T190500
            Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\BACKUPSET\2007_11_20\O
    1_MF_NNNDF_TAG20071120T190500_3N5TDGC9_.BKP
      List of Datafiles in backup set 10
      File LV Type Ckp SCN    Ckp Time  Name
      1       Full 480415     20-NOV-07 C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\SYSTEM01
    .DBF
      2       Full 480415     20-NOV-07 C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\UNDOTBS0
    1.DBF
      3       Full 480415     20-NOV-07 C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\SYSAUX01
    .DBF
      4       Full 480415     20-NOV-07 C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\USERS01.
    DBF
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    11      Full    2M         DISK        00:00:02     20-NOV-07
            BP Key: 11   Status: AVAILABLE  Compressed: NO  Tag: TAG20071120T190556
            Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\AUTOBACKUP\2007_11_20\
    O1_MF_S_639169556_3N5TG65X_.BKP
      Controlfile Included: Ckp SCN: 480449       Ckp time: 20-NOV-07
      SPFILE Included: Modification time: 20-NOV-07
    RMAN> delete backup
    2> ;
    using channel ORA_DISK_1
    List of Backup Pieces
    BP Key  BS Key  Pc# Cp# Status      Device Type Piece Name
    6       6       1   1   AVAILABLE   DISK        C:\ORACLE\FLASH_RECOVERY_AREA\OR
    C\ORC\BACKUPSET\2007_11_20\O1_MF_NNNDF_TAG20071120T185951_3N5T2RTX_.BKP
    7       7       1   1   AVAILABLE   DISK        C:\ORACLE\FLASH_RECOVERY_AREA\OR
    C\ORC\AUTOBACKUP\2007_11_20\O1_MF_S_639169270_3N5T598C_.BKP
    8       8       1   1   AVAILABLE   DISK        C:\ORACLE\FLASH_RECOVERY_AREA\OR
    C\ORC\BACKUPSET\2007_11_20\O1_MF_NNNDF_TAG20071120T190313_3N5T94SG_.BKP
    9       9       1   1   AVAILABLE   DISK        C:\ORACLE\FLASH_RECOVERY_AREA\OR
    C\ORC\AUTOBACKUP\2007_11_20\O1_MF_S_639169477_3N5TCPVW_.BKP
    10      10      1   1   AVAILABLE   DISK        C:\ORACLE\FLASH_RECOVERY_AREA\OR
    C\ORC\BACKUPSET\2007_11_20\O1_MF_NNNDF_TAG20071120T190500_3N5TDGC9_.BKP
    11      11      1   1   AVAILABLE   DISK        C:\ORACLE\FLASH_RECOVERY_AREA\OR
    C\ORC\AUTOBACKUP\2007_11_20\O1_MF_S_639169556_3N5TG65X_.BKP
    Do you really want to delete the above objects (enter YES or NO)? yes
    deleted backup piece
    backup piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\BACKUPSET\2007_11_20\O
    1_MF_NNNDF_TAG20071120T185951_3N5T2RTX_.BKP recid=6 stamp=639169192
    deleted backup piece
    backup piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\AUTOBACKUP\2007_11_20\
    O1_MF_S_639169270_3N5T598C_.BKP recid=7 stamp=639169273
    deleted backup piece
    backup piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\BACKUPSET\2007_11_20\O
    1_MF_NNNDF_TAG20071120T190313_3N5T94SG_.BKP recid=8 stamp=639169396
    deleted backup piece
    backup piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\AUTOBACKUP\2007_11_20\
    O1_MF_S_639169477_3N5TCPVW_.BKP recid=9 stamp=639169478
    deleted backup piece
    backup piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\BACKUPSET\2007_11_20\O
    1_MF_NNNDF_TAG20071120T190500_3N5TDGC9_.BKP recid=10 stamp=639169502
    deleted backup piece
    backup piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\AUTOBACKUP\2007_11_20\
    O1_MF_S_639169556_3N5TG65X_.BKP recid=11 stamp=639169558
    Deleted 6 objects
    RMAN> delete archivelog all
    2> ;
    released channel: ORA_DISK_1
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=126 devtype=DISK
    specification does not match any archive log in the recovery catalog
    RMAN> list backup
    2> ;
    RMAN> show retention policy
    2> ;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 3;
    SQL> show parameter control_file_record_keep_time
    NAME                                 TYPE        VALUE
    control_file_record_keep_time        integer     1
    SQL> alter system set control_file_record_keep_time=7
      2  /
    System altered.
    SQL> show parameter control_file_record_keep_time
    NAME                                 TYPE        VALUE
    control_file_record_keep_time        integer     7
    SQL>
    RMAN> backup database
    2> ;
    Starting backup at 20-NOV-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=00001 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\SYSTEM01.DBF
    input datafile fno=00003 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\SYSAUX01.DBF
    input datafile fno=00002 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\UNDOTBS01.DBF
    input datafile fno=00004 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\USERS01.DBF
    channel ORA_DISK_1: starting piece 1 at 20-NOV-07
    channel ORA_DISK_1: finished piece 1 at 20-NOV-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\BACKUPSET\2007_11_20\O1_MF_NN
    NDF_TAG20071120T191412_3N5TXRSG_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:01:15
    Finished backup at 20-NOV-07
    Starting Control File and SPFILE Autobackup at 20-NOV-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\AUTOBACKUP\2007_11_20\O1_MF_S
    _639170131_3N5V03YT_.BKP comment=NONE
    Finished Control File and SPFILE Autobackup at 20-NOV-07
    RMAN> report obsolete
    2> ;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 3
    no obsolete backups found
    RMAN> backup database
    2> ;
    Starting backup at 20-NOV-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=00001 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\SYSTEM01.DBF
    input datafile fno=00003 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\SYSAUX01.DBF
    input datafile fno=00002 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\UNDOTBS01.DBF
    input datafile fno=00004 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\USERS01.DBF
    channel ORA_DISK_1: starting piece 1 at 20-NOV-07
    channel ORA_DISK_1: finished piece 1 at 20-NOV-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\BACKUPSET\2007_11_20\O1_MF_NN
    NDF_TAG20071120T191655_3N5V2S20_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
    Finished backup at 20-NOV-07
    Starting Control File and SPFILE Autobackup at 20-NOV-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\AUTOBACKUP\2007_11_20\O1_MF_S
    _639170261_3N5V462Z_.BKP comment=NONE
    Finished Control File and SPFILE Autobackup at 20-NOV-07
    RMAN> report obsolete
    2> ;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 3
    no obsolete backups found
    RMAN> backup database
    2> ;
    Starting backup at 20-NOV-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=00001 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\SYSTEM01.DBF
    input datafile fno=00003 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\SYSAUX01.DBF
    input datafile fno=00002 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\UNDOTBS01.DBF
    input datafile fno=00004 name=C:\ORACLE10G\ORACLE\ORADATA\ORC\ORC\USERS01.DBF
    channel ORA_DISK_1: starting piece 1 at 20-NOV-07
    channel ORA_DISK_1: finished piece 1 at 20-NOV-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\BACKUPSET\2007_11_20\O1_MF_NN
    NDF_TAG20071120T191836_3N5V5X20_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
    Finished backup at 20-NOV-07
    Starting Control File and SPFILE Autobackup at 20-NOV-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORC\ORC\AUTOBACKUP\2007_11_20\O1_MF_S
    _639170362_3N5V7C1K_.BKP comment=NONE
    Finished Control File and SPFILE Autobackup at 20-NOV-07
    RMAN> report obsolete
    2> ;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 3
    no obsolete backups foundnothing obsolete it means control_file_record_keep_time will not affect backups unless it will be less then or equal
    to retention policy.
    Note : Please agree or disagree with me may be i would be wrong
    Khurram

    Sorry for alls readers after a long practical observation at my own database server i came across that my observation was wrong and absurd in this first post, the above observation is not due to control_file_record_keep_time ,its due to something obvious which i am going to share you guys here.
    RMAN> show retention policy
    2> ;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
    RMAN> report obsolete
    2> ;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 2
    no obsolete backups found
    RMAN> list backup
    2> ;
    RMAN>AS documentation says
    "Besides affecting datafile and control file backups, the retention policy affects archived logs and archived log backups.
    First, RMAN decides which datafile and control file backups are obsolete. Then, RMAN considers as obsolete all archived
    log backups that are older than the oldest datafile or control file backup that must be retained."
    Now i connect to SQL and create two big table for filling the redo log file and then get it archived.Please
    consider it here that i am getting archived before any taking backup i.e backup database in order to make
    archive older then the oldest datafile.
    SQL> show parameter control_file_record_keep_time
    NAME                                 TYPE        VALUE
    control_file_record_keep_time        integer     7
    SQL> create table a1 as select * from all_objects
      2  /
    Table created.
    SQL> create table a2 as select * from all_objects
      2  /
    Table created.
    C:\>dir C:\oracle\product\10.1.0\flash_recovery_area\ORCL\ARCHIVELOG\2008_03_17
    Volume in drive C is khurram
    Volume Serial Number is F49D-FF2B
    Directory of C:\oracle\product\10.1.0\flash_recovery_area\ORCL\ARCHIVELOG\2008_03_17
    03/17/2008  03:44 PM    <DIR>          .
    03/17/2008  03:44 PM    <DIR>          ..
    03/17/2008  03:44 PM         9,750,528 O1_MF_1_15_3XWLVK6T_.ARC
                   1 File(s)      9,750,528 bytes
                   2 Dir(s)  62,714,875,904 bytes free
    Now i take backup
    RMAN> backup database
    2> ;
    Starting backup at 17-MAR-08
    using channel ORA_DISK_1
    RMAN> report obsolete
    2> ;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 2
    no obsolete backups found
    RMAN> backup database
    2> ;
    Starting backup at 17-MAR-08
    using channel ORA_DISK_1
    RMAN> report obsolete
    2> ;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 2
    Report of obsolete backups and copies
    Type                 Key    Completion Time    Filename/Handle
    Archive Log          402    17-MAR-08          C:\ORACLE\PRODUCT\10.1.0\FLASH_RE
    COVERY_AREA\ORCL\ARCHIVELOG\2008_03_17\O1_MF_1_15_3XWLVK6T_.ARCYou can see the obsolete archived files which is the older then the oldest file which has been obsolete.It also
    does'nt make sense to keep the archived log files which is older then the oldest file cause it will no longer
    be useful for recovery process.
    now back to pavillion
    RMAN> delete obsolete
    2> ;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 2
    using channel ORA_DISK_1
    Deleting the following obsolete backups and copies:
    Type                 Key    Completion Time    Filename/Handle
    Archive Log          402    17-MAR-08          C:\ORACLE\PRODUCT\10.1.0\FLASH_RE
    COVERY_AREA\ORCL\ARCHIVELOG\2008_03_17\O1_MF_1_15_3XWLVK6T_.ARC
    Do you really want to delete the above objects (enter YES or NO)? yes
    deleted archive log
    archive log filename=C:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELO
    G\2008_03_17\O1_MF_1_15_3XWLVK6T_.ARC recid=402 stamp=649611842
    Deleted 1 objects
    RMAN> delete backup
    2> ;
    using channel ORA_DISK_1
    RMAN> list backup
    2> ;
    C:\>dir C:\oracle\product\10.1.0\flash_recovery_area\ORCL\ARCHIVELOG\2008_03_17
    Volume in drive C is khurram
    Volume Serial Number is F49D-FF2B
    Directory of C:\oracle\product\10.1.0\flash_recovery_area\ORCL\ARCHIVELOG\2008_
    03_17
    03/17/2008  03:59 PM    <DIR>          .
    03/17/2008  03:59 PM    <DIR>          ..
                   0 File(s)              0 bytes
                   2 Dir(s)  62,724,440,064 bytes freenow this time what i did i created the archived log files after first backup in order to not to make it older
    then the oldest datafile backup.
    RMAN> backup database
    2> ;
    Starting backup at 17-MAR-08
    using channel ORA_DISK_1
    RMAN> report obsolete
    2> ;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 2
    no obsolete backups foundnow i come to at SQL and make redo log file filled by creating 2 big tables in order to get it archived
    SQL> create table a3 as select * from all_objects
      2  /
    Table created.
    SQL> create table a4 as select * from all_objects
      2  /
    Table created.
    C:\>dir C:\oracle\product\10.1.0\flash_recovery_area\ORCL\ARCHIVELOG\2008_03_17
    Volume in drive C is khurram
    Volume Serial Number is F49D-FF2B
    Directory of C:\oracle\product\10.1.0\flash_recovery_area\ORCL\ARCHIVELOG\2008_
    03_17
    03/17/2008  04:09 PM    <DIR>          .
    03/17/2008  04:09 PM    <DIR>          ..
    03/17/2008  04:09 PM         9,751,552 O1_MF_1_16_3XWNCGRS_.ARC
                   1 File(s)      9,751,552 bytes
                   2 Dir(s)  62,563,205,120 bytes free
    RMAN> backup database
    2> ;
    Starting backup at 17-MAR-08
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting compressed full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    RMAN> report obsolete
    2> ;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 2
    no obsolete backups foundYou can see no archived logs get obsolete yet cause the archivelog O1_MF_1_16_3XWNCGRS_.ARC
    is not older then oldest datafile backup.
    But this archivelog file will get obsolete if its beyond the retention policy,lest see how ,just take one more
    backup ,as i have already taken two time backup and the moment i go to take third backup it will cross ours
    retetnion policy from the period of 2.
    RMAN> backup database
    2> ;
    RMAN> report obsolete
    2> ;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 2
    Report of obsolete backups and copies
    Type                 Key    Completion Time    Filename/Handle
    Backup Set           240    17-MAR-08
      Backup Piece       231    17-MAR-08          C:\ORACLE\PRODUCT\10.1.0\FLASH_RE
    COVERY_AREA\ORCL\BACKUPSET\2008_03_17\O1_MF_NNNDF_TAG20080317T160604_3XWN4WTB_.B
    KP
    Backup Set           241    17-MAR-08
      Backup Piece       232    17-MAR-08          C:\ORACLE\PRODUCT\10.1.0\FLASH_RE
    COVERY_AREA\ORCL\BACKUPSET\2008_03_17\O1_MF_NCSNF_TAG20080317T160604_3XWN6Z95_.B
    KP
    Archive Log          403    17-MAR-08          C:\ORACLE\PRODUCT\10.1.0\FLASH_RE
    COVERY_AREA\ORCL\ARCHIVELOG\2008_03_17\O1_MF_1_16_3XWNCGRS_.ARCKhurram

  • RMAN retention policy - backup spfile and then redundancy = 5 removes it.

    I have a database that is Oracle Standard Edition and it is version 9.2.0.6.
    The spfile has not changed since November, 2005. A list backup does not show an spfile backup with a tag of "hot_database_spfile_backup_full". I took a close look at the RMAN script log and was shocked to discover that the spfile backup from the current day is being deleted. Is that because of the redundancy = 5? I'm trying to figure out why a backup piece from the current day is being deleted?
    Examples follow.
    The script deletes obsolete with redundancy = 5, however, I believe the intent was to keep 25 days because one of the configure clauses is set to a recovery window of 25 days. I realize that the redundancy overrides the configure retention policy command. I can fix the script and remove the redundancy = 5.
    In the RMAN run statement, I first resync the catalog, backup the spfile, a full backup of the database including current controlfile plus archive log (delete input), resync catalog, switch logfile, and backup any additional archive logs. The backup looks fine.
    Then, I allocate a channel for maintenance type sbt. The script then has a "delete noprompt expired backup;" a "delete noprompt obsolete redundancy = 5;" and finally, a crosscheck;
    example of backup piece that is later deleted:
    Starting backup at 07/18/2006 20:00:14
    channel t1: starting full datafile backupset
    channel t1: specifying datafile(s) in backupset
    including current SPFILE in backupset
    channel t1: starting piece 1 at 07/18/2006 20:00:14
    channel t1: finished piece 1 at 07/18/2006 20:00:15
    piece handle=P*****_2338_1_596145614_FULL comment=API Version 2.0,MMS Version 5.2.0.0
    channel t1: backup set complete, elapsed time: 00:00:01
    Finished backup at 07/18/2006 20:00:15
    deletion:
    Deleting the following obsolete backups and copies:
    Type Key Completion Time Filename/Handle
    <other lines deleted>
    Backup Set 27453 07/18/2006 20:00:14
    Backup Piece 27454 07/18/2006 20:00:14
    P*****_2338_1_596145614_FULL
    deleted backup piece
    backup piece handle=P*****_2338_1_596145614_FULL recid=2039 stamp=596145614
    Deleted 12 objects
    Why is a backup piece created on 7/18 being deleted in the maintenance step?
    Thanks in advance!

    In the next step in the script, the controlfile and spfile are backed up:
    backup
    full
    skip inaccessible
    tag hot_database_backup_full
    format '%d_%s_%p_%t_FULL'
    (Database
    include current controlfile)
    Plus Archivelog delete input;
    Even though my backup script is redundant by backing up the spfile twice, when I list the backup of the spfile, I would have expected to find 5 backups with a tag of hot_database_spfile_backup_full and 5 with a tag of hot_database_backup_full. That is not the case. I only find spfiles with a tag of hot_database_backup_full. i am still perplexed by RMAN.
    I will modify my script - remove the backup of the spfile, and crosscheck before the delete commands. I will also remove the redundancy = 5. The intent is to keep 25 days of backups.
    Thanks for your comments

  • 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

  • Sharepoint List Retention Policy based on Modified Date

    How do I implement a Sharepoint List Retention Policy that deletes list items that haven't been modified in X days?
    I've tried to create a retention policy in Sharepoint, but I only get the option to base the policy on:
    Created Date
    Declared Record
    I need the policy to be based on Modified Date, a standard date field that appears against all lists & document libraries. Is there a configuration change I can make to cause Modified Date to appear in the list of available fields on the Retention Policy
    dialog window?
    Thanks.

    Veda, thanks but I'm not really a hardcore C# coder.
    We found more elegant solution was to create a List View which returns all records that should be deleted, based on our own custom deletion criteria, and then create an very simple SSIS Package in Visual Studio using the
    Sharepoint Connectors for SSIS to delete all Sharepoint List Items returned from that List View. The Sharepoint Destination Connector has a delete operation.
    This worked for us and didn't require any coding.

  • 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

Maybe you are looking for