Retention policy and deletion of archived files

hello, I 'am a novice DBA having a backup question.
Our retention policy is set to 14 days; weekly we have full database backup; daily we have an incremental backup.
See scripts below.
The drive "\\is003s012\rhea\rman" where the backup files reside has files older than 2 months.
I expected these files to be deleted already by rman.
I can't find the cause why these files are not removed.
The database backup jobs are running fine ; logs file do not contain any errors and once and a while you see that rman removes obsolete files.
list expired / report obsolete do not return any files.
thanks for the assistance
chris
================= full db
c$rman_script="backup incremental level 0 cumulative device type disk tag '%TAG' database;
backup device type disk tag '%TAG' archivelog all not backed up delete all input;
allocate channel for maintenance type disk;
delete noprompt obsolete device type disk;
release channel;
&br_save_agent_env();
&br_prebackup($l_db_connect_string, $l_is_cold_backup, $l_use_rcvcat, $l_db_10_or_higher, $l_backup_strategy, "TRUE");
my $result = &br_backup();
exit($result);
================ incr db
$rman_script="backup incremental level 1 cumulative device type disk tag '%TAG' database;
recover copy of database;
backup device type disk tag '%TAG' archivelog all not backed up delete all input;
allocate channel for maintenance type disk;
delete noprompt obsolete device type disk;
release channel;
&br_save_agent_env();
&br_prebackup($l_db_connect_string, $l_is_cold_backup, $l_use_rcvcat, $l_db_10_or_higher, $l_backup_strategy, "TRUE");
my $result = &br_backup();
exit($result);
================== rman setting
RMAN> show all;
RMAN configuration parameters for database with db_unique_name RHEA are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 14 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 '\\is003s012\rhea\rman\%F';
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 CHANNEL DEVICE TYPE DISK FORMAT '\\is003s012\rhea\rman\%U';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 1 TIMES TO 'SBT_TAPE';
CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'D:\ORACLE\PRODUCT\11.2.0\DBHOME_1\DATABASE\SNCFRHEA.ORA'; # default

Chris,
Thanks for the info; my current setting for this parameter:
SQL> show parameter CONTROL_FILE_RECORD_KEEP_TIME;
NAME                                 TYPE        VALUE
control_file_record_keep_time        integer     7
I found another thread that elaborated on this: Re: CONTROL_FILE_RECORD_KEEP_TIME vs Retention Policy in RMAN
a) RMAN Retention Policy set to recovery window of 30 days means backups and archivelogs that you need to do a Point in Time Recovery to before 30 days do not get obsolete.
b) CONTROLFILE_RECORD_KEEP_TIME=7 will keep (potentially, if space pressure in the controlfile) the records of these files for only 7 days
Effect: Your old backups and archivelogs (+7 days) are no longer known by the system and will not get deleted (automatically or by delete obsolete) and your recovery area/backup location/archive destination will get filled up with old files.
Therefore set b) > a)
Based on this I changed the parameter:
alter system set CONTROL_FILE_RECORD_KEEP_TIME=35 scope=both;
Even tho the 'stale' backupsets are still invisible (still getting 'no obsolete backups found' when doing REPORT OBSOLETE), I guess that's because it will take a while (23 days?) for the CONTROL_FILE_RECORD_KEEP to catch up to the RMAN Retention Policy of 30 days)....
Barry

