How to recover a datafile in recovery mode

Hi,
We have a datafile that's 0 bytes in size and is in recovery mode. I see that the datafile is showing as available in dba_data_files but in v$datafile, it's showing the status as recover. This is in Production and the tablespace has been in this mode since last november. We are not able to offline drop the datafile as it is in recovery mode. How can this be corrected without bringing the instance down? Any thoughts?
Thanks.

I would definitely contact Oracle support for something like this on my production database.
Here are some ideas, but some will require some production downtime to complete.
1) Export everything that is in the tablespace that contains the datafile. Drop the tablespace including contents, create the tablespace and import everything back in......Not a good solution but it is a solution...of course there are a lot of things to consider like triggers, foreign keys and similar. This should be tested a lot.
2) Create logical standby with corrected structure and switch to logical standby for production when complete. This will take a lot of work and testing on a test system.
3) Another possibility would be to move tables within this tablespace to a new tablespace and then drop the old tablespace. (Performance hit but safe and no down time).
4) If indexes then drop and recreate new indexes (Performance hit but safe and no down time.)
Once you get everything cleared out of the tablespace you should be able to drop it including contents and storage.
Of course I would try any thing I do out on a test environment before doing anything to my production environment.
Regards

Similar Messages

  • How to recover iphoto library from recovery mode

    My macbook pro suddenly went on Utility Disk Mode and can only be accessed through recovery mode. I cannot even view the files. I'm willing to let everything go except for the photos and videos in the iphoto library. I don't know how to access my photos on icloud and when I did, it was just my iphone's photos that are there. is there any way I can view my photos in my locked macintosh hd in other devices or computer?

    Thanks for the response BDAqua, I did use Migration Assistant to transfer her data from the SuperDuper backup.  Are you suggesting that I use Migration Assistant to transfer data from the Time Machine backup?  Will that result in duplication?  Sorry, but I've no experience at all with Time Machine backups and don't know whether you can 'pick and choose' what to restore from the Time Machine using Migration Assistant.
    Cheers
    Tricia

  • How to recover offlined datafiles

    Hi,
    While starting up the db im getting the below error
    ORA-01113: file 12 needs media recovery
    ORA-01110: data file 12:
    I checked the status of the datafiles and i found that the two datafiles(12 & 13) where in recovery mode.
    I checked the alertlog and found that
    1) Datafile 12 went offline on 13th Nov 2008
    Thu Nov 13 12:28:24 2008
    Errors in file c:\oradba\admin\bdump\db_ckpt_4528.trc:
    ORA-01171: datafile 12 going offline due to error advancing checkpoint
    ORA-01110: data file 12: '\\network drive\TAB_5.ORA'
    ORA-01115: IO error reading block from file 12 (block # 1)
    ORA-27072: skgfdisp: I/O error
    OSD-04006: ReadFile() failure, unable to read from file
    O/S-Error: (OS 6) The handle is invalid.
    2) Datafile 13 went offline on 27th Jan 2009
    Tue Jan 27 23:31:49 2009
    Errors in file c:\oradba\admin\bdump\db_ckpt_4568.trc:
    ORA-01171: datafile 13 going offline due to error advancing checkpoint
    ORA-01110: data file 13: '\\network drive\TAB_6.ORA'
    ORA-01115: IO error reading block from file 13 (block # 1)
    ORA-27072: skgfdisp: I/O error
    OSD-04006: ReadFile() failure, unable to read from file
    O/S-Error: (OS 6) The handle is invalid.
    I tried recovering datafile 12 and it is archive for archivedlogs from Nov 13, but i have archive logs only from 22nd Jan 2009.
    I can recover the datafile 13 using this archive logs.
    Can anyone tell me how to recover the datafile 12 ????
    Thanks in advance.
    Prem.

    thanks for your reply
    .>>>> I tried recovering datafile 12 and it is asking for archivedlogs from Nov 13, but i have archive logs only from 22nd Jan 2009 <<<<<
    Im having archivelogs only from 22nd jan 2009.
    Since the datafile 12 was offline from Nov 13 2008 therewont be any transactions on the datafile.
    So is there any way to bring it online and to the current SCN.
    Thanks,
    Prem

  • How to recover system datafile???

    Hello,
    Do you guys have any idea how to recover SYSTEM datafile if the datafile is missing and it's not being back up ?
    suhaimi
    [email protected]

    Dear Suhaimi,
    The only possible way of recovering the SYSTEM tablespace (and its datafiles) is from the Hot or Cold backups taken earlier. For ensure complete recoverability, I advise you to run your database in ARCHIVELOG mode and take regular online backups.
    Ciao!

  • HT201263 how to place your device into recovery mode without home button?

    How to place your device into recovery mode without home button?

    Try these programs:
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    The Firmware Umbrella - TinyUmbrella

  • My ipod touch 5 gen still in recovery mode how can i get out in recovery mode? i update it in ios 6.2 while my itouch is in jailbrake

    my ipod touch 5 gen still in recovery mode how can i get out in recovery mode? i update it in ios 6.2 while my itouch is in jailbrake

    Google "DFU mode", put it in that mode and Restore it in iTunes.
    And stay away from jailbreaking.

  • How can I get out of recovery mode?

    How can I get out of recovery mode without restoring my iPod?

    Try using Yamipod.
    http://www.yamipod.com/main/modules/downloads/
    Make sure iTunes is closed before you use yamipod.
    Another issue I have heard about if are in Windows is a Parental Controls conflict with iTunes and your iPod trying to access the iTunes Server for the Restore Software Update.
    Make sure there are no firewalls blocking it if you are on a Mac.
    Try that, if not, post again.
    Max

  • How to fix iphone 5s stack recovery mode..Please help me

    How to fix iphone 5s stack recovery mode..i have tried So many ways and aloso tryed with  3rd party software but nothing happens...i trying with iTunes but error 14  message appare..i am from bd that's why in my country doesn't have any apple service center

    Error 14 is typically a hardware failure, but can be caused by security software...anti-virus, firewalls, etc. Given what you've posted, I suspect a hardware failure, & if that's the case, you won't be able to restore the phone. You'll need to find a service center to confirm.

  • How to fix ipad2 stuck in recovery mode

    How to fix ipad2 stuck in recovery mode. I tried reconnecting to itunes and it did not work.
    Thanks

    Hi aaaaherman,
    Welcome to Apple Support Communities.
    It sounds like your iPad 2 is in recovery mode and you’re running into an issue restoring it.
    Take a look at the article linked below which provides a lot of great information about recovery mode, including details about the restore process and what to do if the device isn’t recognized by iTunes.
    If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
    So long,
    -Jason

  • Hi I've done An update on my iphone5 today and some how it's got stuck in recovery mode how do I get out of it

    Hi I've just done the new up date to my iPhone, and it's now gone into recovery mode and is telling be to restore phone how do I do this

    Beattygirl wrote:
    , do you know how to restore it?
    1: Connect the device to Your computer and open iTunes.
    2: If the device appears in iTunes, select and click Restore on the Summary pane.
    Restoring  >  http://support.apple.com/kb/HT1414
    3: If the device doesn't appear in iTunes, try using the Steps in this article to force the device into Recovery Mode.
    Make sure you have the Current Version of iTunes Installed on your computer
    iTunes free download from www.itunes.com/download
    Note on Recovery Mode.
    You may need to try this More than Once... Be sure to Follow ALL the Steps...
    After you have Recovered your Device...
    Re-Sync your Content or Restore from the most Recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766

  • How to Back-Up Mac through Recovery Mode?

    I'm not to good with computer terms or stuff like that, so please bear with me. Every time I start up my MacBook Pro, a loading bar comes up and then when it completes, it restarts, with the same thing, a endless cycle of loading bars. So I looked at quite a few threads but couldn't find a specific answer to my problem. I want to do a reinstall of new copy of Lion but back-up my data first (there is only 50 GB). I can start into Internet recovery mode. I did the whole "Verify Disk" in the Disk Utility and it said that "The disk needs to be repaired. Click Repair Disk". In which I click repair disk. But then it says "Disk Utility can't repair this disk. Back up as many of your files as possible, reformat the disk, and restore your backed-up files".  All I have is a 500 GB Seagate External hard drive for Mac, no additional Mac or time machine to back up to. So is someone able to give me step by step on how to back-up my data in my specific situation? I tired to create a New Image of "Macintosh HD" but it says "unable to create "Macintosh HD.dmg". (Error -61)". Also, the Macintosh HD is dimmed (grayish) in the left, but I can still click on it. I don't know what that means. Is there also any way to move files in recovery mode through terminal, from the HD to my external hard drive. As a alternative back up?
    Please, any help would be awesome.

    In order to follow the guides below, you will need access to another Mac and a firewire cable.  Your hard drive is failing. If you make an Genuis Bar appointment at a local Apple Store, they will be able to perform this. If you choose the latter, make sure to bring an external hard drive to which your data can subsequently be transferred to once it has been recovered from the failing drive. 
    Target Disk Mode - Data Recovery: Mac OS X File Recovery
    Apple Tips Using Target Disk Mode

  • Disk Managment cannot recover Macintosh HD in recovery mode

    Hi,
    Today I used my iMac in Bootcamp and after I was done I tried to restart in Mountain Lion. But it didn't go as expected.
    Instead of the normal loading animation I was shown a loading bar that slowly filled. After the loading bar was full I got the normal loading
    animation, but it kept going for hours without anything happening.
    I decided to turn my iMac off and check the disk in recovery mode. After checking it with disk mamagment it showed some problems and recommended me to recover/repair the disk. That's the point where it goes wrong ,because it can't recover/repair the disk after trying multiple times.
    So is there anyone familiair with this problem and if so do you know how to counter it?

    Your best bet is DiskWarrior, you need the CD/DVD though.
    http://www.alsoft.com/DiskWarrior/
    But others that may work…
    Drive Genius…
    http://www.prosofteng.com/products/drive_genius.php
    TechTool Pro…
    http://www.micromat.com/index.php?option=com_content&task=view&id=31&Itemid=83

  • How to unlock logical Partition in recovery mode?

    I have problems with my iMac (2007) after installing 10.7.2. It's not starting any more. Now, in recovery mode in Disk Utility I've clicked on Turn Off Ecryption..., because my disk is encrypted with FileVaul2. The probelm is, it's showing now as Locked and I don't find any way how to unlock it. How can I unlock it again? Thanks.

    Start with http://support.apple.com/kb/HT4790. I don't use FV, so can't help with any particulars.

  • IPhone 3GS froze during iOS 5.1.1 update - how do I get out of recovery mode without having to restore?

    So I tried to update my iPhone 3GS to iOS 5.1.1, like iTunes told me to do, and it froze part way through the installation for a couple of hours.  I tried to "reset" the iPhone by pressing both the home and power buttons simultaneously, but now iTunes tells me my iPhone is in recovery mode.  From my limited knowledge, it seems I need to restore my iPhone, but I don't want to lose anything, like my SMS history.
    Is there a way to get out of recovery mode without having to restore?
    Thanks!

    I came across this post as my iPhone 3Gs had gone into recovery mode on its own accord.   I had hundreds of photos unsaved and was gutted when I saw this post, I felt even worse as it was not the information (gdgmacguy) I wanted to read.
    Unfortunately, the above post is simply wrong! A system cannot destroy information in a blink of an eye.   If it were that easy, the forensic teams across the world would have a hard time.  A criminal could simply force a phone into recovery to remove all the data.  Please!
    I managed not only to take the phone out of recovery mode but also, salvaged all the data held on it.  
    To be fair, I am a little annoyed at Apple for not offering a salvage option on the device for such a situation.  And it may be that they will not like me sharing this information, in which case I believe this view to be morally wrong because photos are so important.  We all make mistakes, in terms of forgetting to backup from time to time.
    What I used was the Redsn0w software, running as an administrator in XP compatibility mode.  In the ‘Extras’ section it as a Recovery Fix option.  It simply runs some software that takes the device out of recovery mode.  I had to run it twice for some reason but the second time (out of desperation) worked a treat.  The phone is now exactly as it was before it went into recovery mode.  More to the point, it allowed me to backup all the photos and videos that I had failed to do before hand.  And let’s face it, photos and videos are usually the most valuable stuff we keep on our phones. 
    I hope this help anyone in the same situation. I really hope someone from apple reads it and is able to convince the bosses that a recovery option is very important.  And to take note that YES it is possible to recover data on a phone stuck in recovery mode.  And more than likely it would be easier for apple, compared to other non-apple professionals. 
    Good luck.

  • How do i get out of recovery mode without restoring on my jailbroken iphon 4? i ve tried tiny ubrella, recboot, redsnow etc.. idont want to lose my data base. thank in advance.

    how do i can get out of recovery mode without restoring on my jailbroken iphone 4 (5.1.1)?? i ve tried with tinyubrella, redsnow, recboot etc.. plese help because i dont want to lose my database. thanks in advance..

    Go elsewhere. Jailbreaking can't be discussed in this Apple forum.

Maybe you are looking for