How to recover undo tablespace in 9i

How can i recover undo tablespace 9i.Can any provide step by step recovery process

Doc ID 94114.1 on Metalink might be of interest to you

Similar Messages

  • How to Shrink UNDO Tablespace

    Hello,
    We had a UNDO Tablespace of 22Gb but it is using just 2GB. How to shrink undo tablespace. we are using clustered 3 node production database 10.2.0.4
    Is there is way that we can shrink UNDO Tablespace or do i need to create a UNDO tablespace and assign the undo tablespace to DB and drop the old UNDO?
    How to ensure that transactions are done and free to drop the old UNDO?
    Is it something we need to restart all the three nodes as each node has its own UNDO Tablespace.
    Need Help on this issue.
    would appreciate your quick response.
    Thanks

    if i am in your place i will do the following:
    <pre class="jive-pre">1-Query DBA_DATA_FILES to determine the name of the datafiles of the UNDO</pre>
    2. Create a new UNDO tablespace.
    <pre class="jive-pre">CREATE UNDO TABLESPACE undo_ts2 DATAFILE '/directory/undo_ts2_01.dbf' SIZE xxxM;</pre>
    3. Modify the database parameter to use the new UNDO tablespace.
    <pre class="jive-pre"> ALTER SYSTEM SET undo_tablespace=undo_ts2 SCOPE=BOTH; </pre>
    4-The Drawback:
    <pre class="jive-pre">New transactions will begin using the new undo tablespace. After some time passes (at least the number of seconds specified by the UNDO_RETENTION initialization parameter), you can drop the old UNDO tablespace. The downside to this approach is that for a short time period, your database will have two UNDO tablespaces</pre>
    Regards
    Mohamed

  • How to estimate undo tablespace size in 11g?

    I found someone document said, use this sql to estimate undo tablespace:
    select (UR*(UPS*DBS))+(DBS*24) as "bytes" from (select value as UR from v$parameter where name='undo_retention'),(select (sum(undoblks)/sum(((end_time-begin_time)*86400))) as UPS from v$undostat),(select value as DBS from v$parameter where name='db_block_size');
    but in my 11g database, the "select value as UR from v$parameter where name='undo_retention'" is 0. so above sql is always get 196608(8192*24)
    How to estimate undo tablespace size in 11g?
    Thanks very much!

    for undo segments size you should turn it to be autoextend on as well undo management set to be AUTO
    i.e
    undo_managment='AUTO'
    for retention see that link
    Ora-01555, snapshot too old: rollback segment number 2 with name "_SYSSMU1
    BTW as hemant stated leave it to be auto which is good approach but make sure enough space on disk has been
    dedicated for undo segments are allowed to grow to the size they need to be based on the requested undo_retention.
    Khurram                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to switch undo tablespace

    Dear all,
    I have created a new undo tablespace named undotbs2, How can i switch all the session use the undotbs2?
    Many sessions are running and using the old undo tablespace named undotbs1.

    user7244870 wrote:
    CKPT wrote:
    Sb has already mentioned links how to manage undo..
    For more reference check this below links.
    http://oracleflash.com/32/Change-or-switch-undo-tablespace-in-Oracle-database.html
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/undo.htm#BABGJBJH
    I can't open the link.
    http://oracleflash.com/32/Change-or-switch-undo-tablespace-in-Oracle-database.html
    Is there a specific reason that you are not willing to read the official doc link?
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/logical.htm#CNCPT1079
    Aman....

  • How to protect UNDO TABLESPACE in 9iR2

    We can put REDO LOGs onto different disks by the means of multiplexing, so that even though one datafile is corrupted, the whole system would still be operational. But UNDO TABLESPACE doesn't provide such a mechanism. If the datafile of the active UNDO TABLESPACE is corrupted, it's dead.
    I don't think a system would risk its availability on the single failure of the UNDO TABLESPACE. So there must be some tricks to circumvent this problem. Can anyone tell me that?
    Thanks!

    951368 wrote:
    I am sorry... I should have been more clear...
    The issue i have is : My primary is a 3 node RAC and i created the same 3 node physical standby, now we had a 4th node at our standby, standby allowed me to add all the required cluster parameteres like instance#,thread# for 4th node, but i was stopped at creating a undo tablespace for the 4th node. What is the procedure? do i need to create it at primary or is there a way i can directly create at standby?
    ThanksHi,
    So you have 3 nodes primary and wanted to add 4th node on standby?
    Create the 4th undo tablespace in primary using
    sql > create undo tablespace "undotbs4" datafile 'xxxxx' size xxxx;
    The primary won't touch this undo as none of the instances should pointing to this new undo.
    In the standby on 4th node define 'undo_tablespace' to undotbs4.
    Cheers

  • How to recover tools tablespace???

    Hi,
    actually i was playing my database,where i have done few things like..
    1.i manually delete backups of my database.
    2.create autobackup of control file and and restore autobackup controlfiles which replcae previous controlfile.
    3.after restoring my autobackup controlfile i tried to open the database,but then i recived a error in which the rman says that my system tablespace need recovery.i couden't able to perform this task because of no backup of my database.
    4.aftre i thoght i decided to recreate a controlfile because at that time it seems the only option to get my database back any sort of life.
    5.i made all the required changes which was needed to create a ctlfile.fortunatly i got sucess in creating a controlfile abd i thought i've done it,but when i tried to open my database it says that the file was inconsistent
    due to failed media recovery and this won't allow to me open the database until unless i recover my tools tablesapce.
    6.now the quesion i want to ask is weather i can able to recover my tools tablespace,or i again need to recreate a ctlfile withought having tools datafile in my ctlfile.i wish if there is any hope so i able to open my database withough loosing system tablespace.
    your help would highly appriciated.
    thanks
    Alok Kumar.

    Asif Kabir,
    The OP cannot recover the dropped tablespace into the current database as the tablespace no longer belongs to the database.
    He will have to do a Point In Time Recovery and then copy data back.
    Even the method documented here (as TSPITR) will not work
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmtspit.htm#i1014116
    He has to do a manual restore and recover the database (e.g to an alternate server / database name) to a point before the DROP. And then export data from that recovered instance and import it into the production database.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • Undo tablespace recovery from RMAN backup

    Hi,
    Lets's assume we have RMAN backup and archivelog backups, and now
    my undo tablespace's disk crashed ,how can i recover?
    Can i recover while database is up?
    Thanks,
    Kumar.

    to recover UNDO tablespace from RMAN backup you must shutdown the database and start it in the MOUNT state to recover the missing files as follows
    rman target /
    RUN
    STARTUP MOUNT;
    ALLOCATE CHANNEL ch3 TYPE Disk;
    RESTORE datafile 'c:\u01\prod3\undo01.dbf';
    RECOVER datafile 'c:\u01\prod3\undo01.dbf';
    ALTER DATABASE OPEN;
    RELEASE CHANNEL ch3;
    hope this will help you

  • Undo Tablespace - newbie question

    Q1. Is an Undo Tablespace mandatory in a database ? I thought the only mandatories were SYSTEM, SYSAUX and TEMP ?
    Q2. What happens if you do not have an Undo Tablespace ?
    Q2. How does an Undo Tablespace relate to Undo / Rollback Segments in a database ?

    >
    Just to give simple, one-liner replies though its all covered in the doc link given by Helios,
    Q1. Is an Undo Tablespace mandatory in a database ? I thought the only mandatories were SYSTEM, SYSAUX and TEMP ?Yes, it is a mandatory tablespace loss of which would be requiring you to do a closed database recovery.
    Q2. What happens if you do not have an Undo Tablespace ?The system tablespace's Undo segment would be used. But that's a bad idea and you should have one .
    Q2. How does an Undo Tablespace relate to Undo / Rollback Segments in a database ?Because Undo segments are no where else but within the Undo tablespace only.
    HTH
    Aman....

  • Exclude undo tablespace in event

    How to exclude undo tablespace from monotoring in grid control? If event is created to notify when tablespace is reached to 90% and wants to exlcude undo. Is it possible?

    Edit the Undo tablespace and "Disable Threshold" on it.

  • How to rebuil undo and temp tbspc

    Hi hussein/helios
    Our apps undo and temp tablespaces got so big ( like 10Gb each) that it almost run out of space. Ho do i resync in back to 2Gb each.
    Is there a system commnad like > alter tablespace undo resync?
    Thanks a lot
    msK

    Hi,
    Please refer tech note *262066.1 : How To Size UNDO Tablespace For Automatic Undo Management*
    Hope helps.
    Regards,
    X A H E E R

  • Undo Tablespace queries

    Hi All,
    I am bit confused with reading about the undo table space. so i need some clarification
    1. There are 2 undo tablespace in our application. Could someone explain how the 2 undo tablespace works? I didn't find any details about this.
    2. Both the undo tablespace is 100% utilized. Where the the new transaction will go? Will new transaction force the used blocks to be expired if needed?
    3. What should be the ideal size of undo tablespace with respect to the total storage size?
    4. is Archive log related to undotable space? if yes then When the archive logs get generated?
    Thanks

    1. In an RAC database, each Instance has to have it's own Undo Tablespace.
    In a non-RAC (single instance) database, only one Undo Tablespace may be active at any time. The other Undo Tablespace would be inactive but can be switched to with an ALTER SYSTEM SET UNDO_TABLESPACE command.
    2. Even if an Undo Tablespace is "100% used" Oracle can expire (and even drop) old extents and segments that are no longer needed by the Undo_Retention value. Thus, undo data for older transactions that have committed (more than Undo_Retention period has elapsed since the commit) will be overwritten.
    3. There's no "ideal size". Undo sizing is based on Transaction volumes, fluctuations in transaction volumes, query patterns etc.
    4. No, there is no direct relation between the two. However, all Undo that is generated also is written to Redo -- i.e. Redo captures Undo as well as it captures changes to Tables, Indexes etc.
    I suggest that you read the Oracle Concepts documentation at
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/toc.htm
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • Undo deleted photo, how to recover a deleted file in iPad mini

    how to undo deleted photo? how to recover a deleted file in iPad mini?

    Unfortunately you can't. Except if you made a back up of your iPad on iTunes, restore it with the last save.
    Hope I helped

  • How to recover to keep tablespaces working after datafile deleted on OS

    hi,
    given situation like this :
    1. OS HPUX 11i
    2. Oracle 9.2 or 10g
    3. tablespace AAA have a datafile AAA.dbf
    4. AAA.dbf has been deleted by a guy on OS by accident
    5. it's a production database , i have other copy of product running elsewhere
    6. we can forget about the data on this tablespace , just wanna make sure new data will still be inserted
    I know there is a magic way involving file descritpor to recovery the file on OS if it was still opened by the process
    seems it only works on linux or solaris , since HPUX don't have /proc
    here is what i had done ,
    1. offline drop the tablespace
    2. export tablespace AAA from other DB without data but everything else
    3. import them into DB without AAA now
    only problem seems application couldn't insert into the tables ,Object priveledge not granted
    i'd checked the export file , those object grant SQL are right there , i just don't know why import hasn't worked
    so my question is
    if it were you ,
    1.do you have any better idea of how to recover
    2.if you any dirty and fast way of recovery File on HP box , appreciate that too
    3.can you image why import doesn't seems getting priveledge imported ? my DB version 9.2.0.4
    many thanks
    br/ricky

    thanks , aman ,lenord and you all
    looks like i'm the sinful :)
    to clear it up ... it's not me who did it , one of our guys , same thing ,hum ~~
    he deleted the backup , cause it's full and auto backup is not ongoing , and he's trying to make things right
    he deleted the datafile , cause i told him to rename the file to another space , coz vgdb is full , screw up that too ..
    yeah , it'a real production database ~~ , so ,if anybody learn somethings on this , credit on me , :)
    the version is 9.2.0.4 , but gonna move to 10g soonor or later , so put it there , to see if in 10g , we can do better ..
    tablespace created like five years ago , so , apply all archive since would be crazy ~
    this database have 500 Tablespaces , and thoudsands of tables , and the one lost is a important one ,
    but data in it , we can bear loss
    what i do , is offline drop the tablespace , and import the tablespace without data from other production DB ...
    only it didn't work out so well with object grant , and application still not inserting ...
    why i post it here , is i wanna learn better ways in this kind of situations ...
    i thought my way is not good enough
    anway , i'll look at all your suggestions
    thanks
    br/ricky
    Edited by: zs_hzh on Sep 15, 2008 10:12 PM

  • How to exclude UNDO and temp tablespace using monitoring template

    hi,
    as per MOS note id 816920.1 undo and temp tablespace is excluded from monitoring starting version 11G onwards.It says that thresholds will need to be explicitly set if undo and temp needs to be monitored
    we have grid 12C implemented now with monitoring templates which sets thresholds for all tablespaces. does it apply that thresholds to undo and temp too?? we are receiving alerts for undo and temp tablespaces and we wish to disable them. We have undo tablespaces with different names in many databases as per naming conventions for that line of business.
    How can i exclude undo and temp tablespaces from monitoring using grid 12C monitoring templates. is there a way through templates where i can set thresholds of permanent tablespaces only???

    In EM12c, go to the 'Enterprise' menu, then 'Job', then 'Library'. There should be an out-of-the-box job called "DISABLE TABLESPACE USED (%) ALERTS FOR UNDO AND TEMP TABLESPACES" that you can run against your database targets, and that job will disable database-generated alerts.
    If a previous admin has set up EM12c-generated alerts for undo and temp, then yes, a monitoring template will take care of disabling them. Either remove those alerts from the existing monitoring template and apply them to your targets, or create a new monitoring template based on one database's current settings, remove those warning/critical thresholds for your undo and temp tablespaces, and apply it to your targets.

  • (URGENT) How to recover tablespace/datafile from an old backup ?

    Hello,
    I'm in charge of installation of IBM Websphere Commerce with an Oracle DB.
    When I installed this software I do a "shutdown immediate" and copy all the files (data, ctl & redo) in an other directory a month ago.
    I have some issues on a specific tablespace and I'd like to recover this tablespace so that my tablespace will be in the same state a month ago.
    When I try "recover automatic tablespace data" Oracle restored and reload all the logs.
    How can I restore with that old tablespace and find the content of september or is it possible to restore a tablespace without reload the redo logs ?
    Thanks for any precious help.
    Guillaume

    If it was a complete set of files after shutdown immediate, you can mount that database on some other server with same structure and check the data in the tablespace. I dont see a need to load the old tablespace in the current database just to see some values.
    By restoring the old tablespaces, you might even run into some referentials (if any) problem.

