UNDO Segment in Needs Recovery Mode

Hi,
1) I created a different UNDO Tablespace and point UNDO_TABLESPACE to it.
2) The i made the UNDO Tablespace OFFLINE.
3) When i query the status column of dba_rollback_segs it displays that one UNDO Segment needs recovery.
4) When i query v$datafile to find the status of the datafiles associated with the UNDO Segment it displays that all the data files are OFFLINE.
SQL> select segment_name,status,tablespace_name from dba_rollback_segs where tablespace_name like 'UNDO%';
SEGMENT_NAME STATUS TABLESPACE_NAME
SYSSMU11580673410$ ONLINE UNDO_TS
SYSSMU1064169346335$ NEEDS RECOVERY UNDO_TBS
SYSSMU107348590359$ OFFLINE UNDO_TBS
SQL> Select status ,name,file# from v$datafile where ts# in (Select ts# from v$tablespace where name='UNDO_TBS');
STATUS NAME FILE#
OFFLINE /x1/oradata/db1/undo_tbs_05.dbf 13
OFFLINE /x1/oradata/db1/undo_tbs_06.dbf 14
OFFLINE /x2/oradata/db1/undo_tbs_02.dbf 20
OFFLINE /x2/oradata/db1/undo_tbs_03.dbf 21
OFFLINE /x1/oradata/db1/undo_tbs_04.dbf 22
OFFLINE /x2/oradata/db1/undo_tbs_01.dbf 27
The dabase is in noarchivelog mode and the version is 11.2.0.2.0.
Please suggest what should i do. I am unable to drop the old UNDO_TBS.

I tried doing the following ( but it simply doesnot work)
1) set undo_management='MANUAL' and OFFLINE_ROLLBACK_SEGMENTS=_SYSSMU106 in init.ora
2) Did a clean shutdown using SHUTDOWN IMMEDIATE and then STARTUP
3)
SQL> select segment_name,status,tablespace_name from dba_rollback_segs where tablespace_name like 'UNDO%';
SEGMENT_NAME STATUS TABLESPACE_NAME
SYSSMU11580673410$ ONLINE UNDO_TS
SYSSMU1064169346335$ NEEDS RECOVERY UNDO_TBS
SYSSMU107348590359$ OFFLINE UNDO_TBS
SQL> drop rollback segment "_SYSSMU106";
Rollback segment dropped.
SQL> select segment_name,status,tablespace_name from dba_rollback_segs where tablespace_name like 'UNDO%';
SEGMENT_NAME STATUS TABLESPACE_NAME
SYSSMU11580673410$ ONLINE UNDO_TS
SYSSMU1064169346335$ NEEDS RECOVERY UNDO_TBS
SYSSMU107348590359$ OFFLINE UNDO_TBS
SQL> drop tablespace UNDO_TBS including contents and datafiles;
drop tablespace UNDO_TBS including contents and datafiles
ERROR at line 1:
ORA-01548: active rollback segment '_SYSSMU106_4169346335$' found, terminate
dropping tablespace
SQL> Select status ,name,file# from v$datafile where ts# in (Select ts# from v$tablespace where name='UNDO_TBS');
STATUS NAME FILE#
OFFLINE /x1/oradata/db1/undo_tbs_05.dbf 13
OFFLINE /x1/oradata/db1/undo_tbs_06.dbf 14
OFFLINE /x2/oradata/db1/undo_tbs_02.dbf 20
OFFLINE /x2/oradata/db1/undo_tbs_03.dbf 21
OFFLINE /x1/oradata/db1/undo_tbs_04.dbf 22
OFFLINE /x2/oradata/db1/undo_tbs_01.dbf 27
Edited by: SID3 on Mar 21, 2012 4:41 AM

