Old backup files still lying around on disk

My retention policy is configured to 7 days. I've already cleaned all obsolete files and expired files. However there are still a lot of files on the disk dating all the way back to Aug 27 (today is Sept 12).
What can I do to have RMAN show me these files so that I can remove them. Judging by their size I think they are backups of archivelogs.
Don.

Parameters:
RMAN> show all;
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 4 BACKUP TYPE TO COMPRESSED BACKUPSET;
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   '/rman/%U';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u00/app/oracle/product/10.2.0/db_1/dbs/snapcf_xcede.f'; # defaultScript:
RUN {
    BACKUP
        INCREMENTAL LEVEL 0 FILESPERSET 1
        DATABASE
        TAG = 'weekly_level0_database'
        PLUS ARCHIVELOG DELETE INPUT;
}On weekdays I do a LEVEL 1 with a tag of 'daily_level1_database'

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...".

  • How to remove old backup files from time machine? Lion OSx

    Hi everyone,
    I am just wondering how to efficiently and safely remove the old backup files from time machine? I tried once with command, but it damaged my extra-disk... Does Lion OSx have fixed that?
    Many thanks
    Hong

    Blue-
    Time Machine will automatically delete back-ups as the need for space arises. If you want to delete a certain file (application, document, whatever) and have it gone for good you can do that as well.
    The best place on the web for information about Time Machine is...
    http://pondini.org/TM/Home.html
    ...it covers everything!
    Clinton

  • How do I stop a copy of backup files? Time Machine filled my extern HD, I bought a 2TB, drag and drop the old backup files and now my iMac has been stuck in "preparing copy" mode all night.

    My 235 MB external HD was full, I bought a new 2TB and dragged and dropped the old backup files to it. Now my iMac is frozen in "preparing copy" mode.  How can I 'unfreeze' it? How should I move the backup files from one external HD to the other?

    This has been answered here so may times (especially by pondini, e.g. in this thread Time Machine stuck in repeating "preparing files" cycle), so please search this forum the next time before asking such a question.

  • Are old backup files saved or deleted in iTunes

    I had to restore my Iphone back to factory. The backup file I created was too big to restore and the Verizon tech (who I foolishly let take over my computer) backed up the empty phone over the old backup file. I found a program to restore the original backup data, but it's been overwritten by the recent backup. Does iTunes delete the the old backup files or store them in a different folder?

    iTunes only keeps one normal backup, per iOS device. As you've found out, its an incremental backup in that data that has changed or deleted is added or removed from the backup. Unless you backup your computer, your data is gone.

  • Can you remove Old Backup files from Time Machine sooner?

    So I'm aware that the default settings state that Time Machine will start to delete old backup files from your saved destination once that destination starts to approach full storage capacity. But what if you are not looking to fill up most of your storage capacity with Time Machine backups? Is there a way where you can cut the delete threshold in half and have Time Machine delete old backup files sooner rather than later?

    See Pondini's TM FAQs, for starters.

  • Why are my RMAN backup files still around?

    Environment:
    Oracle 11.2.0.3 EE on Solaris 64-bit
    Good Morning (at least it's morning here at the moment),
    I have a test database that I currently have set up to do an Incremental Level 0 backup every morning at about 03:00.
    I also do an 'archivelog backup all' every 4 hours during the day.
    My archivelog deletion policy is 'backed up 2 times'.
    I have RMAN set up with a recovery window of 8 days (SHOW ALL - seen below).
    I have several RMAN files dated 11 days ago.
    Question: Why are these files still around?
    RMAN> show all;
    using target database control file instead of recovery catalog
    RMAN configuration parameters for database with db_unique_name APSMDMP2 are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 8 DAYS;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F';
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 3;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE CHANNEL DEVICE TYPE DISK MAXPIECESIZE 5 G;
    CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT   '/rman/APSMDMP2/APSMDMP2_%T_%t_%s_%p';
    CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT   '/rman/APSMDMP2/APSMDMP2_%T_%t_%s_%p';
    CONFIGURE CHANNEL 3 DEVICE TYPE DISK FORMAT   '/rman/APSMDMP2/APSMDMP2_%T_%t_%s_%p';
    CONFIGURE MAXSETSIZE TO UNLIMITED;
    CONFIGURE ENCRYPTION FOR DATABASE OFF;
    CONFIGURE ENCRYPTION ALGORITHM 'AES128';
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE;
    CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 2 TIMES TO DISK;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11203/db_1/dbs/snapcf_APSMDMP2.f';I do have several entries in V$ARCHIVED_LOG with a BACKUP_COUNT = 1 but they are all dated 21 days ago and have a DELETED status as seen here:
    SEQUENCE# ARC APPLIED   DEL S CTIME                         BACKUP_COUNT
          4625 YES NO        YES D 09-oct-2012 13:21:09                     1
          4626 YES NO        YES D 09-oct-2012 13:21:48                     1
          4627 YES NO        YES D 09-oct-2012 13:22:23                     1
          4628 YES NO        YES D 09-oct-2012 13:22:50                     1I am able to see the contents of the RMAN files but I don't see anything that would cause them not to be deleted during the RMAN runs. Here is an example of one of the files:
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    6493    Incr 0  22.75G     DISK        01:35:54     2012-10-19:04:36:13
            BP Key: 6493   Status: AVAILABLE  Compressed: YES  Tag: FULL_DAILY
            Piece Name: /rman/APSMDMP2/APSMDMP2_20121019_797050819_6508_1
      List of Datafiles in backup set 6493
      File LV Type Ckp SCN    Ckp Time            Name
      2    0  Incr 564035766  2012-10-19:03:00:19 /u05/oradata/APSMDMP2/sysaux01.dbf
      4    0  Incr 564035766  2012-10-19:03:00:19 /u05/oradata/APSMDMP2/users01.dbf
      5    0  Incr 564035766  2012-10-19:03:00:19 /u01/oradata/APSMDMP2/data_process_dt01_01.dbf
      9    0  Incr 564035766  2012-10-19:03:00:19 /u05/oradata/APSMDMP2/gmx_src_dt01_01.dbf
      10   0  Incr 564035766  2012-10-19:03:00:19 /u05/oradata/APSMDMP2/gmx_src_ix01_01.dbf
      12   0  Incr 564035766  2012-10-19:03:00:19 /u05/oradata/APSMDMP2/adm_data_ix01_01.dbf
      13   0  Incr 564035766  2012-10-19:03:00:19 /u05/oradata/APSMDMP2/patrol01_01.dbf
      16   0  Incr 564035766  2012-10-19:03:00:19 /u07/oradata/APSMDMP2/becosp_base_data_01.dbf
      18   0  Incr 564035766  2012-10-19:03:00:19 /u07/oradata/APSMDMP2/becosp_base_data_02.dbf
      27   0  Incr 564035766  2012-10-19:03:00:19 /u06/oradata/APSMDMP2/data_process_dt01_03.dbf
      30   0  Incr 564035766  2012-10-19:03:00:19 /u05/oradata/APSMDMP2/adm_data_dt01_02.dbfI do use the 'DELETE NOPROMPT OBSOLETE' after each database and archivelog backup. Here is my Incremental Level 0 command file:
    backup incremental level 0 cumulative database tag 'full_db';
    backup archivelog all not backed up 2 times tag 'full_arch';
    DELETE NOPROMPT OBSOLETE;I know I can remove the files manually and resync everything with a CROSSCHECK but I was trying to figure out why it happened in the first place.
    Any suggestions are most welcome.
    Please let me know if more information is needed.
    Thanks very much!!
    -gary

    garywicke wrote:
    Michael,
    I read Ed's thread and I understand about the timing of the Full (Incr Lvl 0) and the incrementals.
    In my case I'm not doing any incrementals (Incr Lvl 1) of the database, just Incr Lvl 0 every day. I do the archivelog backups during the day to keep the /arch mount point under control.
    So, if I have Incremental Level 0 backups on the 19th, 20th, 21st, 22nd, ..... With an 8 day recovery window I shouldn't need the ones from the 19th or 20th at a minimum and possibly the 21st depending on when the math is done. Right?
    Am I missing something?
    *************** NEWS FLASH ******************
    Whoops!!! Egg on my face! I just checked back in my email logs of the backups and now recall there were some disk space issues around that time that caused the backups to fail and it just so happens that the backups on the 20th, 21st and 22nd all failed.
    I should learn to trust RMAN more. It is obviously smarter than me!! :-)
    Sorry for the red flags. I'll do my homework more completely next time.
    Not a problem. We've all been there, done that.
    I can't tell you how many times I've been stuck on something, run out of ideas on my own research and thrown a question to the forum, and no sooner to I hit the 'send' button that a light goes on and I quickly get my own answer.
    At least I understand the recovery window scenario better.
    Thanks very much for the help and I'll see you the next time.
    Have a great day!
    -gary

  • Transferring Old Backups to a New Time Machine Disk

    I just bought a nice new big external HD and was wondering if it was possible to keep all my old backups from the smaller disk before (granted the oldest ones are long gone as I ran out of room). When I try directly copying the dated files from one backup folder to the new one, the copy keeps preparing endlessly, never actually moving the files. Help anyone?

    The answer is sort of Yes and No depending on what you really want to do.
    If you want to simply make a physical copy of the old backups to the Time Capsule you should be able to simply Copy/Drag-n-Drop the files to the Time Capsule disk.
    However, the form of Time Machines backups are different between the locally attached drives and the Time Capsule drive. On a locally attached drive Time machine places the backups in a folder named Backups.backupd. On the Time Capsule the backups (the Backups.backupd folder) is encapsulated "inside" something called a sparse bundle.
    Because of this, I don't think Time machine will recognize the old backups as valid backups, if they are simply copied to the Time Capsule disk.
    Perhaps if you could a little more precise of what you wish to accomplish we could give a better targeted answer.

  • Reset my Timecapsule, my old backups are still there but Time Machine says last backup was never

    Ive been using my Time capsule as a router for 5 months and recently moved were I had a router supplied. I plugged my wireless modem into the Timecap and still used my home network. I recently decided to not use the Timecap for a router but just as a backup. I was having connectivity issues so I pressed the reset butting for 5seconds and reset it. When I look inside the drive I can see my old backups, but in Time machine it says my last backup was never.. Id like to get it back to were I can just auto backup and I have the history of the last 5 months. Please help

    Pondini,
    Thanks for your response. I selected the tc via select disk in the preferences window. It did a countdown of two minuites. After that a window popped up and said thus.
    Time Machine completed a verification of your backups. To improve reliability, Time Machine must create a new backup for you.
    Click Start New Backup to create a new backup. This will remove your existing backup history. This could take several hours.
    And gives me two options Back up later - Start new backup
    Is there anyway to keep my old backups. (naming the drive differently, anything?)
    Help is always appreciated.
    Thanks,

  • Can I get my contacts back from old backup files after restoring iphone?

    Hi,
    I've recently upgraded to windows 7. My iphone crashed recently and I have restored it. It is now working but all my contacts, apps etc are lost, I assume because I had never synced the iphone since I got win 7.
    Though I dont have my old XP computer anymore I do have got the old hard drive out of it, so I was able to go into it and copy the folder containing the backup (c:\documents and settings\USERNAME\application data\apple computer\mobile sync\backup\) so I have got the old backup but I don't know how to use it. The backup is a folder containing several .mddata and .mdinfo files.
    Just putting the backup into the equivilent folder in win7 doesn't work so can anyone help me to do one of the following:
    either - use the old back up to restore my iphone in windows 7
    or - if the above is impossible or very complicated does anyone know how to read the old back up? I really just want the contacts which I can enter manually if necessary so I its possible to extract the contacts as text from the mddata and mdinfo files that would be great.
    I'd be really grateful if anyone can help.

    A 3rd party utility called MobileSyncBrowser allows for extracting this data from your iPhone's backup.
    http://mobilesyncbrowser.com/
    I suggest you start syncing contacts with a supported application on your computer as is designed and intended.

  • Backups - Files still locked after beginarchive

    We are using Commvault to backup the files on our UNIX server. We have created a script to run before the backup starts. The script does this:
    DISABLELOGIN "appname";
    DISABLELOGIN "appname2";
    LOGOUTALLUSERS "Y";
    BEGINARCHIVE "appname" "dbname" "appname_Arch.lst";
    BEGINARCHIVE "appname2" "dbname2" "appname2_Arch.lst";
    The script runs fine, but when the backup are still hanging up on some files that are locked. We noticed some files have an "l" (lower case L) as one of the permissions, which means "mandatory locked", but not sure if that has anything to do with this issue. We would prefer to not have to shut Essbase completely down to take backups. Any suggestions?

    essmsh sample backup
    drop lock on system all;
    alter database $CurrApp.$CurrBase unlock all objects;
    alter application $CurrApp disable connects;
    alter system logout session on application $CurrApp force;
    export database $CurrApp.$CurrBase data to data_file "$CurrApp\$CurrBase\$CurrBase_export.txt" ;
    alter application $CurrApp unload database $CurrBase;
    xcopy $ArborPath\app\$CurrApp\$CurrBase\*.otl $BackupFolder\ess\$CurrApp\$CurrBase\*.* /Y /I;
    xcopy $ArborPath\app\$CurrApp\$CurrBase\*.rul $BackupFolder\ess\$CurrApp\$CurrBase\*.* /Y /I;
    xcopy $ArborPath\app\$CurrApp\$CurrBase\*.txt $BackupFolder\ess\$CurrApp\$CurrBase\*.* /Y /I;
    xcopy $ArborPath\app\$CurrApp\$CurrBase\*.csc $BackupFolder\ess\$CurrApp\$CurrBase\*.* /Y /I;
    xcopy $ArborPath\app\$CurrApp\$CurrBase\*.db $BackupFolder\ess\$CurrApp\$CurrBase\*.* /Y /I;
    xcopy $ArborPath\app\$CurrApp\$CurrBase\*.ind $BackupFolder\ess\$CurrApp\$CurrBase\*.* /Y /I;
    xcopy $ArborPath\app\$CurrApp\$CurrBase\*.pag $BackupFolder\ess\$CurrApp\$CurrBase\*.* /Y /I;
    xcopy $ArborPath\app\$CurrApp\$CurrBase\*.esm $BackupFolder\ess\$CurrApp\$CurrBase\*.* /Y /I;
    xcopy $ArborPath\app\$CurrApp\$CurrBase\*.tct $BackupFolder\ess\$CurrApp\$CurrBase\*.* /Y /I;
    alter database $CurrApp.$CurrBase force restructure;
    alter application $CurrApp disable connects;
    alter system logout session on database $CurrApp.$CurrBase;
    alter database $CurrApp.$CurrBase validate data to local logfile invalid_blocks;
    alter database $CurrApp.$CurrBase repair invalid_block_headers;
    ER

  • Unable to sync or backup my iPad2 with the new iTunes. I keep getting the error ""iTunes could not back up the iPad because the backup was corrupt or not compatible with the iPad.". I've deleted all the old backups but still get this.

    I'm totally frustrated by iTunes and don't know how to solve my problem. Like a lot of people on here I'm not able to sync or back up my iPad2 with my iTunes (version 10.4.1.10). I'm running Win 7 Ultimate 64 bit. My iTunes worked just fine until the 10.4.xx updates came out and since June I've not been able to back up or sync the iPad2.
    When I connect and try to sync I get the error message, “iTunes could not back up the iPad because the backup was corrupt or not compatible with the iPad.”
    I've deleted all the old backups so there are none on my system. I've deleted iTunes and re-installed the 64bit version several times but it has not made any difference. I've read and followed several suggestions on these boards about how to remove and reinstall everything but none have worked yet. I'm stumped here.

    I had the exact same thing with my shuffle - same error message saying that it was corrupt so I restored it (wiping everything in the process) and the same message came up as soon as it reloaded. Thank god I didn't try it with my iPod or iPhone first. So many issues with this new version of iTunes!!!!!!!!

  • Where to find old backup files and how to use it to restore

    Hi,
    Need help. I did a OS update to iOS 6 today.
    Before the update I did backup my phone on my PC.
    But since that backup there was a new back up that created automatically when I connected my phone back to the PC. Now with some issues I want to rollback to previous backup. But this backup file is not visible in the restore from backup list. Is there anyway I can manually find this file and try to restore from it.
    In the backup folder I can see a few files with previous backup time stamp but not sure how I can use these files and which file to use..
    Pls help.. Thanks.

    Open the Users folder on the internal drive, drag the migrated home folder to the desktop, and provide your administrator password.
    (77054)

  • Can't locate old backup files

    The date and time of back up is shown in the applicatoin but data not there.

    Mount the sparsebundle in finder and actually check through the backup dates and see if they are empty..
    If so this is what Mavericks did when you started using it .. it has this nasty habit of deleting everything in the old backup until you installed Mavericks.. like at that point you began living.. and all earlier times don't exist.

  • HT5925 deleting old backup files from icloud ?

    How can we view and delete backup files on icloud?

    You can do that e.g. on your iOS device in "Settings > iCloud > Storage & Backup > Manage Storage"
    or on your Mac: System Preferences > iCloud > Manage... .

