Removing old backups from earlier incarnation

After a reorg of a database and subsequently getting a new DBID in the repository, I now have a few old backups that I seem unable to reach through RMAN. I can see them on the directory, but since they belong to another DBID, I can't list them.
Am I right in believing that I have to take down the database to be able to change the DBID back to the ID of the old database, just to be able to list and delete the old backups ?
If I want to do it the right way, that is. I could of course just do a rm on the directory where they are, and forget about the whole thing, but that's not what I was aiming for.
This is in a production environment so I'd rather not take down the database unless I really need to.

There are, on disk, several more backups, belonging to one of the incarnations of DBID 2223964660, and I want to delete those the "proper way", by letting RMAN do it. That way I don't have to delete it the by the means of the operating-system, since RMAN will delete it both from disk AND catalog.
Now to the tricky part - how do I do it ?
I tried the thing that Don wrote, without much luck. First of all I need to connect to BOTH the rman-catalog AND the target-database in order to be able to do the "LIST INCARNATION". If not, it keeps telling me "NOT CONNECTED TO TARGET DATABASE".
Once connected to both of them I can list the incarnations, but I cannot do SET DBID=x (RMAN-06188: cannot use command when connected to target database). I can however connect to the RMAN-catalog and then set the DBID, but then I get the next nice error-message saying "RMAN-06189: current DBID 2223964660 does not match target mounted database (2233206566)".
I then tried to do the next command "reset database to incarnation x", which seems to go OK, at least there's no error, but I still turn up with the RMAN-06189 when trying to list incarnations.
Next thing I tried was the tip from Kristin. Logging into the RMAN-catalog (RMAN81) I found only 2 of the three incarnations:
SQL> select * from rc_database;
DB_KEY DBINC_KEY DBID NAME RESETLOGS_CHANGE# RESETLOGS_TIME
1 2 2223964660 OPXP817 1 05-OCT-2001
20208 20209 2233206566 OPXP817 1 19-JAN-2002
That ought to mean the incarnation no 20199 listed in the first "LIST INCARNATION" at the top of this reply, is a fake?
It does not exist, which in turn means that the old backups I have on my disk must belong to incarnation 2.
So, I'm back to the old problem. I cannot set my DBID to 2223964660 and reset the database to incarnation 2 and then try
to list the incarnations. It just doesn't work, and since that doesn't work, I will not be able to tell RMAN to delete the old backups for me. I could of course do what Kristin says. Uncatalog the old incarnation and delete the backups on OS-level, and it sure looks right now as if that is what I'll have to do. Unless someone comes up with a more clever idea that is.Your DBINC_KEY's for Database 2223964660 are 2 and 20199. You need to reset your key to either 2 or 20199 to delete the backups from these incarnations. Your output is kind of interesting since there are 3 entries and 2 DB_KEY's for the OPXP817 DB. It looks like you either recreated or duplicated your database and registered it in the catalog again, and that is why you see 2 entries in the RC_DATABASE view. RMAN sees your new/duplicated database as a separated one from the 2 older incarnations. Usually it would be 3 entries and 1 DB_KEY in the incarnation listing since they all have the same DB_NAME. As for the RC_DATABASE view, that view will give you the databases that are registered in the catalog NOT the incarnations of the database(s). The RC_DATABASE_INCARNATION view will show you all your database incarnations. If your DB with DB_KEY 1 is shutdown you may have to restart it to delete our backups. Hope this helps.