Similar Messages

  • Retention Policy to delete both backup sets and archivelogs automatically

    I configured the Recovery Window-Based Retention Policy for my database for the window=14 days. I also set up a crontab to do a full backup every Monday. So say in a month, there will be 30 archive logs and 4 full DB backup sets.
    Now that I understand if the FRA gets filled up, older archive logs that are not needed for the 14 days recoverable window will be automatically deleted. My questions is what happen to the old backup sets? Will they get deleted automatically too if there is no space left in FRA? Or I need to use "DELETE OBSOLETE" to delete them?
    Thanks.

    One of the advantages of the FRA is, in case of space pressure obsolete objects (obsolete due to the defined retention policy) are deleted automatically. That's true for backups and archivelogs. The objects are NOT deleted automatically after the retention policy expires, but only when additional space is needed. That does not mean you don't have to care about FRA space consumption. You may have unusual amounts of archivelogs, additional backups and flashback logs (if flashback database is configured), which fill up the FRA.
    Werner

  • Retention Policy is not auto archiving email

    Hi, I created a new Retention Policy and attached 2 Retention Tags.
    I have a mailbox that is 18 GB and i need for all items\folders to be transferred to the same folder structure in the archive.
    The archive is presently empty, i only see a deleted items folder and the retention policy is not moving emails automatically.
    The Retention Tags attached to the policy are:
    Tag Type: Personal Tag, Age Limit for Retention 365 days, Move to Archive
    and
    Tag Type: All other folders in the mailbox, Age Limit for Retention 365 days, Move to Archive
    I also tried running the start Start-ManagedFolderAssistant cmdlet.
    Any advice would be greatly appreciated.
    Thank you,

    Hi,
    For the personal tag you created as follows, and users need to apply this tag to items from Outlook side.
    Personal Tag, Age Limit for Retention 365 days, Move to Archive
    For the "All other folders in the mailbox", if you choose the option of All other folders in the mailbox, then this would be a DPT. The DPT is applied to any folder that doesn't have a Retention Tag associated with it.
    The action "Move to Archive" moves a message to the user's archive mailbox. If the mailbox user doesn't have an archive mailbox, no action is taken. So please make sure you have enabled archive on this user mailbox.
    Once a retention policy is applied to a user mailbox, then the retention policy tag for an item will appear in the header in the Reading Pane. Please check whether you can see the retention policy description when you open a message in Outlook.
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

  • Question related to deletion of archived files.

    Hi everyone,
    I have used the archiving object 'idoc' to archive data. However, this attempt to archive(write) failed twice and now i have two invalid sessions 632 and 633.
    It has created archvied files worth 80 GB in my UNIX system, which are useless now. Is there some way by which i can clean up this data through SAP.
    Please help.
    Thanks,
    Vinod.

    Hi Vinod,
    Since the archive file belongs to invalid session you can simply delete the archive files at the unix level.
    Cheers,
    Samanjay

  • Delete Inbound Archive files

    Hi MDM Guru's,
    I want to delete files in the inbound archive folder of my repositoires. My MDM system runs on Unix, its not windows based.
    How can i schedule a back ground task to delete these files, keeping the last week files only? Could it be done using clix, any Sql based commands or any........................
    Please guide me.
    Thanks in advance
    Cheers
    Srihari Reddy

    Hi,
    Yes you can delete the files present in Ready and Archive folder.
    Follow the below steps:
    1. Create a text file which contain the below lines:
    cd {MDM Installation Path}\Server\......\Archive
    del star . star /q
    Note: Instead of writing "star" use star symol
    E.g. C:\Program Files\SAP MDM 5.5 Server\Distributions\Test-MDM_MSQL\Test-Repo\Inbound\Remote_sys\Inbound_port\Archive
    2. Save the file with .bat extension in C drive.
    3. You can schedule this file using Windows Schedular. For this go to Start -> Programs -> Accessories -> System Tools -> Scheduled Tasks and create a new one by double clicking on it. Select the bat file created and accordindly schedule it like daily, weekly etc.
    4. Now whenever the task is due it automatically executes the commands written in bat file and deletes all the files from Archives folder.
    Regards,
    Jitesh Talreja

  • When I connect my iphone to my itunes it says loads of space is being taken up by documents , however i have no documents saved on my phone to my knowledge. how do I find and delete these hidden files ?

    when I connect my iphone to my itunes it says loads of space is being taken up by documents , however i have no documents saved on my phone to my knowledge. how do I find and delete these hidden files ?

    I restored the phone so had no apps on it at all and there was still this certain amount of space used up by documents ! I've already had it in to the apple store and they didn't seem to have a clue either ! Ugh ! Wouldn't mind so much if the phone was free with a contract but I actually spent 450 quid buying this phone and it's always full of "nothing" so virtually unusable

  • I bough a Mac Pro 2010 second hand and deleted all the files without backing up now is asking me for the Apple ID of the person who installed maverick,any ideas

    I bough a Mac Pro 2010 second hand and deleted all the files without backing up now is asking me for the Apple ID of the person who installed maverick,any ideas

    If the Mac's firmware was updated, you can try this Internet Recovery:
    Hold down Command + Option + R during restart or bootup; hold until you see a spinning globe (takes up to 10 minutes). Once in the Utilities window, use Disk utility to wipe the drive, then return to the window and choose to reinstall OS X. If that works, the OS will be installed without being tied to an Apple ID.
    FWIW, if the firmware was updated, you will not be able to use the Snow leopard disk to install - I just did several tests and it does not work. You can, however, possibly install the SL onto an external drive and then clone it to the internal or (if you have a clone), boot from that and clone it back - I just tested that as well.
    If the firmware was not updated, then you can use the SL install disk.

  • HELP!! How can I find and delete duplicate mp3 files.

    I have a zillion copies of songs and I want to find and delete duplicate mp3 files. I have used MediaRage to find the duplicate files (16 thousand or so) but it can't delete them. It will take a million yrs to delete them manually. Does anyone know a way to do this quickly or a program that will do this for me. I have a 15 in Powerbook with OS 10.5.3
    Thanks so much if you can help.

    This site: http://dougscripts.com/itunes/ has hundreds of scripts (small programs that do stuff) for iTunes.
    Bound to be something there for you.

  • When I start downloading apps on creative cloud with windows 7 professional 64 bit, Creative cloud blanks out and stays blank til I re-start the program. I have tried re-installing it and deleting the OMP file. What do I have to do to be able to install a

    When I start downloading apps on creative cloud with windows 7 professional 64 bit, Creative cloud blanks out and stays blank til I re-start the program. I have tried re-installing it and deleting the OMP file. What do I have to do to be able to install apps?

    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • How remove and delete a downloaded file

    How do I remove and delete a downloaded file. I downloaded a large file a PDF that I want to remove

    Thank you I just deleted the file

  • HT5731 After following the instructions to clear a -50 error and deleted the .tmp file, I am now getting a -150 error. What next?

    After folling the instructions to clear a -50 error and deleted the .tmp file, I now am getting a -120 error. I can't find instructions to clear this...What next?

    Hello jimlcoff,
    I found a couple of articles with steps you can take when you are not able to connect to the iTunes Store.  I recommend reviewing the following articles:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • HT2731 i hav iphone and i restart it and delete all the files inside how can i start again my iphoe it say i need a valid sim with no pin lock to activate it again pls help

    i hav iphone and i restart it and delete all the files inside how can i start it again it say i need a valid sim with no pin lock to activate iphone again

    ICCID unknown is a critical failure, usually caused by hacking or jailbreaking the phone. It can not be fixed. The phone will need to be replaced.

  • 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 and Managed folder based retention

    What is difference between "Retention Policy/ Policy Tags" and " Managed Content Settings"?
    In my setup , my managed folder folder become general folder after following steps
    1. Created Managed folder
    2. Created managed content settings for IPM.post and IPM.Appointment with retention action "Delete and Allow recovery".
    3. Created managed policy and applied to 1 mailbox, and this is working properly
    But After that,
    1. Created 3 retention tags(1 for inbox, 1 for sent, 1 personal).
    2. Created retention policy combining these 3 tags.
    3. Applied to SAME mailbox
    4. Ran 'ManagedFolderAssitant'
    **After this, Managed folder become general outlook folder.
    So, cant I have "Managed folder based retention for managed folders" and General retention for "Inbox,Sent"

    Exchange 2010 RTM introduced Retention Policies as the successor to the Message Records Management (MRM) technology introduced in Exchange 2007. MRM was the successor to Mailbox Manager Policies in Exchange 2003. Message Records Management is called MRM
    1.0 and Retention Policies is being called MRM 2.0 for short. MRM 1.0 as well as MRM 2.0 are both available in Exchange 2010. Only difference is we can manage Retention Policies from the EMC and EMS, but the Managed Folder Mailbox Policy is only Managed from
    the EMS through cmdlets in Exchange 2010 SP1.
    It completely depends on your requirements when to use MRM 1.0 and when to Use MRM 2.0.
     Certain new features are added in MRM 2.0 (Retention Policy) which allow us to manage our mailbox email items at very granular level. But if we are still happy with earlier version MRM 1.0 then we can continue using Managed folder mailbox
    Policy in Exchange 2010.
    [ Note: If we are Using the Retention Policy (MRM 2.0) then we can view the expiry of  each and every email items of the folders on which the retention Policy is tagged and this can be only view from OWA and Outlook 2010, But this feature
    is not available  for  Managed Folder Mailbox Policy (MRM 1.0) ]
    We cannot use the Base Folder only switch in MRM 2.0 because it is TAG  specific (DPT, RPT, and PPT) not Managed Folder specific.
    Managed folder Mailbox Policy is folder specific this would be the major difference.
    Refer to this link :
    Retention policies vs Managed folders

  • Storing and deleting time capsule files

    After reviewing a number of posts it seems partitioning the time capsule is very difficult at best. If I am using it to back up my computer and wanting to save other files to it, what happens when the disk reaches capacity? Can you delete backup files to make room for other files or will that corrupt the retrieval?

    Time Capsule is not intended for partitioning by Apple. If you need additional storage space, an additional HDD is best. However, you can delete back up files, but only do this via the Time Machine interface. Deleting files via Finder is asking for trouble.

Maybe you are looking for

  • Help figuring out how to tell if an object is within a dynamically made circle

    Hello Everyone, I am currently in the middle of working on a project but sadly I am having a bit of trouble getting a few things figured out. Essentially what the project consists of is I have random balls appearing on the screen and moving around an

  • Regarding performance of a report

    Hi friends, In the loop statement I am using modify statement for updating the data in the internal table . I have to improve the performance of a report. is there any alternative for Improving teh performance., Regards, Jayan

  • How to block face book or orkut or any other websites

    i want to block certains websites, which are harmful for children. Kindlhy inform how is it possible

  • Burn Events AND Albums to DVD

    I would like to burn a copy of my iPhoto '08 library (which will fit on a single DVD) that will be re-mountable within iPhoto. However, it seems to allow me to EITHER burn all the events, but then no albums are retained OR burn all the albums, but th

  • Formula   variable  sap exit

    formula   variable  sap exit   what  are the changes in my report in quary designer