When is delete all obsolete backups triggered in Oracle 11g DB

I have a query as to when delete all obsolete backups triggered in Oracle 11g DB. We changed the RMAN retention policy to 10 days from 14 days in our setup. Is it triggered manually by delete all obsolete from Availablity->Manage Current Backups in OEM or is it triggered automatically every time RMAN backup is done?
I hope, my question is clear.
Please revert with the reply to my query.
Regards

975148 wrote:
I have a query as to when delete all obsolete backups triggered in Oracle 11g DB. We changed the RMAN retention policy to 10 days from 14 days in our setup. Is it triggered manually by delete all obsolete from Availablity->Manage Current Backups in OEM or is it triggered automatically every time RMAN backup is done?
I hope, my question is clear.
Please revert with the reply to my query.
Regards
First, I would never manage my backups in OEM.  When the crunch comes at 2:00 am, I don't want ever more moving parts to be involved in recovery.
Second, the only thing approaching a "triggering" of deletion of backups is if your backups are in the FRA ... rman will, at the time of making a backup .. attempt to delete obsolete backups if necessary to free up space in the FRA.
Other than that, oboslete backups are only deleted in response to a direct DELETE OBSOLETE command.  This command may optionally ( as shown by TigerDBA) include a run-time obsolesence rule, or it may depend on the standing configuration.
Another thing to note is that backups are NOT marked as obsolete.  They are EVALUATED for obsolescence in response to a DELETE OBSOLETE or REPORT OBSOLETE command.
And one final thing to not is that all recovery must begin with a full backup.  That would be the most recent full (or level 0 incremental) backup prior to the point in time to which you need to recover.  That means the most recent full (or level 0 incremental) backup will never be considered obsolete, regardless of how old it is.