Similar Messages

  • How do I remove old backups from my iPhone?

    I have a fairly full iPhone 5.  When I look at my iTunes Wi-Fi Sync, it shows backups from 2 old computers that I no longer use.  I need only one of the three backup files my phone is holding.  Note: I am not asking how to go into iTunes and delete old backups.  I need to delete them from the actual phone.

    The three backups I refer to in my original question are listed in Wi-Fi Sync as backups that are waiting to complete.  The list is 3 computers my iPhone has been used with.  I no longer use 2 of these computers, so I no longer need these backups.  They are ONLY listed on my phone not in iTunes so I cannot delete them in iTunes.  They are on my phone as backups that are waiting for me to reconnect to those computers to complete.

  • Remove three year old backups from TC

    How do I remove three year old backups from my time capsule?
    I'm using my TC for multiple macs (2 * MacBookPro 2010 and 2014 and 1 * iMac 2011).
    I can imagine that the first BUP is a full and the following are incremental and that there is some logic required if you want to restore (so far never required, because everything is working fine and now crash or what so ever), but still...
    Can somebody explain to me how to clean up (very) old backup data from my TC?
    Onno

    TM is supposed to keep itself ok.
    There is no need to manually delete updates.. although if you run out of room and TM cannot work out how to compact the backup it will throw up an error.
    See Q12 here for deleting manually.. not advised.
    http://pondini.org/TM/FAQ.html
    Much better.. wipe the TC and start over.. then set size limits to the three sparsebundles so each is forced to control its disk usage.
    Erase the TC is easy and quick from the airport utility.. you will see it in Q12
    Setting sparsebundle sizes see A8 here http://pondini.org/TM/Troubleshooting.html

  • Best way to remove old data from db?

    Hi,
    I am looking some ways to keep my database small and remove old data from database and archive it somewhere else. the data may need to be put back to the database in the future. One of the things I am conserned is how to enforce constraints? In other words, when I remove data, all the related pk/fk data should be removed together. Any suggestions will be greatly appreciated.
    Thanks

    hope this may help u
    concept is : exp/imp & truncate will reclaim the space
    method1
    do an export and secure the dump(say dump1) for future purpose.
    delete the unwanted data.
    commit.
    now again export the tables ( say dump2).
    now do the import(dump2).
    /*now this import will reclaim the the unused space.*/
    method 2
    /* depennded on volume of data */
    -- create backup of existing table for future
    create table backup_table nologging as select * from original_table;
    -- create copy1 of existing table
    create table copy_table nologging as select * from original_table;
    -- truncate the original table, so that highwater mark is reset.
    truncate table original_table;
    -- insert data from copy_table into original table
    insert /*+ APPEND */ into original_table select * copy_table where(ur conditions for data);
    commit all the work.
    /* now u have 3 tables
    backup_table - with all the data - for future reload
    original_table - with unwanted data deleted and space reclaimed.
    copy_table - copy of original table.
    now u drop the copy_table
    drop table copy_table;
    regards

  • What happens if i delete an old backup from my iCloud to free up space?

    What happens if i delete an old backup from my iCloud to free up space?

    Nothing. You will lose that backup but you will still be able to make backups in the future if you want to. You can also remove things you do not need from the backup, so you do not have to lose everything from your backup.

  • Can I delete old backups from other devices if my new iphone 6 has a current backup with everything on my new phone?

    Can I delete old backups from other devices if my new iphone 6 has a current backup with everything on my new phone?

    Hi there dyarrell,
    You can do this if you are confident that your current device has all of the data on it that you want to keep. The method for deleting the backup will be differnt depending on the backup method. Take a look at the articles below for more information. 
    Create and delete iPhone, iPad, and iPod touch backups in iTunes
    iCloud: Remove an iOS device backup from iCloud
    -Griff W. 

  • PLEASE HELP! How do I get Time Machine to remove old backups?

    It is my understanding that Time Machine will never fill up the drive it's on because it will remove old backups to make room for new ones. It's not doing that for me. The drive Time Macine is backing up to has filled up & will not allow any more to be written to it, so I can't do backups. I don't see anywhere that I can change a setting to fix this problem. It would be VERY helpful if someone would walk me though how to fix this problem. I've had to turn Time Machine off because it's locking up my system trying to write to the drive.
    THANK YOU FOR YOUR HELP!!

    Thank you. I've gone there & read what's at the link. I've tried going into Time Machine & for some reason I can only see backups (in Time Machine) that go back to earlier today. However, if I actually look on the disc that I'm backing up to, I see database files that go back to April of this year. I looked earlier today & I saw files that went all the way back to October of LAST year, but I just did a big installation & that must of put things over the edge.
    Anyway, I'd like to say that I saw an answer to my problem at Pondini's site, but I've been there looking around since before I wrote this thread asking for help & I just don't see anything that looks like it will specifically help me on this situation.
    I'm still stuck.

  • Time Machine does not completely remove old Backups

    Hi all,
    since the upgrade to SL it seem that Time Machine has problems to completely remove old backups completely. The "removed" backups do not show up in Time Machine anymore, but the backup folders and part of their contents can still be seen in Finder.
    The number of expired backups not removed is growing. I know one should not fiddle around with backups in Finder or Terminal - but the system does not allow me to remove any of the files/folders anyway.
    Here is part of the log:
    Found partially deleted backup - trying again to delete: 2009-08-06-211832
    Error -47 deleting backup: /Volumes/Drobo/Backups.backupdb/MacBook Pro HGA/2009-08-06-211832
    Deleted backup /Volumes/Drobo/Backups.backupdb/MacBook Pro HGA/2009-08-06-211832: 1.75 TB now available
    Post-back up thinning complete: 5 expired backups removed
    Backup completed successfully.
    Any suggestions?
    Thank you for helping
    Heinz
    Message was edited by: Heinz-G?uenter Arnold

    Heinz-G?uenter Arnold wrote:
    since the upgrade to SL it seem that Time Machine has problems to completely remove old backups completely. The "removed" backups do not show up in Time Machine anymore, but the backup folders and part of their contents can still be seen in Finder.
    Hi, and welcome to the forums.
    That happens occasionally, in both Leopard and Snow Leopard, sometimes after something was deleted from the Finder, but also after an abnormal shutdown or improper disconnection of the TM disk.
    Run a +*Repair Disk+* on it via Disk Utility, in your Applications/Utilities folder. If it finds errors, but can't fix them all, run it again (and again) until it either fixes them all, or can't fix any more.

  • How do i remove old backups to clear more space

    im am trying to update my ipad to iOS5 and after 45 mins to an hour i get a message saying the backup is too large. ive deleted apps, videos, movies, music from my ipad so the backup is small... but to no avail.
    here is a pic of the message.. which ties it to time machine.
    anyone know how to remove old backups to clear more space?
    any help would be appreciated.
    thanks!

    This is the MacBook Pro forums. You want the iPad forum:
    https://discussions.apple.com/community/ipad

  • I want to remove old  devices from my iTunes

    I want to remove old devices from itunes

    There is nothing to remove, as the only thing left would be device backups, which are not stored in iTunes. If you want to delete old device backups: iTunes>Preference>Devices...delete the backups here.

  • Is there a way to remove old responses from the Acrobat Tracker?

    Is there a way to remove old responses from the Tracker if I have deleted the original sources? In other words, Acrobat.com and my desktop are out of sync.How I can get rid of any of these files.

    nvm. I found it.

  • How do I remove old applications from my new Macbook Pro that came over when the data on my iMac was migrated to the new computer.

    How do I remove old applications from my new Macbook Pro that were part of the data that was migrated over from my older iMac?
    Thanks

    If the applications were originally drag and drop installations you can simply drag them to the trash and empty. If they were installed by an installer there should be an uninstaller included. If you're not sure you should check with the software developer for instructions. In this case Google can be your friend.

  • Can't remove old episodes from iPod sine Update!

    I have a Shuffle & usually carry 3-5 episodes each of 8-10 different podcasts.  Sine installing the new iTunes for Windows, I can't remove old eps from the device, & it's a total crapshoot as to which NEW episodes the system will allow me to click on!!
    HELP!!!!!!

    There are several ways to add podcast episodes to the shuffle, so please correct my assumptions in a reply.  How you add podcasts determines how you remove them.  I can't tell how you do it from the info you provide.
    It sound like you may add podcast episodes manually (drag and drop to iPod).  If you do, and your shuffle is 3rd or 4th (current) gen, you should consider doing it using automatic syncing, by putting podcast episodes on a playlist (in your iTunes library and syncing it to the shuffle).  Update the playlist at any time, by adding new podcast episodes and removing old ones (the shuffle does not need to be connected).  Put the podcast episodes in desired order.  iTunes automatically updates the shuffle the next time it is connected (or by clicking Sync if already connected).  On the shuffle, you can listen to podcasts from that playlist, and hear episodes from different podcasts consecutively, in the desired order.
    When you remove podcast episodes manually, is this the way you do it?  Again, this is for 3rd or 4th gen shuffle.  Select the shuffle in iTunes, so that you see its "management" screen.  In the sidebar, under On My Device, click Podcasts.  To the right, the podcast episodes currently on the shuffle are shown.  Select the one(s) you want to remove an press Delete on the keyboard.

  • Removing old record from nal.db?

    We are using NAL reporting to monitor which applications a user is
    actually using.
    However this data is logged in nal.db, and it's growing and growing.
    How can we remove old data from this database?
    We've made an ODBC connection with ms access, but it won't delete anything.

    Ren,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • How to Remove old updates from Software Update service

    Running a 10.10.2 OS X Server and have a lot of old Update files I need to get rid of. I have followed instructions on...
    Mac OS X Server 10.4 or later: Removing old updates from Software Update Server
    ...but getting this error...
    No such file or directory
    ...when typing...
    grep swupd /etc/swupd/com.apple.server.swupdate.plist > ~/Desktop/update_list.txt
    Any help would be appreciated, thanks.

    I don't use Apple's own SUS software I use Reposado instead, however it is my understanding that the locations of files used by Apple's SUS software have been moved with Yosemite/Server 4.x.
    Try looking in the following locations
    /Library/Server/Software Update/Config/
    /Library/Server/Software Update/Data/
    /private/var/db/swupd/

Maybe you are looking for

  • Svcadm: error while loading shared libraries: libz.so.1: cannot open shared

    Ops center 12c installation last stage we are getting below error : INFO: starting new satellite SMF services satadm: Enable HTML redirect satadm: Disabling application/scn/ec-server-splashpage /opt/sun/xvmoc/bin/svcadm: error while loading shared li

  • I can no longer access documents in iCloud from my Mac running Mavericks

    I entered into the Yosemite public beta program. After running the installation, I decided to go back to Mavericks. I used my Time Machine Backup to restore my Mavericks installation. All is well again except one thing, I cannot access any pre-Beta d

  • Syncing Notes on iPad with iMac

    When I make a note on my iPad it does not change the existing note on my iMac. When I make a change on my iMac I get a second note on my iPad leaving the original unchanged. Notes is connected to iCloud on both computers!

  • How to create Repadmin user manually

    Hi Database creating through dbca automatically creats repadmin user Replication administrator user.. how to create it if database is manually created. Thanks for any sugesstion.

  • A question regarding JScrollPane

    Here is my minimized code: import java.awt.*; import javax.swing.*; import javax.swing.table.*; public class MyTable extends JFrame {      static JTable table = new JTable(5, 10);      static JPanel panel = new JPanel(new GridBagLayout());      stati