Similar Messages

  • ROLLBACK SEGMENT NEEDS RECOVERY AND HOW TO RESOLVE IT

    제품 : ORACLE SERVER
    작성날짜 : 1995-02-06
    Subject :
    This article discusses what it means when a rollback segment needs
    recovery and how to resolve it.
    OVERVIEW
    This bulletin discusses why a rollback segment is the status of
    "needs recovery", what the status means, and how to resolve it.
    INTRODUCTION
    Rollback segments can be monitored through the data dictionary view,
    dba_rollback_segments. There is a status column that describes what state
    the rollback segment is currently in. Normal states are either online or offline.
    Occasionally, the status of "needs recovery" will appear.
    This is considered to be a corrupted rollback segment.
    When a rollback segment is in this state, bringing the rollback segment
    offline or online either through the alter rollback segment command or
    removing it from the rollback segments parameter in the init.ora usually has no effect.
    UNDERSTANDING
    A rollback segment falls into this status of needs recovery whenever
    Oracle tries to roll back an uncommitted transaction in its transaction
    table and fails.
    Here are some examples of why a transaction may need to rollback:
    1-A user may do a dml transaction and decides to issue rollback
    2-A shutdown abort occurs and the database needs to do an instance recovery
    in which case, Oracle has to roll back all uncommitted transactions.
    When a rollback of a transaction occurs, undo must be applied to the
    data block the modified row/s are in. If for whatever reason, that data
    block is unavailable, the undo cannot be applied. The result is a
    'corrupted' rollback segment with the status of needs recovery.
    What could be some reasons a datablock is unaccessible for undo?
    1-If a tablespace or a datafile is offline or missing.
    2-If the object the datablock belongs to is corrupted.
    3-If the datablock that is corrupt is actually in the rollback segment
    itself rather than the object.
    HOW TO RESOLVE IT
    1-MAKE sure that all tablespaces are online and all datafiles are
    online. This can be checked through dba_data_files under the
    status column. For tablespaces, look in dba_tablespaces.
    If that still does not resolve the problem then
    2-PUT the following in the init.ora-
    event = "10015 trace name context forever, level 10"
    Setting this event will generate a trace file that will reveal the
    necessary information about the transaction Oracle is trying to roll
    back and mostimportantly, what object Oracle is trying to apply
    the undo to.
    3-TAKE the corrupted rollback segment out of the rollback_segments parameter in the init.ora
    4-SHUTDOWN the database (if normal does not work, immediate, if that does
    not work, abort) and bring it back up.
    Note: An ora-1545 may be encountered, or other errors, that is ok.
    5-CHECK in the directory that is specified by the user_dump_dest parameter
    (in the init.ora or show parameter command) for a trace file that was
    generated at startup time.
    6-IN the trace file, there should be a message similiar to-
    error recovery tx(#,#) object #.
    TX(#,#) refers to transaction information.
    The object # is the same as the object_id in sys.dba_objects.
    7-USE the following query to find out what object Oracle is trying to
    perform recovery on.
    select owner, object_name, object_type, status
    from dba_objects where object_id = <object #>;
    8-THIS object must be dropped so the undo can be released. An export or
    relying on a backup may be necessary to restore the object after the corrupted
    rollback segment goes away.
    9-AFTER dropping the object, put the rollback segment back in the init.ora
    parameter rollback_segments, removed the event, and shutdown and startup
    the database.
    In most cases, the above steps will resolve the problematic rollback segment.
    If this still does not resolve the problem, it may be likely that the corruption is
    in the actual rollback segment.
    At this point, if the problem has not been resolved, please contact
    customer support.

    Yes we were having the performance issues when it is getting locked? in this what i want to know
    why it happens suddenly?
    or what package this piece of code is calling?
    or is there any possiblity of system will degrade the performance like sys user etc...?
    where exactly i found the root cause for further analysis?
    so that next time onwards if particular objects is locking we come to know why it happens is there any logical false or how do we eliminate this issue last time?
    coz in our environment sometimes most of lockings are from the same table?
    pls let me know where i have to concentrate for debug and how to troubloshoot and reslove this
    sorry for the inconvience.. i m expecting the answer from here. if anybody wants some more info i ll let him know.
    as of till now i got some docs i start to read this.
    Regards
    M.Murali..
    Note: will system/sys degrade the performance ?if so how ?

  • Awr report showing "Undo segment recovery" in top 1st wait event.

    Hi all.
    Today evening oracle.exe is hitting 100% cpu in windows server 2003.
    In the awr report "undo segment recovery" listed in the top 5 wait event (1st place) and
    also in the enterprise manager it shows the details like,
    ACTION 1:
    Action Investigate the cause for high "undo segment recovery" waits. Refer to Oracle's "Database Reference" for the description of this wait event. Use given SQL for further investigation.
    Rationale The SQL statement with SQL_ID "0x63ctfjb1m1j" was found waiting for "undo segment recovery" wait event.
    SQL Text UPDATE PF_SubjectVEChapterPage SET NeedsRecalcState = NULL, NeedsUnsignState = ...
    SQL ID 0x63ctfjb1m1j
    Rationale The SQL statement with SQL_ID "0x6uvufcw5umh" was found waiting for "undo segment recovery" wait event.
    SQL Text
    SQL ID 0x6uvufcw5umh
    Rationale The SQL statement with SQL_ID "2dvmt5mhr3m10" was found waiting for "undo segment recovery" wait event.
    SQL Text UPDATE PF_SubjectVEChapterPage SET NeedsRecalcState = NULL, NeedsUnsignState = ...
    SQL ID 2dvmt5mhr3m10
    Rationale The SQL statement with SQL_ID "gx5pummu20jzb" was found waiting for "undo segment recovery" wait event.
    SQL Text UPDATE PF_SubjectVEChapterPage SET NeedsRecalcState = NULL, NeedsUnsignState = ...
    SQL ID gx5pummu20jzb
    Rationale The SQL statement with SQL_ID "1rxk3vt41zg1u" was found waiting for "undo segment recovery" wait event.
    SQL Text
    SQL ID 1rxk3vt41zg1u
    ACTION 2:
    Investigate the cause for high "undo segment recovery" waits in Module "dllhost.exe".
    ACTION 3:
    Investigate the cause for high "undo segment recovery" waits in Service "SYS$USERS".
    I'm not sure what action i need to take exactly.Please provide your valuable suggestions to proceed further.
    Thanks, Muhammed Thameem.

    http://download.oracle.com/docs/cd/A97630_01/server.920/a96536/apa5.htm
    "undo segment recovery
    PMON is rolling back a dead transaction. The wait continues until rollback finishes.
    Wait Time: 3 seconds
    Parameters:
    segment# -> The ID of the rollback segment that contains the transaction that is being rolled back
    tx flags -> The transaction flags (options) set for the transaction that is being rolled back?

  • Oracle 9i - Rollback Segment Needs Recovery

    I have been noticing for a few days that my UNDO tablespace has been growing in size for no apparent reason. My datafiles have only increased by 400 Meg over last 4 days, but UNDO tablespace has grown from 100 Meg - 5.6 Gig....
    I decided to create a new UNDO tablespace and drop the old one.....
    I created a new tablespace, changed the UNDO configuration to point to new tablespace and bounced the instance. The instance came back up fine, using the new UNDO tablespace....I then went to take the old tablespace offline and drop it....It went offline fine, but when I went to remove it, I received an Oracle error saying tablespaces was using rollback segment _SYSSMU24$.....
    I looked in the alert log and I'm getting a message:
    SMON: about to recover undo segment 24
    SMON: mark undo segment 24 as needs recovery
    When I query the dba_rollback_segs table, it shows that all rollback segments prior to _SYSSMU24$ are online, 24 & 25 are listed as NEEDS RECOVERY, and all others below that are offline....
    Any help on resolving this issue would be appreciated....

    Metalink overrides any thing said, adviced, or written in this forum, if you have already opened a Service Request, as suggested by Daniel Morgan.
    Just in case this may be helpful to you or others facing a similar situation, I suggest you to check this case Re: Error while Droping Undo Tablespace.
    Make sure you have a full useful database backup as well as the required archive log files.
    ~ Madrid

  • My phone is in recovery mode. I need to get it out without restoring my phone. Im soooo frustrated I don't want to loose all of my data.

    I need help before I through my phone out the window. I tried updating my phone and have had nothing but problems. It is now in recovery mode and iTunes is telling me I need to restore it back to the factory setup. I do not want to restore my phone, I am going to loose all of my data if I do this. How can I get my phone out of recovery mode? I have already tried holding how the power and home buttons, letting one go at a time and contenting to hold them down for a number of seconds blah blah blah blah blah. It doesn't work, I don't know what to do.

    If the phone is in recovery mode, the data is already gone. You'll need to restore your information from your most recent back up.

  • I have an iPhone 4S and never had a problem with syncing it. But suddenly, when I connected my phone to my mac, it says that its in recovery mode, and I need to restore it in order to sync. I've updated both my phone and my itunes, and it didnt work.Help?

    I have an iPhone 4S and never had a problem with syncing it. But suddenly, when I connected my phone to my mac, it says that its in recovery mode, and I need to restore it in order to sync. I've updated both my phone and my itunes, and it didnt work.Help?

    fighter19lisa wrote:
    that only makes it say its synced, when its not.
    No, it does not.  It transfers purchases from the iDevice to the computer.  The computer must be authorized for the Apple ID that the content was acquired with.
    fighter19lisa wrote:
    my playlists wont show up on the phone.
    Are they selected to sync?  Is Manually Manage content on the device selected?
    fighter19lisa wrote:
    i had to change my password for my aol account again and i still cannot get my email on my phone to even work
    What does that have to do with syncing content to the device?  FYI, nothing.

  • I tried downloading the iOS8 to my iPod 5th generation and when it finished downloading it shut down completely and it said there was an error and no the iPod is in recovery mode. What can I do to restore it and update it? Please, I need help.

    Hello,
    I recently tried downloading the IOS8 to my iPod 5th generation and when it was almost done the computer said there was an error. Right after that, the iPod shut down completely and now it's on recovery mode. I plugged it in and it said that I had to restore it and update it so I could use it again but it doesn't let me. What can I do? I even did a backup before the update.
    I really need help.

    What happens when you connect to computer and restore via iTunes?
    Without knowing that:
    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable       
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

  • I need help. My ipad 2 was stuck in recovery mode. i tried to connect it to itunes and restore but after downloading the file and extracting the software there is a pop up message that says "the device is full" i dont know what to do. Its been 2 days now.

    I need help. My ipad 2 was stuck in recovery mode. i tried to connect it to itunes and restore but after downloading the file and extracting the software there is a pop up message that says "the device is full. Deleting files and emptying your recycle been will help you restore." how am i going to erase files if i can't open my ipad. i dont know what to do. Its been 2 days now. please help. thanks.

    yes i am sure. This are the exact words... "The iPad "iPad" could not be restored. The disk you are attempting to use is full. (Removing files and emptying the recycle bin will free up additional space". i tried some options, hard reset, redsnow, tinyumbrella but still it's stuck.

  • My iPhone 5s on ios 8.1.2 is stuck at Apple logo or recovery mode.. To fix this issue, i need to update it to ios 8.2 through itunes.. I want to ask that my data i.e. Photos and other personal data would be removed after updating it or not..?

    My iPhone 5s on ios 8.1.2 is stuck at Apple logo or recovery mode.. To fix this issue, i need to update it to ios 8.2 through itunes.. I want to ask that my data i.e. Photos and other personal data would be removed after updating it or not..?
    if yes then how can i save my data or get out of recovery mode.. Is there any safe mode or something like that on which i could access my data..
    P.S. I have not taken any backup of my iPhone on itunes..
    Please help me sort out this issue..

    Recovery mode doesn't mean that all your data is already lost. You only lose your data if you restore it.
    When you plug the phone is into iTunes hold down the home button. iTunes may then give you the option JUST to update the software first. This should not get rid of any data.
    However, if iTunes is only giving you the option to RESTORE and update, then you will lose your data I'm afraid.
    Hope that helps!

  • I was trying to get the iOS 8.2 on my iPhone 5 but then it stopped and my phone is now on recovery mode I have pictures I need and they did not all fit on iCloud  how can I use the phone again with ALL my pictures and videos without restoring it?

    I was trying to get the iOS 8.2 on my iPhone 5 but then it stopped and my phone is now on recovery mode I have pictures I need and they did not all fit on iCloud  how can I use the phone again with ALL my pictures and videos without restoring it?

    Contacts are designed to be synced to a supported application on the computer or a cloud service.
    Pictures taken with the device are designed to regularly be copied off the device to a computer as would be done with any digital camera.
    If you have failed to use the device as designed it may be too late to recovery anything.
    Is the device regularly backed up to a computer via iTunes?  If so, the most recent backup (when restored to a replacement iOS device) should contain all contacts and pictures as of when the backup was created.

  • I tried to update my iPhone 4S but I nowkeep getting an error saying I need to restore my phone before it can be used because it's in recovery mode! But if I restore it I lose all my media and data and I don't want to do that! Is there anything I can do??

    I tried to update my iPhone 4S but I now keep getting an error saying I need to restore my phone before it can be used because it's in recovery mode! But if I restore it I lose all my media and data and I don't want to do that! Is there anything I can do?? Somone please help, i'm freaking out over here!

    Anything that was on the phone is already gone. You have no choice but to restore. If you were backing up and syncing the phone on a regular basis, you should be able to restore your backup with minimal data loss.

  • When i put my iphone on charge or try to turn it on it says connect to itunes when i do that it says that my phone is in recovery mode and needs to be restored!

    Someone please help me, i really dont want to restore my iphone as i have really important things on it, the phone has not been backed up in a long while..
    i dont know how this happend but i was trying to update tmy iphone like 2 days ago but the update didnt end up completing due to the battery percentage being below 50, anyways i ignored the update and thought id do it later, yesterday i got notifications saying that the phone will continue the update and restart in a few minutes or something along those lines i had the option to click restart later or something like that so i clicked on that, later on my phone died and i put it on charge, as it was turning on the apple logo came up with the dowload bar underneath it, you know when you update or restore your phone and it loads, it was like that, it was taking forever, like it took so long that i removed my phone from the charger and it just froze for a bit then turned off, when i tried turning it on again it told me to connect to itunes so i did and now its telling me that my phone is recovery mode and it needs to be restored!! Is there any way i could fix this problem without restoring my phone?
    Thank you

    Hey saandyy,
    Thanks for using Apple Support Communities.
    You can try to restart the iPhone to exit recovery mode.
    Turn your iOS device off and on (restart) and reset
    http://support.apple.com/kb/HT1430
    If you can't update or restore your iOS device
    http://support.apple.com/kb/ht1808
    Recovery mode erases your device and restores it, which should resolve the issue. If you previously synced with iTunes or iCloud, you may be able to restore from your backup after recovery.
    Have a nice day,
    Mario

  • HT201210 I updated my 4s over 3g to ios 7.1 it took forever and said connect to itunes. It said it was in recovery mode & needed to be restored but would wipe all content. I have never made a backup and can't loose pics of my kids birth and birthdays...

    So tonight I updated my 4s over 3g to ios 7.1 it took forever and said connect to itunes. It said it was in recovery mode & needed to be restored but would wipe all content. I have never made a backup because my computers hard drive crashed (luckily the pics were on the phone) and now after updating like apple said I should it wants me to wipe my phone... I can't loose pics of my kids births and birthdays... I tried the holding buttons and letting off to exit recovery mode with no success... I don't know what to do but I swear if apple makes me loose the priceless pics of my kids I will never buy any apple device ever again... and I will make sure no family or friend ever does either... there has to be a way somehow.. some data recovery some program... I dunno if tinyumbrella can exit it for me without hacking or jailbreaking (which I don't dare/want to do) but i need a solution. I have researched this for hours and hours with no solution so far. If I have to pay $$ for it fine I will but after I recover my data that way I will be going to samsung... anyone with a solution would be greatly appreciated... any solution...

    that makes no sense... it was only doing an update... if that's the case it should have promted me to back up first if this is even possible... there is a program that says it can recovery anything that hasn't been written over yet.. so would this not work? http://www.iphone-data-recovery.com/iphone-data-recovery.html   or would the apple store be able to recover it??? i've done plenty of data recovery on computers... why wouldn't it be possible on an Iphone... does apple seriously not care about thier customers at all??? how about thier employees that are gonna get more than an earful tomorrow when I walk in there store??? No wonder samsung paid 2 million to apple in pennies when they got sued... (how does it feel to be screwed with apple?!)

  • Upgraded iPad 2 to iOS6 - asking me to connect to iTunes - when I do, my Mac is saying 'detected an iPad in recovery mode but need to upgrade iTunes to a newer version (our Mac too old to upgrade). How do I restore iPad so I can use it again?

    I upgraded my iPad 2 to iOS6 following a prompt from the application icon. 
    Once that was complete, my iPad asked me to connect to iTunes which I did.  iTunes then told me that it detected an iPad/iPod in recovery mode and I needed to have a newer version of iTunes to restore.
    I've tried before to upgrade to a new version of iTunes but was advised my Mac was unable to support this due to the Mac's age and old operating system.
    How, therefore, do I get back onto using my iPad 'cos at the moment, all I get when I switch it on is the 'connect to iTunes' symbols.
    Help please, I'm getting withdrawal symptoms!

    During a normal install of iOS 7.0.6 this does not happen but something clearly went wrong in your installation.
    To fix this, connect to iTunes and restore to Factory. Hopefully your iPad will be working again and you can restore your iCloud backup during Setup.

  • In the middle of updating my iphone 4, a icon popped up saying that itunes had detected an iphone in recovery mode and i needed to restore it. my iphone screen is a picture of a usb cord with an arrow pointing to an itunes symbol. what do i do?

    i started to update my iphone 4, and in the middle of the update, an icon popped up saying that "iTunes has detected an iPhone in recovery mode. you must restore this iPhone before it can be sued with iTunes."
    I really cannot lose the data on my phone. i foolishly did not back up everything ecause there was a previous problem i had with icloud and i needed to delete all of my icloud accounts accept for my contacts.
    WHat would i lose if i restored it? and do i need to restore it?
    is there another way? if there is, i definetely do not need the update. someone please help me.

    First, in iTunes, launch Preferences and go to the Devices tab. Check the date and time of the last backup. If it is recent you can restore it. However, if you mean you have the photos back in your Camera Roll then the backup was already restored. To get your music and apps back it should just be necessary to click "Sync".

Maybe you are looking for

  • Why can't I print a map from a PDF file?

    I am going to the website   http://www.atac.roma.it/   which is the public transit system for Rome, Italy. If you scroll down and click on the green button for     Linee e Mappe     and then scroll down on the next page and click on the PDF file for

  • Oracle 8.1.7 Server Installation on a P4 Windows 2000 Server

    I am trying to Install Enterprise Oracle 8.1.7 on a P4 Windows 2000 Server Machine. I had a solution regarding the P4 bug, which asked the latest Service Pack for Win 2000 to be installed, the Oracle CD dump copied to hard disk and symcjit.dll to be

  • R/3 Material description not replicating in SRM CC-Hubwoo

    Hi experts, I have an issue with the material description, I dont have much knowlodge in EBP and im new to SRM. Material description in R/3 and CC-Hubwoo are not matching. Can any body help me regarding the issue..... Thanks in advance, Krish.

  • Contact's numbers dumped with 6.1

    I updated my iPhone 5 to 6.1 today. It asked me if I wanted to sync my contacts with iCloud, I said yes. After the update finished I lost all my contact's phone numbers. All the contacts are still there, just no phone numbers. Any way to recover that

  • Timestamp format for SQL Server data

    Hi all, I put this question on the PL/SQL forum but got no answer yet. Could anyone help me with the timestamp format for a timestamp data from SQL Server? I have this in the xml from SQL server, 2006-06-20T00:00:00-05:00 and I need to make it a date