RMAN job not deleting old archivelogs

I've setup an rman backup via dbconsole to backup db and archivelogs, for a retention period of 7 days, then delete obsolete. The database is 10GR2, running on windows 2008. For as yet unknown reasons, the cursed dbconsole quit working, and I haven't rebuilt it yet because I can't put this database in quiesce mode without pissing a lot of people off, so am using rman command line to check on backups etc.
I checked today, no obsolete backups found after running crosscheck database, and no obsolete logs after running crosscheck archivelog all;
Double checked recovery window and it is indeed 7 days, but there are archivelogs older than 7 days. When I run delete obsolete they dont get deleted, so I run delete archivelog all completed before 'sysdate - 7' and it deletes 314 old logs.
Why is rman not seeing these old logs? I believe I have the backups and archivelogs set to the same criteria, yet backups are being deleted over 7 days.
What am I missing here?
ps. for all the trouble dbconsole gives me, I'm tempted to go with rman scripts in windows scheduled tasks and just forget about it.. </end rant>

Hi,
How many old those archvies are?
did those archives are in your RMAN repository?
might it may be old when you have not configured retention policy..
or
delete those old archive logs once, crosscheck them all and lets see if you face any issues. still.
Thanks

Similar Messages

  • Ola Hallengren maintenance solution TSQL script not deleting old backup files from my local SQL server

    I have looked on Ola's site (https://ola.hallengren.com/frequently-asked-questions.html) and I did see this:
    DatabaseBackup is not deleting old backup files. What could the problem be?
    Verify that the SQL Server and SQL Server Agent service accounts have full control of the backup directory.
    If that directory is a network share, verify that the SQL Server and SQL Server Agent service accounts have full control of the network share.
    If you are using a proxy account, verify that the account is a member of the sysadmin server role and that it has full control of the backup directory and network share.
    Verify that the file is not locked in the file system; for example, a backup or antivirus software could be locking the file.
    DatabaseBackup has been designed not to delete transaction log backups that are newer than the most recent full or differential backup. This could explain why transaction log backups are not being deleted.
    I followed these instructions and then I right clicked the "sp_delete_backuphistory" job under "SQL Server Agent > Jobs" folder and clicked the "Start job at step ..." option. The job successfully ran, but my .bak backup
    files were still on located on my separate drive partition I use specifically for these backups. 
    The SQL Server and the SQL Server Agent are both using the same AD account. 
    Would any of you SQL gurus out there know how to resolve this?
    Thank you 

    The sp_delete_backuphistory job only deletes the historical info from the backup & restore tables in the msdb database. It does not do anything to the files on disk.
    https://msdn.microsoft.com/en-us/library/ms188328.aspx
    The code to actually purge the backup files from disk is inside the DatabaseBackup stored procedure. It is controlled by using the @CleanupTime parameter for that stored proc. Verify the value for that parameter is low enough to delete your files on disk. The
    value is in hours, and I believe the default is 48 hours. The SQL agent job name usually starts with "DatabaseBackup...".

  • HT4847 I can not delete old icloud back up from my old phone, keep receiving an error message "this back up can not be deleted because it's in use" it is not in use that phone is long gone!

    I can not delete old icloud back up from my old phone, keep receiving an error message "this back up can not be deleted because it's in use" it is not in use that phone is long gone!

    I have the same problem here and it wont let me do another back up or delete the old one.... Please help!!!! Anyone

  • I backup to an external hdd with Time Machine, when it ran out of space it did not delete old backups, now my internal hdd says its full when before it had heaps of space. I have searched for extra files but cant find any. Can anyone help, please.

    I backup to an external hdd with Time Machine, when it ran out of space it did not delete old backups, now my internal hdd says its full when before it had heaps of space. I have searched for extra files but cant find any. Can anyone help, please.

    First, empty the Trash if you haven't already done so. Then reboot. That will temporarily free up some space.
    To locate large files, you can use Spotlight as described here. That method may not find large folders that contain a lot of small files.
    You can also use a tool such as OmniDiskSweeper (ODS) to explore your volume and find out what's taking up the space. You can delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Proceed further only if the problem hasn't been solved.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    Install ODS in the Applications folder as usual.
    Triple-click the line of text below to select it, then copy the selected text to the Clipboard (command-C):sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means.
    When you're done with ODS, quit it and also quit Terminal.

  • Why does Time machine not delete old backups

    I dont understand Why time machine is not deleting old backups. As it worked first time with the same size backup drive as the drive its backing up, I assumed it would just delete the old backup as needed. Do I need a bigger backup drive?

    Roglee wrote:
    I just want it to delete the old backup & replace it so i just have a copy. I guess i could just re format the drive each time but that just seems a waste of my time when TM should do this for me!
    If this is all you want to do, turn off Time Machine, download SuperDuper! and use it for free. This will clone whatever drive you want and the free trial will erase your back up drive each time. I can't remember if it will let you choose what to back up or if it wants the entire drive. Also, I'm not sure if the Scheduler works with the free trial. Below are some verbiage for SuperDuper!. Looks like if you want Scheduling you will have to purchase a license.
    Download Now! 
    You can download SuperDuper! v2.7.1 right now and back up and clone your drives for free— forever! 
    Buy Now!
    Buy now to unlock scheduling, Smart Update (which saves a lot of time), Sandboxes, scripting and more!
    Time Machine will keep making back ups and when it determines it needs space, it will delete older back ups. But it doesn't delete older ones each time it backs up.

  • Time machine will not delete old backups

    time macine will not delete old backups....is there a manual way to do it

    Just let it run. It will manage itself fine, you may benefit though from reading Pondini's Time Machine FAQs

  • Time machine will not delete old backup when space is needed

    Time machine says there is not enough space to complete backup yet will not delete old backups

    Start with C4.
    Time Machine Troubleshooting

  • Deleting old archivelogs

    Hi,
    Can anybody provide me a shell script which can delete 1 week old archivelogs?
    Note : I am not using RMAN.
    Thanks in advance...

    version 10g
    flashback on
    archiving is maintain in flashback area
    i see in alert.log that the warning about space.
    i delete archive logs in flashback area manually.
    but problem exists .
    because it is test environment .i off the flashback and disable archiving.
    i check V$FLASH_RECOVERY_AREA_USAGE it is still showing near 100% usage in which archiving file use nearly 84% while i delete all archive files manually.
    Now i again want to enable archiving.
    Extract from alert.log
    ORACLE Instance orcl - Archival Error
    Mon Jan 29 05:59:50 2007
    ORA-16014: log 3 sequence# 160 not archived, no available destinations
    ORA-00312: online log 3 thread 1: '/u/app/oracle/oradata/orcl/redo03.log'

  • ICal not deleting old events

    When i upgraded to Leopard, iCal stopped deleting old events. I have it set to delete events older than 30 days, and it's not doing it. Does anyone know how to solve this problem?
    Message was edited by: auitto

    It's a bug, it didn't work for me in Tiger either. I have the preference set to delete To Do items one day after they are completed. It rarely does. Sometimes it will work, and then it won't. It's flakey.

  • Backup disk is full ... Time Machine not deleting old backups

    In my Time Machine preferences it says "The older backups are deleted when your disk becomes full." Well ... my disk is full but Time Machine is not deleting its old backups to make more room.
    So now TM is failing to backup.
    Any suggestions for freeing up some disk space and getting back to getting backed up?
    Thanks.
    Ramone

    ramonekalsaw wrote:
    In my Time Machine preferences it says "The older backups are deleted when your disk becomes full." Well ... my disk is full but Time Machine is not deleting its old backups to make more room.
    So now TM is failing to backup.
    What message does it send? See #C2 in [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html] (or use the link in *User Tips* at the top of this forum).
    It will show you how to locate the message(s) that describe the problem, then help you fix it. If that doesn't help, post back with details, including all the messages, your setup (especially the destination for the backups), what you've done, and the results.
    Any suggestions for freeing up some disk space and getting back to getting backed up?
    Do you have other data on the disk, in the same partition? If so, that's not a good idea, and may be the source of the problem. See #3 in [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html] (or use the link in *User Tips* at the top of this forum).

  • Time machine not deleting old backups...

    I am on Mavericks 10.9.1 and get the following error:
    "The backup disk needs48.93 GB for the backup but only 30.99 are available.  Select a larger backup disk or make the backup smalled by excluding files."
    I recently had to unplug my external HD which I use for time machine back-ups, this error started when I plugged it back in just a few days ago.  I have exlcuded some files from the back up and still get the error.  My internal HD has 475.62GB of data on it, and I am trying to back up to a 500GB external HD, the total size of my backup is roughly 465GB. 
    Seems like I should have enough space for a back-up and TM should delete the old back-ups.  I have been through a search of the forum and online and have not found a solution.  Has anyone ran into this?
    Thanks for the help!

    I believe I was told that If you had older backups like ML and your disk is getting full it will not delete these because you are now backing up a new OS (Mavericks).  It only deletes older backups of the same OS you are now using.

  • Time machine not deleting old backups of recovery partition

    I have a Mac Mini running Lion Server. I have an external disk partitioned with a space for network backups and a smaller partition for backing up the server itself. The server has a 160GB disk, it is only using 29.27GB, the partition for backing up the server is 152GB (it's what was left over after creating the partition for the network backups). I figured since I'm only using about 30GB, 152GB should be plenty of space. However after 3 months of use I get the error "the backup is too large for the backup disk". In the past I have formatted the partition and restarted the backups, however it always fills up after 3 months. This time I decided to dig into it a bit more. I looked to see what was available in my backup, it only has one previous restore point. I browsed the disk and opened the backups.backupdb folder, checked the size of the folder with the computer name, it is only 9.44GB. I was wondering where all of the space went so I enabled hidden files, I found the .RecoverySets folder and found it was taking up 141.95GB. I looked at the recovery sets, there are 295 copies of com.apple.recovery.boot which all seem to contain the following files:
    .disk_label                         749b
    BaseSystem.chunklist       2KB
    BaseSystem.dmg              454.6MB
    boot.efi                              864KB
    com.apple.Boot.plist          431b
    kernelcache                       24.1MB
    PlatformSupport.plist         2KB
    SystemVersion.plist           478b
    Of those files, the only file not dated Aug 11, Oct 6 or 12, 2011 is com.apple.Boot.plist which has a date that corresponds to when the backup was performed. These backups go all the way back to Jan 30, the last time I formatted the partition, but the user data backups only go back to the 27th and it hasn't been able to complete a backup since.
    I thought Time Machine was supposed to only backup data that had changed since the last backup, and delete old revisions when space is running low, it seems that it is copying more than just the data that changed since the last backup and only deleting old revisions of user data, not system data. Is there a way to fix this permanently?

    See C18 in the first linked article. Also, your backup drive should be 2-4 times your hard drive capacity.
    Time Machine Troubleshooting
    Time Machine Troubleshooting Problems

  • Time Machine not deleting old back ups?

    I keep getting the error
    "This backup is too large for the backup volume. The backup requires...."
    I use the same 500GB volume for backups all day, every day. I thought the program was supposed to automatically delete old back ups to make room? I do not see any additional settings to confirm this but if you manually delete back up files, it really kind of screws things up. I see back ups that are 4-6 weeks old on the back up volume so there are plenty it could delete. Has anyone else seen this and how do you resolve this problem?
    TIA

    mqcarpenter wrote:
    I keep getting the error
    "This backup is too large for the backup volume. The backup requires...."
    I use the same 500GB volume for backups all day, every day. I thought the program was supposed to automatically delete old back ups to make room? I do not see any additional settings to confirm this but if you manually delete back up files, it really kind of screws things up.
    Do you mean via the Finder? If so, yes, it does.
    If you have deleted any this way, do the following:
    1. Turn TM Off.
    2. Use Disk Utility (in your Applications/Utilities folder) to do a +Repair Disk+ (not permissions) on your TM drive. If it finds errors that it can't fix, try again until it does or you get the exact same results. If they can't be fixed, stop here and post back with the results.
    Download the +Time Machine Buddy+ widget from: http://www.apple.com/downloads/dashboard/status/timemachinebuddy.html. It shows the messages from your logs for one TM backup run at a time, in a small window. Copy and post the messages here (be sure to get them all, as sometimes they overflow the small window).
    Also, is there other data on your TM drive? If so, is it in the same partition as TM's backups?

  • OS X 10.7  Time Machine not deleting old backups to make space

    after upgrading to 10.7, Time Machine no longer deletes old (over a year old) backups to make space when needed.  Drive now full.  Cannot manually delete and Time Machine does not seem to have a function to perform a deletion.

    See C18 in the first linked article. Also, your backup drive should be 2-4 times your hard drive capacity.
    Time Machine Troubleshooting
    Time Machine Troubleshooting Problems

  • Time capsule not deleting old backups

    My time capsule is no longer backing up due to lack of space.  How can I get it to delete old backsups?

    If you upgrade installed the OS, Mavericks.. then the TM seems to lose the ability to delete old backups..
    Step in and do in manually.
    See Q12 here.
    http://pondini.org/TM/FAQ.html

Maybe you are looking for

  • Render at a Specific Time Every Day

    Is there a way to have a specific Final Cut Pro project to render automatically at a specific time every day? I work at a CG house, and shots are updated at random intervals, but are always in a fixed, specific location. So by rendering out the proje

  • Linear image but not Raw

    Hi Guys, I think this is quite a simple question, but I'd like to check with you, since you are the experts. I have an image that was generated by a bit of software, a simple program. The program knows nothing about colour profiles sRGB or otherwise.

  • 2600 classic battery live

    Hi, I just bought a 2600 classic. The battery live should be max. 560 hours, but after 4 days I have to recharge. What can be the reason? **mail address deleted by moderator - please use PM system only** Message Edited by romanov on 06-Jan-2009 06:55

  • Something is wrong with sleep

    I hope someone can help me decipher this code. i installed "safe sleep once"  and removed it. but it screwed up something. Now MBP goes to deep sleep and when it wakes up it cashes. Interval Since Last Panic Report:  259845 sec Panics Since Last Repo

  • Problems downloading Flash Player 11

    Over the past week+, I have received a message stating that I needed to download Flash Player 11. Several attempts were "successful," but I still keep receiving the message that I need to download. Also, on some attempts, I am told that Internet Expl