Delete sbt_tape backups

How can I delete the backups by usıng rman whıch ıs taken to tape. When I attempt to delete them the error message is: "ORA-27211: Failed to load Media Management Library".

RMAN> delete backupset 913;
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=275 instance=ANKARADB2 devtype=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid=258 instance=ANKARADB2 devtype=DISK
released channel: ORA_DISK_1
released channel: ORA_DISK_2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of delete command at 11/22/2007 11:07:25
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27211: Failed to load Media Management Library

Similar Messages

  • Deleting expired backup not working.

    Hi,
    I am cleaning up the backup by deleting all the expired backups. My OS is RHEL 4 and DB is 10.2.0.3 and the backup is Veritas Netbackup using RMAN
    Recovery Manager: Release 10.2.0.3.0 - Production on Mon Mar 28 12:51:16 2011
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database: WHSEPROD (DBID=2974933951)
    connected to recovery catalog database
    RMAN> delete expired backup;
    allocated channel: ORA_SBT_TAPE_1
    channel ORA_SBT_TAPE_1: sid=136 devtype=SBT_TAPE
    channel ORA_SBT_TAPE_1: Veritas NetBackup for Oracle - Release 6.5 (2007072400)
    allocated channel: ORA_SBT_TAPE_2
    channel ORA_SBT_TAPE_2: sid=145 devtype=SBT_TAPE
    channel ORA_SBT_TAPE_2: Veritas NetBackup for Oracle - Release 6.5 (2007072400)
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=181 devtype=DISK
    List of Backup Pieces
    BP Key  BS Key  Pc# Cp# Status      Device Type Piece Name
    255513  255464  1   1   EXPIRED     SBT_TAPE    arch-s254-p1-t662126514
    484866  484825  1   1   EXPIRED     SBT_TAPE    arch-s5711-p1-t680801187
    1256712 1256637 1   1   EXPIRED     SBT_TAPE    arch-s257-p1-t724703694
    1433633 1433540 1   1   EXPIRED     SBT_TAPE    arch-s5681-p1-t733340847
    Do you really want to delete the above objects (enter YES or NO)? yes
    deleted backup piece
    backup piece handle=arch-s254-p1-t662126514 recid=254 stamp=662126515
    deleted backup piece
    backup piece handle=arch-s5711-p1-t680801187 recid=5674 stamp=680801188
    deleted backup piece
    backup piece handle=arch-s257-p1-t724703694 recid=254 stamp=724703695
    deleted backup piece
    backup piece handle=arch-s5681-p1-t733340847 recid=5674 stamp=733340848
    Deleted 4 EXPIRED objects
    RMAN> delete expired backup;
    using channel ORA_SBT_TAPE_1
    using channel ORA_SBT_TAPE_2
    using channel ORA_DISK_1
    List of Backup Pieces
    BP Key  BS Key  Pc# Cp# Status      Device Type Piece Name
    255513  255464  1   1   EXPIRED     SBT_TAPE    arch-s254-p1-t662126514
    484866  484825  1   1   EXPIRED     SBT_TAPE    arch-s5711-p1-t680801187
    1256712 1256637 1   1   EXPIRED     SBT_TAPE    arch-s257-p1-t724703694
    1433633 1433540 1   1   EXPIRED     SBT_TAPE    arch-s5681-p1-t733340847
    Do you really want to delete the above objects (enter YES or NO)?Even after it says it deleted 4 EXPIRED objects, why does it show those same four pieces? How can I get rid of it? Obviously, it is EXPIRED, so I don't need it. I ran crosscheck command too. That didn't worked. I ran the delete with force and obsolete options too. They also did not worked. Please help. What am I missing?

    I tried that change command. But I am getting
    RMAN> change backupset completed before '01-Jan-2011' uncatalog;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of uncatalog command at 04/06/2011 12:55:34
    RMAN-06122: CHANGE .. UNCATALOG not supported for BACKUPSET
    The action change suggested was to use
    RMAN> change backupset ....  delete;
    This says deleted. But again when I list backup this shows.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to delete old backups in RMAN (

    Hello,
    if I run below rman command lines in 10g and 11g RMAN, it works well, but NOT in RMAN (Release 8.1.7.4.0), so which commandlines I should use to get to the same pursposes in RMAN 8.1.7.4?
    run {
    ALLOCATE CHANNEL c1 TYPE 'sbt_tape';
    ALLOCATE CHANNEL c2 TYPE 'sbt_tape';
    ALLOCATE CHANNEL c3 TYPE 'sbt_tape';
    ALLOCATE CHANNEL c4 TYPE 'sbt_tape';
    ALLOCATE CHANNEL c5 TYPE 'sbt_tape';
    ALLOCATE CHANNEL c6 TYPE 'sbt_tape';
    ALLOCATE CHANNEL c7 TYPE 'sbt_tape';
    ALLOCATE CHANNEL c8 TYPE 'sbt_tape';
    CROSSCHECK BACKUP;
    delete force noprompt obsolete;
    DELETE EXPIRED BACKUP;
    RELEASE CHANNEL c1;
    RELEASE CHANNEL c2;
    RELEASE CHANNEL c3;
    RELEASE CHANNEL c4;
    RELEASE CHANNEL c5;
    RELEASE CHANNEL c6;
    RELEASE CHANNEL c7;
    RELEASE CHANNEL c8;
    thank you

    for example like below... thank you
    RMAN> CROSSCHECK BACKUP;
    RMAN-03022: compiling command: XCHECK
    RMAN-03026: error recovery releasing channel resources
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: XCHECK
    RMAN-06091: no channel allocated for maintenance (of an appropriate type)
    RMAN> ALLOCATE CHANNEL c1 TYPE 'sbt_tape';
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01005: syntax error: found "identifier": expecting one of: "for"
    RMAN-01008: the bad identifier was: c1
    RMAN-01007: at line 1 column 18 file: standard input

  • "Delete All Backups" command not working...

    I just started using Time Machine for the first time about a month ago with my new MacBook Pro. Recently, it started notifying me that it was out of space and automatically deleting the oldest backups, which I thought was odd, because my external Time Machine backup partition is 500GB and my startup disk only had 150GB of data (on a 260GB partition). Well, after checking the backups I quickly found the problem. I have three partitions on my internal drive, and Time Machine was backing them all up (I had thought Time Machine would only back up my startup disk). So I added the other two partitions to the "disks to Exclude list". That part worked and my new backups only include my startup drive. But I want to get rid of the all the backups of my other partitions, so I opened up Time Machine and tried to manually delete their backups, but it's not working.
    I've read that you can select the volumes/folders and choose the "Delete all backups of ..." option to remove them. I also read that it should take some time to complete this. But it's been over 24 hours and still it hasn't removed any of the backups I want to get rid of. And there seems to be no activity on the Time Machine drive. So what gives? Why isn't Time Machine honoring my request to delete all backups of these partitions/folders? I've repeated the process a few times, and each time the authentication dialog appears and my password is accepted, so everything looks like it should work, but it hasn't.
    My first thought was that maybe Time Machine won't delete the backup of a folder/partition that it's already excluding. So I turned off automatic Time Machine backups, and removed the two partition volumes from my exclude list and then tried again to delete all their backups. It's been a few hours since then, and still nothing is deleting. How long should it take? And is there some trick to manually deleting the backups outside of Time Machine that I could try?
    I guess if nothing else I could try and reformat the Time Machine backup disk and start over, but I shouldn't have to right? This is really puzzling...

    daehl wrote:
    SOLVED!
    Yes, It appears that Time Machine CANNOT delete files that are locked for some reason.
    that's not true. it's perfectly capable of doing that.
    Originally I assumed that since I could not delete a file directly from within the Time Machine volume's "Backups.backupdb" subfolders, that I would not be able to unlock it. But you can! I simply located the files in the backup, chose Get Info on them and un-checked their "Locked" checkbox.
    something is really wrong with your backups. you should not even be able to unlock any locked files in TM backups as they should be all protected by hidden ACLs to prevent people from messing with them from finder.
    And the lock status change took effect! Then went back to Time Machine and chose "Delete All Backups of..." and selected the volume in that backup, and they instantly disappeared!!!
    That's pretty strong empirical proof that Time Machine has a problem with locked files.
    no, it's a strong evidence that your TM backups are messed up.
    I have repeated it with about a dozen various files that were locked and all behaved the exact same way. So I think this is pretty strong evidence to a "bug" in Time Machine!

  • HT4847 I have a new iphone and cannot delete the backup from icloud.  It says that it is in use.  I have read some of the other threads and it only seems to be haphazard solutions. Is there a definite way to fix this? I am not able to change icloud accoun

    I have a new iphone and cannot delete the backup from icloud.  It says that it is in use.  I have read some of the other threads and it only seems to be haphazard solutions. Is there a definite way to fix this? I am not able to change icloud accounts.

    Follow the steps in wjosten's post here: https://discussions.apple.com/message/13356770#13356770 (for Windows, substitute Outlook in step 2).

  • CAN'T DELETE ICLOUD BACKUP.....SAYS IT IS IN USE....

    CAN'T DELETE ICLOUD BACKUP.....SAYS IT IS IN USE..
    any idea ,I know how to delete a backup on my IPAD AIR BUT THERE IS ONE OLD backup existing and there I get this message......not possible because it is in use
    thks

    Hi Aaron,
    Please wait for up to 72 hours and then try to delete the old backup again.
    With kind regards,
    David

  • I am unable to delete a backup file from my Time Capsule.  What to do?

    Separately I asked for and got help here in relation to what to do with my Time Capsule when I changed computers.  I erased the contents of my Time Capsule that had been put there using my old Mac Mini and using Time Machine created a new backup of the same data that are now on my new Mac Mini. 
    In the process, however, I mistakenly created a backup of a large folder that I do not need.  I researched how to delete it using Time Machine and following the simple steps set forth tried a number of times, all without success, to delete the folder on my Time Capsule using Time Machine.  I go into Time Machine, I find the folder, I highlight it, I open the little widget and choose 'Delete all backups' of it, I choose 'OK' when asked if I am sure I want to do it . . . each time, though, nothing happens after that.  The folder remains there as it was, undeleted.
    Can anyone suggest what I might do?
    Thank you.

    Thank you for your further help, Bob.
    My Mac Mini is a desktop.  I am using Mountain Lion with it, updated to the latest version.
    I went back into Time Machine (and now understand what you mean about 'Star Wars' screen), and found the timeline on the extreme right edge of my computer screen, as you explained.
    Despite the passage of time, I have only three 'times' expressed on the scale.  Two are purple, and represent the two times yesterday that I did backups, the original full backup and one subsequent one (I do not have Time Machine set up, now, to do automatic backups, only manual ones as I direct).  One is white and is marked 'Now'.
    When I click on the white time, 'Now', for my external HD, I get a long list of items, all but one of which I do not want and tried to delete yesterday.  Interestingly, however, when I click on either of the two purple times, for yesterday, the only item that appears is the one that I want to backup.  None of the other items is there. 
    If the purple items are the only ones that represent actual backups, then it would seem that the deletions I did yesterday in fact worked.
    If that is the case, again, there remains a bit of a puzzle as to why the 'now' position shows other items too, but if in fact that is just a glitch and does not represent anything actually saved on my Time Capsule, then there is no reason for me to be fussed, only puzzled.
    Your thoughts on what I have found and tentatively concluded?

  • If I delete a backup on iCloud, will that erase the data from that backup on my phone?

    I had to get a replacement iPhone 5 because of a faulty power button on my first one. In order to keep my data, I used iCloud to backup my phone and transfer it to the replacement. Now I have a backup of my old phone and the replacement and that really limits my available space. (1) Is there a way to merge these together? (2) If I delete the old backup, will the data transferred from it be deleted on the replacement? Sorry if this is confusing and thanks in advance for any helpful information.

    You can't merge backups.  Also, deleting a backup only permanently deletes it from iCloud; it doesn't do anything to the data currently on the phone.  If you no longer need your old backup go ahead and delete it.

  • I don't have very much space left on my iCloud backup. I had a previous iPhone, my current iPhone and my iPad that are all connected to one cloud. Can I delete the backup from my previous iPhone? Will it delete in the cloud AND on the phone?

    I had a previous iPhone, my current iPhone and my iPad that are all connected to one cloud. Can I delete the backup from my previous iPhone? Will it delete in the cloud AND on the phone? or does it just delete from iCloud? or does it just delete from the phone? Someone please help!

    You can delete the backup without any problem. Only the backup will be deleted from iCloud and nothing else will be deleted, so you can do it without worrying about losing data on iCloud or your devices

  • If I delete a backup icon for an old iPhone on my iPad will it delete all the photos saved from that phone in my iCloud??

    If I delete a backup icon for an old iPhone on my iPad will it delete all the photos saved from that phone in my iCloud??

    Welcome to the Apple Community.
    It won't affect any photos in photo stream but any photos within the back up itself will go.

  • If i click to turn off my backup and delete all backup data will I lose everything on my ipad? or will it just no longer be stored in icloud?

    currently my iphone and my ipad share data in my icloud account. if i click to turn off my back up and delete all backup data, what will happen? will i lose everything on my ipad, or will it just no longer be stored in icloud?

    It will only delete your backup from iCloud.

  • HT4759 if i delete my backup on my phone will it delete everything off my icloud?

    im trying to download ios 7 so i want my phone clear & i want to know if i can delete the backup on my iphone 4? o will it delete everything on my icoud?

    Go to Settings>iCloud and delete the account, then sign back in with the ID of the account you want to use.  It only deletes the account from your device, not from iCloud.  This won't effect any other devices you may have that are still using the account.

  • HT201210 I am trying to update the new ios6 software and I keep getting an error message saying: "iTunes could not backup the iPhone because the iPhone is corrupt or not compatiable with the iPhone.  Delete the backup then try again."

    How do I delete the backup?  Will I loose all my information?

    Disable your firewall/security software.

  • I am getting error message "iTunes could not back up the iPhone because the backup was corrupt or not compatible with the iPhone".  I have deleted the backup and restarted my computer, but continue to get this error message.  What do I need to do now?

    I have recently updated my phone and am attempting to sync it.  I got the error message "iTunes could not back up the iPhone because the backup was corrupt or not compatible with the iPhone".  I deleted the backup, restarted my computer, and even restored the iPhone, but continue to get the same error message.  What do I need to do now?

    iTunes places the iPhone backup in the following location. Navigate there & delete everything in the backup folder, but not the folder itself. You will have to turn on "Show All Hidden Files & Folders" to see it:
    Mac:~/Library/Application Support/MobileSync/Backup/
    Windows XP:\Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    Windows Vista and Windows 7:\Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\

  • Time Machine - strange behavior while deleting old backups

    Not sure if this is the right place, because this is actually not on Time Capsule, but on a Time Machine on an external USB drive.
    In any case, I searched the web for "time machine delete old backups" and found many discussions of various aspects of this task. My objective is to clean up a partition on a the external drive that I no longer use for active TM backups, but to retain a small set of backups in case I need to go back to them. The partition now has other uses and I need the space. My main TM backup is now on a separate Time Capsule.
    So again my objective is not to remove all backups, but just most of them.
    It appears that the well-discussed procedure is the following:
    Go into Time Machine.
    Select the Macintosh HD.
    Go back to one of the oldest backups.
    Click on the Gear > click Delete Backup.
    This procedure will remove one Backup at a time, and it seems to take 5 - 10 minutes for each backup.
    Here is what I noticed that was "strange":
    You could delete a selected backup using the above procedure.
    For the first selected backup so deleted, there is a confirmation dialog with a warning message that it is not undoable.
    After clicking OK on the warning message, the display backs up to the "Present" backup, and the administrative password is requested.
    After the administrative password is entered, the backup starts but control is passed back to the user interface, and another backup can be selected to be deleted.
    However, after the second backup is selected and deleted, there is no warning dialog, and no request for the administrative password. At this point the user interface is busy and nothing more can be done until the backup delete is completed. Except that the Time Machine can be exited by first pressing Escape, then Cancel on the lower left of the screen.
    If the time machine is exited, there is a Delete Backups progress dialog with a progress bar for each backup  so far requested. If the second backup was requested, as in the steps above, there would be two backups.
    I discovered by playing around that either you had to wait within Time Machine for the deletion to complete, or alternatively exit Time Machine. While I was not sure what was going on, I kept starting one backup, then exiting Time Machine and re-entering Time Machine and requesting another delete operation. Each time after entering Time Machine, the warning/admin password sequence occurred and I was able to exit. And then immediately re-enter Time Machine and request another backup. Only by exiting and re-entering could another delete request be made.
    When out of Time Machine, I thus saw the Delete Backups dialog with any number of concurrent "Delete One Backup" progress bars.
    Because of the nature of the hard links used to indicate backups, I was wondering if these multiple delete operations could possibly be hung in a deadly embrace, so I decided to only do one at a time. Some further study to see if the multiple delete operations were all able to complete would be needed to know if this would be a good way to "queue up" multiple delete requests.
    Bottom line: seems like kind of an odd implementation. Would be really nice if you could select many (say 30) individual backups and delete them all at once, rather than taking 5 - 10 minutes each. Again, this is because I am trying to reclaim disk space, but not delete all the backups from a Time Machine backup set that is not in active use.
    Also, the method of "queuing up" backup delete requests is kind of odd, but seems to work, with the proviso that I have not yet confirmed that doing more than one at a time actually works.

    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.

Maybe you are looking for