Maybe you are looking for

  • MySQL 4 Connection not quite working

    I am attempting a db connection to MySQL vsn. 4.0.12 from JDeveloper. It works in that the connection wizard test says 'success' and I can open the connection. However when open I can not see any tables in the JDeveloper tree. It does seem to indicat

  • Unresponsive bottom of screen on iPhone 3G

    dropped my iphone 3g on a carpet, however the very bottom of my screen has now become unresponsive so wont allow me to bring the keyboard up on messages - any suggestions?

  • Mac Mail in full screen keeps sending same email

    In full screen mode, after I hit "SEND" , the email doesnt close (as if i havent pressed send). If I keep pressing "SEND" it keeps sending the same email (unfortunate for the recipient). The only way to releave the problem is to exit fullscreen. Anyo

  • Image problem when exporting to pdf

    I have several images on top of each other on the front page of my document. Two large images on top of each other with the the top one being transparent and several small ones on top of the two large. Everything looks fine i pages, however when i ex

  • [svn:fx-trunk] 7952: PARB changes for RichEditableText, TextArea and TextInput

    Revision: 7952 Author:   [email protected] Date:     2009-06-18 02:57:23 -0700 (Thu, 18 Jun 2009) Log Message: PARB changes for RichEditableText, TextArea and TextInput RichEditableText, TextArea