Maybe you are looking for

  • Adding a goemetry object in an already started applet, behvior ?

    Hello there, I would like to add a geometric form (cube, box, cone etc..) in an already started applet. I think creating a specific behavior would be the most appropriate. Has anybody done this kind of thing before ? Many thanks. Gwena�l

  • PERFORM_TOO_MANY_PARAMETERS

    We recently implemented the latest support stacks for SAP ERP 4.7. We are getting the following runtime message for transactions: FB50, FB60, TBB1, MIRO. We need help. Thanks. Runtime Error          PERFORM_TOO_MANY_PARAMETERS Exception             

  • Data Type Enhancement not visible in SPROXY

    Hi All, We are implementing SRM 7.0 with PI 7.1. We have a reuiquirement of adding custom fields in the standard message DespatchedDeliveryNotification_Out which is sent from SRM SUS. I have created the data type enhancement in the ESR in the namespa

  • My bookmarks bar and toolbar do not drop down when Safari is in full-screen mode.

    I just updated to Safari 5.1.5 this morning as well as OS 10.7.3 and when in full-screen mode, the bookmarks bar as well as the toolbar will not drop down.  Once I escape then I can see them fine.  I'm also having issues with dragging or dropping ANY

  • Orbit sound dock not displaying as bluetooth device

    Hi, I have purchased an orbit sounddock which has bluetooth enabled. My iphone displays it when I connect via bluetooth and plys music with no isues. However, my new macbook pro doesn't display it as a device to pair. No issue with seeing my magic mo