Similar Messages

  • OMG... Time machine deleted ALL the backups, even latest..

    Hey All...
    I have just experienced a nightmare.  If anyone can help I would be in your debt.
    Here we go...
    I was trying to move the backup of old computer ( partition A ) to a new partition ( B ) on same ext. hard drive.   Not enough space in partition b so I looked into deleting some old backups before copying A to B using restore in disc utility.
    Inside time machine I was using the cog thing to select delete backup... selected the oldest backup, thinking this would delete only the oldest backup. 
    It deleted ALL the backups on A, including the latest. 
    This had work files on it that are important so it's a bit of a disaster.  I have had a great backup stradegy for the last 15 years and have NEVER before lost anything.  Here is my details...
    Macbook Pro 2.2 GHz
    10.7.5
    External drive 4 partitions
    Partition A was backed up using 10.6
    From a G5 which I deleted the files from.
    I am hoping the files could be recovred from either the G5 or the hard drive or my trash on the macbook pro?
    I have and will not do too much on my computer like disc utility stuff or empty trash etc.
    It's a long shot, but anyone have any ideas..? 
    Thanks in advance..

    The...........Haggis wrote:
    Thanks for your prompt reply Pondini,
    I could have selected all in error but I am sure I didn't.  I guess I must have.. grrr.
    I cannot see any when I enter time machine.
    Ok.  It's just that I've never heard of it erasing more than what was selected.     
    It's possible something went wrong, and at least some of the other backups are still there. Especially if no other changes have been made to the TM drive, you might try running Repair Disk on it with Disk Utility.  Unlikely to help, but it's worth a try.
    The G5. I erased the drive using disk utility and haven't used it since.  There is 2 drives on that machine, the drive we are talking about is not bootable it's just storage.
    Since you already have it, you might want to try running the File Salvage app on it (you'll probably need another HD, or at least partition, to receive whatever it finds).   The results might be more usable than the results from the TM drive, since they're "ordinary" files and folders, not all the "hard links" Time Machine uses.
    EDIT: 
    I had the ext drive hanging off my Mac Book pro 10.7.  Ext drive had TM backups of 2 laptops and G5.
    Hold on a minute -- how were all those backups made -- by connecting the drive directly to each Mac, or were any made over a network (wired or wireless)?  Are they / were they all in the same partition, or separate ones?
    Message was edited by: Pondini

  • Time Machine asked to delete all my backups

    Periodically, time machine tells me it's going to delete all my backups and create a new one. There is no way out of it. All I can say is "OK". But I'm wondering "Why?". Why is it doing that? Months of backup are gone with a single click.
    When my backup drive gets full, it warns me that it is going to delete my oldest backups. That's okay. That's expected. But twice now it has told me that it is going to delete my entire backup set and start over. Why? Is there anything I can do to prevent this from happening.
    Time machine has worked well for me for years. But suddenly, it's kind of useless.

    Start with C13 in the 1st linked article.
    Time Machine Troubleshooting
    Time Machine Troubleshooting Problems

  • Lion deleted all my backups !

    Hi,
    after insalling Lion (10.7.3), it made a backup on time machine (approx 20 GB) and all went fine.
    Next backup, I noticed the message "deleting old backups" (or something like this). I though it was just some clean up after the installation... taking too much actually, a bit suspicious...
    So I was *horrified* when I discovered that Lion was actually deleting ALL previous backups, (say a couple of years history).
    I stopped in in time do save just the last month
    I am incredibly disappointed !  Why in the world that could happen ???  Now I lost all my hystory.
    The only option I have is to try some disk recovery option, but I am sure that even if I find the old file it could be impossible to restore them in the time machine backups history, which I understand is rather complex and impossible to fix "by hand" , isn't it ?
    Anyone has had such dramatic experience? Any hint on how I can solve it ?
    --Claudio
    PS. the whole story is:
    installed 10.7.2
    time machine backup OK
    migrated form mobile me to icluod (apparently ok)
    icloud not present on preferences pane (mistery)
    update to 10.7.3 --> installation stuck and MBP lost
    recovered 10.7.2 from time machine
    update to 10.7.3, this time OK (with icloud preference pane correctly in his place)
    time machie gone crazy

    That would explain the behavior, but I am afraid it does not convince me too much.
    I do not remember exactly how much disk space was left, but probably not much enough to contain a whole snapshot but surely far from "nearly full" (roughly, say 150 GB free on TM disk, and 200 of data in the MBP disk?)
    So, removing SOME of the earliest backups would have left enough space... not ALL of them
    Anyway, (assuming this is the expalnation) I would have apreciated being asked for an authorization, or at least a warning message (something like http://pondini.org/TM/C4.html, but before deleting !)
    Well thank you all for your comments, I guess I'll just have to live with it
    One last thought: any hope to recover old backups and copy them to a backup backup-disk?
    --Claudio

  • HT3275 My Time Machine deletes ALL previous backups

    Every so often, Time Machine deletes ALL previous backups and starts over from scratch. It has done this several times in the last year.  I have not changed any hardware or the name of the computer. Why is this happening?  Makes me very concerned that I now have NO backups while it chugs away rebuilding a 210 GB backup. 
    Just got an error message:
    Time Machine couldn’t complete the backup. Time machine could not delete the backup disk image "/Volumes/Joe's iMac.purgeable"
    HELP!
    iMac 27: 8GB, 2.9 GHz Intel Core I5
    OS X Yosemite 10.10.1
    Backup volume is Western Digital MyBookLiveDuo with 2TB and 1.8TB available

    Hi Joe,
    Have you Repaired both drives first, then Repaired Permissions on both?
    Have you looked through Pondini's extensive TM help site?
    http://Pondini.org/TM/FAQ.html
    http://pondini.org/TM/Troubleshooting.html
    Can't imagine something not being covered there.

  • Hello , I have befor IDVD but when I Delet all system I Buy nye I Movie , I Photo but i don`t have Idvd like befor where i can dowload ? Pleas help me

    Hello , I have befor IDVD but when I Delet all system I Buy nye I Movie , I Photo but i don`t have Idvd like befor where i can dowload ? Pleas help me

    sergiyMSI wrote:
    My Mac came with iLife08 , this is been install to  my Mac in the shop
    in the box your Mac delivered with were TWO grey DVDs... these are the 'reinstaller disk' every Mac is sold with.
    one contains the pre-installed software, make a 'custom install' to install ONLY iDVD ... -

  • In settings on my ipad, about iMessages still shows 1,5 GB when I deleted all messages. It still 1,5GB

    In settings on my ipad, about iMessages still shows 1,5 GB when I deleted all messages. It still 1,5GB

    Excusses. I didn't know that You aren't from apple inc. I appologize! I am sorry. Forgive me, please!
    But this is not the first problem of apple. Today I bought an album with the booklet 15 f...... Euros. Music is there but digital booklet isn't! On iTunes before I bought, was an information booklet only with full album... That's a lie!!!!!
    Anyway thank You very much for help. The problem isn't solved yet.

  • TS3989 My problem is that the photos won't load up in My Photo Stream. Something is wrong with my account (Apple ID). Because when I tried it with another account, it worked fine. This problem began when I deleted all the photos on My Photo Stream.

    I once deleted all the photos on My Photo Stream, since then, it won't upload photos anymore.
    If I share a stream, it works fine. But still, no photos on My Photo Stream.
    I just tried another Apple ID on my iPhone and it worked nicely. So, I guess something went wrong when I deleted all the photos.
    Can someone please help?
    Many thanks.

    This one was quick.
    I deleted my Apple ID.
    Tried a new Apple ID for it.
    Deleted the newly created Apple ID which I had just created as a test.
    Entered again my main Apple ID and... voilá.
    It works again.

  • When I delete all my contact from iCloud, How I can restore them?

    when I delete all my contact from iCloud, How I can restore them?

    Welcome to the Apple Community.
    To restore from a back up made through iTunes, follow these instructions.
    To restore from a back up made through iCloud, try the following:
    The difficulty in restoring iCloud data from a back up is that the back up is older than the current version on iCloud and anything that is restored gets removed again when an iCloud sync occurs.
    Ensure the device is connected to your local network.
    Start the restore from iCloud back up.
    Allow the devices settings to restore (watch for the confirmation of completion).
    As the apps begin to restore pull the connection to your router WAN port (the one that goes to the telephone point).
    Wait for the time out confirmation.
    Navigate to settings > iCloud and turn off contact syncing (keep contacts when prompted).
    Reconnect the router to the internet and let the restore process complete.
    Delete any iCloud contacts from iCloud.com on a computer.
    Navigate to settings > iCloud and turn on contact syncing (merge contacts when prompted).
    May I suggest that you carry out a back up to iTunes before you try anything, that way should things become even worse, you can at least restore back to where you are now.

  • What is deleted when I delete my iCloud backup?

    What will I lose when I delete my iCloud backup?  Pictures? Notes?

    You'll lose that backup file but nothing that's on the device.
    Just make a new backup after deleting the old one.

  • How to take a backup manually in oracle 11g express edition?

    how to take a backup manually in oracle 11g express edition? i want to take backup of a database and want to restore later on on a different computer .

    Stop database, and copy all files to another machine.That sounds to me to be the closest answer to the question posted. And perhaps the easiest solution.
    Install XE on the "another machine", shut it down. Shutdown the source database. Copy the datafiles to the new host. Startup your "new" database, it will be an exact clone of the original.
    To find out what files need to be copied, as system (or sysdba) run:
    select name from v$datafile;
    ... file1, file2 ...
    show parameter control
    ... control_files ... file1 ...
    alter database backup controlfile to trace [reset logs];
    show parameter diag;
    ... diagnostic_dest ... <drive:>|/diag_pathTo do a proper database clone its better to recreate the controlfile and reset the archive sequence number- leave out the controlfile copy part. In the diag_path location find the trace file under diag/rdbms/$ORACLE_SID/<db_name>/trace it should be the latest ora*.trc file.
    The trace file has the commands to recreate the controlfile, which includes the datafiles and putting the tempfile back in place. If the datafiles are in a different location, i.e. in Windows going to a different drive, or you want do put datafiles in a different folder location, the create controlfile statement is the easiest time to get the file directories right.
    If you add the "reset logs" qualifier (don't use the brackets!) you'll get just the reset logs version of the create controlfile statement, otherwise you'll get both NORESETLOGS and RESETLOGS versions of a create controlfile statement, run one or the other. Not both. Not the entire trace file, just the create controlfile, alter database open [reset logs], alter tablespace temp add tempfile ... bits. No recovery is needed for a database that is shutdown when datafiles get copied to a new location/host.

  • How to list all obsolete backuped archivelog

    today I backup the whole database(this is the
    first time I backup the database) with command
    " backup database",and alse backup all
    archivelog,and the oldest archivelog is three days
    ago,and after the backup,I want to report obsolete
    backup,but using
    "report obsolete until time 'SYSDATE-1'"
    command get a output of nothing,and IMO because I
    backup the whole database,at least the archivelogs
    before yesterday are not usefull for restore,and
    it should be obsolete.When I read rman reference,it
    sames that obsolete only apply to datafile,but no
    archivedlog.

    You are right, in the 8i doc, it contains an "until" clause and does not list obsolete archive logs.
    http://download-uk.oracle.com/docs/cd/A87860_01/doc/server.817/a76990/rmansy35.htm#23596
    You should then try to write your own script in sqlplus.
    Example, which delete all backups of archive logs older then yesterday.
    $ sqlplus rman/rman@RMANREP
    SQL> select db_name, max(THREAD#), max(SEQUENCE#) from rc_backup_redolog where completion_time < sysdate-1 group by db_name;
    DB_NAME  MAX(THREAD#) MAX(SEQUENCE#)
    PROD                1            133
    $ rman sys/change_on_install@PROD rman/rman@RMANREP
    RMAN> delete noprompt archivelog until sequence 133 thread 1;

  • Time Machine : Deleting all local backups of one of several computers leaves files behind

    Hi,
    I'm in the process of transitioning my Time Machine setup. For the moment, I have a local Time Machine volume backing up three Macs to the same Backups.bakupdb folder (I had set that up two years ago before reading Pondini's Time Machine FAQ).
    Basically what I want to achieve is have a partition per computer that I'm backing up. So what I did was I partitioned a second external drive into 3 partitions, and I copied my TM partition to each of these 3 temporary partitions. I did that using Disk Utility's Restore tab. My plan was then to delete the backups of two computers off each temporary partition (per question 12 of Pondini's FAQ), to get 1 computer per partition on the temporary drive, then partition my main external drive in 3 and copy back each temporary partition to the main drive.
    (The second external drive is lent, I can't just switch to using it.)
    From what I read on question 12 of Pondini's FAQ and this reply by Pondini to a similar thread, I thought that deleting all backups of one computer via the Time Machine interface would leave me with an empty folder for that computer under Backups.backupdb, and that I could just delete this folder via the Finder. This is * not * what happened.
    After all backups for the first computer I wanted to delete off the first temporary partition are deleted, the folder for this Mac is not empty ; it still contains all the 15 dates folder of the individual backups. What's more, these date folders aren't empty either. The first 12 of them I deleted (the most recent ones) each contains a Macintosh HD folder, under which remains a System/Library/CoreServices hierarchy. The (locked) boot.efi file is alone in the CoreServices folder. The last 3 dates I deleted (the oldest backups), however, still contain an even bigger hierarchy. Applications, Library, System and Users exists in all three, with a lot of subfolders and lots of files, totalizing around 2 GB of data. Most of the files are locked, even logged into root (very diverse files : plists, dylibs, rtf files, fonts, etc) but some are not (apps, and other diverse files : colorsync profiles, dashboard widgets, bundles...). Seems like Time Machine could not delete everything. (Why ?)
    Note that I deleted the backups for one computer using that same computer, first using an Admin account for the first 3 or 4 dates and then using the root account to avoid having to always authenticate. (I didn't think it would create a problem... maybe it has?)
    When I go back into Time Machine for this computer, no backups remains. It's like if Time Machine doesn't see the data that it could't delete... This is all very strange.
    My question is : can I delete these leftover files and folders bia the Finder without fear it's going to break the backups for the other computers on the same partition ? If not, what should I do ?
    Sorry for the long post, but I hope I was clear...

    Phil_6379 wrote:
    After all backups for the first computer I wanted to delete off the first temporary partition are deleted, the folder for this Mac is not empty ; it still contains all the 15 dates folder of the individual backups.
    It shouldn't; when you delete a backup, the date-stamped backup folder and all it's contents should be deleted.
    Most likely, there was some sort of corruption, either on the original or the copies, that left some pieces.  On occasion, that will happen even when Time Machine is doing it's normal "thinning:" there will be a message in the log about finding a "partially-deleted" backup, and trying again.  Sometimes the second try will do it, sometimes not.  In that case, you might be able to delete it after running Repair Disk;  if not, sometimes you can delete it via the Finder.
    Under Lion only, deleting backups via the Finder is supported by Apple;  you'll get a message about how it can't be undone.  But it doesn't always work, so is recommended only as a last resort.  Holding the Option key while deleting may help with the locked files.
    If you can't get rid of the detritus, however, I'd recommend erasing the affected partition(s) and starting over.  I'd not continue backing-up to a set of suspect backups -- the way they're all linked together, there's just no telling whether you could do a full system restore successfully.
    In addition, as Linc says, even if you have some things off-site, I'd strongly recommend getting another external HD for "secondary" onsite backups.  Externals are getting much less expensive all the time, and if there's a problem with the old one (either the drive itself or the backups on it), you'll be in a large pickle.  Plus, of course, drives don't last forever.  See #27 in Time Machine - Frequently Asked Questions for some suggestions.

  • Time Machine deleted all my backups after upgrading to Yosemite!!!! Help!!!!

    Hi all! I'm in deep, deep trouble!! I was on Lion, and had all my backups on an external hard drive done by the Time Machine.
    So after I did a clean install to upgrading to Yosemite. So I was left with my Imac with nothing on it, Yosemite, and the applications that I've been installing manually.
    However, Time Machine starting backing again my Imac with Yosemite, and decided to delete ALL BACKUPS of when I was with Lion!!!
    Now I'm only have my new Backups(3 days old), and ALL MY WORK IS GONE!! (About 1TB of precised organised info!!!)
    I tried a software called Data Recovery and whilst is recovering only a 50% of all deleted data after a scanning, now its retrieving that info with new names i.e. 0001,0002,0003 and organising depending on name of extension i.e: PDF,JPEG...therefore becoming totally useless as it will take literally YEARS to put it back the way it was.
    Please HELP, I don't know what to do!!!
    My profesional life is depending on it!!
    iMac, OS X Yosemite (10.10)

    Hi there The Zach,
    I would recommend taking a look at the troubleshooting steps for Time Machine backup issues found in the article below. 
    Time Machine: Troubleshooting backup issues
    -Griff W.

  • Time machine deleted all my backups instead of the one selected

    I have a one year old Macbook Pro with 16 GB of RAM, running OSX v10.9.5 (Mavericks).  I use a LaCie 2TB external hard drive for my time machine backups, and I needed to delete some of the old TM backups to make space.
    Following the instructions at pontini.org (http://pondini.org/TM/12.html ), I opened TM, navigated to the external HD and selected the oldest folder in backups.backupdb, right clicked it and selected 'Delete all backups in [the oldest folder's name]'.  Then I went home for the weekend, and when I got in this morning, Voila!  ALL files in the backups.backupdb folder were gone!  Not only that, but there was nothing in the trash to restore!
    Has anyone else had this wonderful experience?
    Thanks,
    Casey

    Wow -- thanks for all the comments, folks, I must have struck a nerve!  I'll try to respond to all of them here, in sequence:
    John Galt: I loved your comment about "no user serviceable parts inside"!  It was echoed by etresoft, too, later in the chain; sounds like good advice if this ever happens again.  You mentioned that Yosemite incorporated a lot of changes to TM, but I'm not using Yosemite (have been avoiding this upgrade, as it sounds too buggy).  But apparently your advice holds with Mavericks, too. 
    Etresoft (3:17am): very good point -- I think that's exactly what I did.  What I'm still not clear on is: are the backup files themselves (ie the actual data being backed up, as opposed to hard links) stored in the backup folder that TM creates, or are they kept in a separate file or folder?  It sounds like it's the former, as I had originally thought.  But pondini led me to believe that, if the data WAS stored in the folder, it would not be deleted if there were any links to it in future backup folders.  From what you said, I'm thinking that's probably true IF you are dealing with a backup that's INSIDE TM, but not if its a folder OUTSIDE TM.  Is that right?  If so, this really is a pit that's ripe for idiots like me to fall into.
    Lex Schellings (3:52am): I don't think I understand your comment -- you said "All these instructions are to delete a specific file... You should never deleted a dated FOLDER".  But instruction #2 says "One or more individual backups -- it's best to use Time Machine, per the green box below" --  then, in the green box, it says " Locate the backup or item you want to delete via the Timeline or "cascade" of Finder windows".  Since I was trying to delete a "backup", what was I supposed to select, if not a folder?
    Etresoft (4:15am): that's an interesting thought, but I don't think I used the sidebar to navigate to the backup I deleted.  When I opened TM, it showed me a sequence of Finder windows with the Star Wars background, but the external hard drive in the Finder window was grayed out and inaccessible.  So I checked pondini again, and it said I could get to it by right-clicking on the TM icon in the task bar (after exiting TM), selecting 'Browse other TM Disks', and selecting the one I wanted.  After I did that, I could see the external hard drive in TM was not gray anymore, and I navigated to the first backup folder.  Apparently, that's what took me "outside" of TM, even though I thought I was inside it.  I will definitely follow up on your suggestion to go to Apple's bug report site and file a report; thanks!
    Lex Schellings (4:39am; do you guys ever sleep?): I didn't hear that pondini had died -- I hope you folks weren't close to him; sounds like he was very thorough, and trying to do the right thing.  He just didn't realize there were people like me out there.   
    I'm surprised at your comment that "the behaviour of deleting one of the TimeMachine dated folders in Finder has always been the wrong way, leading to unhappiness."  That is exactly what our tech support department (which is run by Lockheed Martin; they're supposed to know what they're doing -- at least they certainly charge JPL enough for their service) said was the approved way to delete old TM backups, and in several cases in the past, it has worked for me.  In any event, I didn't think I was deleting the TM dated folder through Finder -- I thought I was doing it through TM, as pondini recommended.  Silly me.
    Etresoft (5:24am): It's a little scary that you said "I don't know of anyone who knows Time Machine well enough to actually update it."  Were you joking?  I definitely agree with your (and John Galt's) advice that "I wouldn't recommend any kind of interference with Time Machine, especially with the Finder".  In the future, I think I will just set up a separate partition on my external drive for TM backups, and let TM figure out how to thin itself out.
    Lex Schellings (5:43am): "a magic black box" -- that's a very good take-away from this misadventure. Thanks for your advice.

Maybe you are looking for

  • Message no. RU 195:Automatic goods receipt for order 619271463 is not possi

    dear expert: when i confirm the production order via co15  ,sytstm prompt : Automatic goods receipt for order 619271463 is not possible Message no. RU 195 Diagnosis Order 619271463 contains several operations, which have a control key which indicates

  • Advance Payment and part recoveries

    Hi All, Right now we are using the advance payment functionallity of FI module. ( F-47 and F-48). Now if i want to recover the advances in parts, how can the information for this recovery of advance can be given to accounts dept. Is it possible to gi

  • Edit in photoshop from lightroom 5.5 does'nt work

    Hi, I'm a CC member and I've installed 2014 version of all CC products that I use on my PC (win 7 64bits) When I use Lightroom, the command "edit in photoshop" doesn't work correctly: photoshop is started but nothing else happens: no photo in photosh

  • Trying to FaceTime fiancé with a phone number from japan

    i have an iPhone with a number from the us and my fiancé is stationed in japan and has an iPhone with a japan number. we use wifi and still whenever we try to FaceTime it tries to connect but never goes through, any ideas of why and how we can FaceTi

  • Problem with MessageFactory in jaxm

    I tried to creat a soap message. I used following code: MessageFactory mf = MessageFactory.newInstance();         SOAPMessage msg = mf.createMessage();         SOAPPart sp = msg.getSOAPPart();but I got following exception: Unable to create message fa