When one of contolfile is corrupt then how to recover the controlfile?

when one of contolfile is corrupt then how to recover the controlfile?

Let us say we have 3 control files and they are named as "cont01.ctl,cont02.ctl & cont02.ctl" and they are stored in three different mount points (/u01,/u02 & /u03)
first controlfile -> /u01/oradata/prod/cont01.ctl
second controlfile -> /u02/oradata/prod/cont02.ctl
third controlfile -> /u03/oradata/prod/cont03.ctl
1. According to the ALERT log file or any other source let us say the third controlfile got corrupted...
Now , what you can do is you have to shutdown the database and remove cont03.ctl and copy it form cont01.ctl or cont02.ctl :
$ cd /u03/oradata/prod
$ rm -rf cont03.ctl
$ cd /u01/oradata/prod
$ cp -r cont01.ctl /u03/oradata/prod/cont03.ctl
Now, you can go ahead and start the database. The database will start without any issue and it wil be ready for any operations on it..
2. Suppose all the files of the database got corrupted ... First of all you need to have backup of the database... the steps that are needed of this scenario are :
--> shutdown the database with abort option
--> Assuming its RMAN backup .. you have to first start the database in nomount state and you have to restore the contolfile from the last backup been taken and start the database in mount state and then perform the database recovery and open the database with resetlogs option(since you dont have current controlfile becoz you have restored it from a backup) :
Assuming its catalog:
$ rman target / catalog usr/pawd@tns
RMAN> STARTUP NOMOUNT;
RMAN> restore controfile (from autobackup) ; -- in case you have auto backup then use the autobackup option
RMAN> alter database mount ;
RMAN> recover database;
RMAN> alter database open resetlogs ;
After the database gets opened , immediately you have to take the backup..
Hope its clear...Cheers!

Similar Messages

  • I was using photoshop CC as normal, when suddenly it started going haywire. It has corrupted all the one PSD files by distorting the images and colour. Does anyone know how to recover the original images?

    I was using photoshop CC as normal, when suddenly it started going haywire. It has corrupted all the open PSD files by distorting the images and colour. They are now completely unrecognisable and unusable. Does anyone know how to recover the original images as I was saving them as I went along but the files are now corrupt?

    What version of Photoshop are you running?
    I've seen a couple of instances over the last week or two where Photoshop has added masks, strange colours and also merged content from two separate PSD files that were open at the same time.
    This has occurred on two different iMacs, (both 10.10.x) running Photoshop CC 2014.2.2 (20141204.r.310 x64).
    see image below for example:

  • I-photo:  I used 2 cameras to take pictures on a trip --- i have put the pictures from both cameras into an album --- when i click on view and then sort by date, the pictures do not sort by date --- any ideas on how to get the pics sorted by date?

    I-photo:  I used 2 cameras to take pictures on a trip --- i have put the pictures from both cameras into an album --- when i click on view and then sort by date, the pictures do not sort by date --- any ideas on how to get the pics sorted by date?

    Select all the photos that you need to change, then click the "Photos" menu and choose "Adjust Date and Time".
    If you add a year, it will adjust all the photos that you selected by adding a year (so if you accidentally select one of the photos that already has "2012", that will change to "2013"). 

  • I like the mail feature with one exception; I cannot figure out how to change the font size of incoming mail permanently.  And, when answering an email I have to highlight the first few words and zoom it so I can see what I am writing.  what am I missing?

    I like the mail feature with one exception; I cannot figure out how to change the font size of incoming mail permanently.  And, when answering an email I have to highlight the first few words and zoom it so I can see what I am writing.  what am I missing?

    You can type the email using what you set in preferences and then highlight the text and use command - minus sign (or command - + for larger) to reduce the size of the text.
    You can also type command - T and a window will appear allowing you to select fonts/sizes/color/ background highlight.
    The above works in Notes also. I haven't tried to do this in any other Apple application.
    For incoming emails, you can use the above to reduce font size, but I don't know of a way to permanently set the incoming font size to a default.

  • I up dated to the ios 5 and lost a few things like photos and contacts but then went to a concert and took photos when i came home i restored from last back-up got my old pictures back but lost the new ones. Is there any way i can recover the new ones?

    i up dated to the ios 5 and lost a few things like photos and contacts but then went to a concert and took photos when i came home i restored from last back-up got my old pictures back but lost the new ones. Is there any way i can recover the new ones?

    Please please help me, if you know how.

  • How to recover the database when some of the archive log file get deleted.

    I am facing a problem with Oracle database, which is related to archivelogs.
    Our development database is running in archivelog mode, but we don't have backups scheduled and have no recovery catalog.
    When the database was in running condition, disk got full, so some archivelogs were deleted manually.
    After this they restarted the DB, and now DB is not coming up. Errors are as follows:
    SQL> startup
    ORACLE instance started.
    Total System Global Area 1444383504 bytes
    Fixed Size 731920 bytes
    Variable Size 486539264 bytes
    Database Buffers 956301312 bytes
    Redo Buffers 811008 bytes
    Database mounted.
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: '/export/home/oracle/dev/ADVFRW/ADVFRW.system'
    SQL> recover datafile '/export/home/oracle/dev/ADVFRW/ADVFRW.system'
    ORA-00283: recovery session canceled due to errors
    ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
    SQL> recover database using backup controlfile;
    ORA-00279: change 215548705 generated at 09/02/2008 17:06:10 needed for thread
    1
    ORA-00289: suggestion :
    /export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC
    ORA-00280: change 215548705 for thread 1 is in sequence #1107
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    /export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC
    ORA-00308: cannot open archived log
    '/export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    Media recovery cancelled.
    SQL>
    1. How to recover the database and bring it online
    Any help will be highly appreciated.
    With Regards
    Hemant Joshi
    Edited by: hem_Kec on Sep 7, 2008 9:07 AM

    Hi,
    Archive log files are the copies of redolog files.As redo log files are circularly overwritten,oracle generates archive log file of the corresponding redo logfiles being overwritten.So if you have a backup that dates back to 10 am in the morning and if your database creashed at 3 pm,you cannot use the redo log files alone as they have incomplete information.To completely recover the database upto 3 pm,you need archive log files generated between 10 am to 3 pm. In your case since you are missing one archive log file,you cannot perform complete recovery and hence would suffer data loss.

  • When a context node use non-singleton, how to invoke the supply funtion eve

    when a context node use non-singleton, how to invoke the supply funtion everytime the lead selection is changed ?

    Hi wei,
    <b>Non-singleton nodes:</b>
    Web Dynpro allows you to define non-singleton nodes. Each non-singleton node has one node instance for each node element of the parent collection at runtime. The advantage is that each instance can be accessed directly. When using non-singleton nodes, the nodes are only created when the node values are retrieved. This can save resources that otherwise would slow down the performance of the application.
    <b>Supply function:</b>
    The Web Dynpro tools also automatically enhance the corresponding controller class with a supply function including the user coding area contained in it
    Supply functions are implemented as methods of type
    <b>public void supplyChildNodeElements(SomeChildNode node,
                                        SomeParentNodeElement)</b>
    in a Web Dynpro controller (view controller or custom controller). Supply functions and context nodes have a 1..1 relationship, that is, supply functions are specific for individual context nodes. Under certain conditions, supply functions are called by pages in the Web Dynpro runtime environment.
    Hope this helps u,
    Regards,
    Nagarajan.

  • If I have two laptops connected to a single wireless hard drive, what happens when one laptop wants to go on a trip and the other one needs to stay home?

    if I have two laptops connected to a single wireless hard drive (i.e. Time Capsule), what happens when one laptop wants to go on a trip and the other one needs to stay home?  I'm afraid I know the answer, but I'm hoping Apple has a great solution to my problem.

    What if this little piggy goes to market but this little piggy stays home?
    The computer on a trip will do snapshot backups on the hard drive that will then be incorporated into the Time Machine backup once you get it back home. See
    OS X Lion- About Time Machine's "local snapshots" on portable Macs
    Open the Terminal in the Utilities folder and enter or paste the appropriate command line. Press RETURN and enter your admin password when prompted. It will not be echoed.
    To turn them ON: sudo tmutil enablelocal
    To turn them OFF: sudo tmutil disablelocal
    Note that turning them OFF will also delete all existing snapshots.

  • I have one file ss_fpga.rbt,abcd.txt how to know the details of the file

    i have  one file  ss_fpga.rbt,abcd.txt how to know  the details  of the file  (when was the date created ,when was date modfied,owner) any function is there like   GetFileInfo

    Yes there is some, called stat(), look the links in your post in stack overflow, there is a lot of link in the anser.
    They talk about sys/stat.h a C header, witch contain the stat() function.
    stat() return a lot of things (size, changes, access etc) about files. look the "here" everywhere in the Yann anser, UP his anser and put the subject as resolved.
    Thanks,

  • What happened to the recently purchased icon on the left side of the playlist?  I used to could purchase songs from one of my computers and then put them on the second authorized computer by selecting recently purchased.  Is there another way?

    What happened to the recently purchased icon on the left side of the playlist?  I used to could purchase songs from one of my computers and then put them on the second authorized computer by selecting recently purchased.  Is there another way?

    Well in order to keep all the ratings, playcounts ect ect of songs in iTUnes, place the songs back into there original folders/places on the "Old harddrive" by cutting (Not copying) them from the new Harddrive. Now iTunes should report the songs has being there and have ! marks beside the imported folder from your external Harddrive.
    Now you will delet the dead/broken links (Or missing music from the new drive)in iTUnes. Goto Ottos site for a script that will remove dead links and other things here
    Just download, unzip, and run the program.
    http://ottodestruct.com/iTunes/QuickScripts.zip
    Now with everything in place and the dead links removed you will either consolidate the library or set it to copy to another Folder. If you consolidate it moves ALL your music listed in iTunes to the "iTunes Music" folder and can not be reversed. If you set it to copy, it will just copy music from its current folder to the iTunes music folder. You will have to pick the best option for you but consolidating will work best if your trying to free up space. To consolidate goto "Advanced" and select "Consolidate Library". To copy goto Edit>preferenses>Advanced tab>general sub tab and check "Copy FIles to iTunes music Folder when added to library". THis location is also where you will change the location of iTunes Music folder from your old harddrive to the new one by hitting the "Change" button above the reset button

  • Bought a new macbook and want to manually manage music onto my iphone 4s but when i click 'manually manage' and then 'apply' i get the message saying it will erase everything already on there. Need help please!

    Bought a new macbook and want to manually manage music onto my iphone 4s (as it is already full of music from old windows laptop) but when i click 'manually manage' and then 'apply' i get the message saying it will erase everything already on there. Need help please!

    Before you sync your iPhone make sure that all the music that was synced to your phonereviously has been copied to your iTunes on the new MacBook Pro. Then when you connect your phone you will be able to either sync all music or select only those playlists that you want on the phone.

  • Oracle 9i System file get corrupted. How to remove the corruption.

    Hello,
    I am facing problem during backup of oracle database (Oracle 9i, 32 bit windows). Pls see the following error messages.
    Sep 16 10:48:41 mnmccbr.mci.sc: * mnmcfs.mci.sc:E:\SC\SC12.1\Databases\Oracleconfig\oraBackupNM45 ORA-19566:
    exceeded limit of 0 corrupt blocks for file E:\SC\SC12.1\DATABASES\ORACLECONFIG\SYS1NM45.ORA
    Output of dbverify.
    DBVERIFY: Release 9.2.0.6.0 - Production on Sat Oct 11 09:40:42 2008
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    DBVERIFY - Verification starting : FILE = E:\SC\SC12.1\DATABASES\ORACLECONFIG\SYS1NM45.ORA
    Page 28093 is marked corrupt ***
    Corrupt block relative dba: 0x00406dbd (file 1, block 28093)
    Bad check value found during dbv:
    Data in bad block -
    type: 6 format: 2 rdba: 0x00406dbd
    last change scn: 0x0000.09abd22e seq: 0x2 flg: 0x06
    consistency value in tail: 0xd22e0602
    check value in block header: 0x8b91, computed block checksum: 0x800
    spare1: 0x0, spare2: 0x0, spare3: 0x0
    DBVERIFY - Verification complete
    Total Pages Examined : 31616
    Total Pages Processed (Data) : 21138
    Total Pages Failing (Data) : 0
    Total Pages Processed (Index): 7246
    Total Pages Failing (Index): 0
    Total Pages Processed (Other): 1451
    Total Pages Processed (Seg) : 0
    Total Pages Failing (Seg) : 0
    Total Pages Empty : 1780
    Total Pages Marked Corrupt : 1
    Total Pages Influx : 0
    Highest block SCN : 224578617 (0.224578617)
    The Backup is enabled in our machine but we are not able to take backup since we we get the error (6 Sept). I am not sure whether archive log are available since 6th Sept. Even oracle is working fine but backup is not possible.
    Pls note that this is customer testbed. Any idea to remove the corruption from the system file.
    Thanks
    With Regards
    Hemant Joshi

    Hello All,
    I tried the resize procedure but the corruption doesn't cleared.
    SQL> ALTER DATABASE DATAFILE 'E:\SC\SC12.1\DATABASES\ORACLECONFIG\SYS1NM45.ORA' RESIZE 246 M;
    Database altered.
    SQL> ALTER DATABASE DATAFILE 'E:\SC\SC12.1\DATABASES\ORACLECONFIG\SYS1NM45.ORA' RESIZE 245 M;
    Database altered.
    SQL> ALTER DATABASE DATAFILE 'E:\SC\SC12.1\DATABASES\ORACLECONFIG\SYS1NM45.ORA' RESIZE 244 M;
    ALTER DATABASE DATAFILE 'E:\SC\SC12.1\DATABASES\ORACLECONFIG\SYS1NM45.ORA' RESIZE 244 M
    ERROR at line 1: ORA-03297: file contains used data beyond requested RESIZE value
    SQL> ALTER DATABASE DATAFILE 'E:\SC\SC12.1\DATABAES\ORACLECONFIG\SYS1NM45.ORA' RESIZE 400 M;
    Database altered.
    Can you please let me know how to recover corrupted Block or how to recover the corrupted file only.
    Thanks
    With Regards
    Hemant Joshi.

  • Hi, I have Mac Book It currently at 10.6.8 I want know how to recover the FileVault Password? I tried /Library/Keychains/FileVaultMaster.keychain but it say permission denied when i'm the admin account

    Hi, I have Mac Book It currently at 10.6.8 I want know how to recover the FileVault Password? I tried /Library/Keychains/FileVaultMaster.keychain but it say permission denied when i'm the admin account

    Hi BobRz,
    As this is a new issue for me, I believe I had the incorrect approach, maybe you can help me. What I want to do is recover a few files in my desktop, and some information i had on the iCal application and the Mail application as well.As I do not want to do a full migration into this computer (which is not mine) I believe that starting the damaged MBP in Target mode should allow me to search and cop the files I need. But:
    1. Can I open the Ical and mail apps to look for the info I need while reading it as an external HD  ?
    2. Do the target machine (my friends) still need to be updated to ML o Mavs so that it recognizes my MBP as an external drive if starting it in Target mode ? (no migration assistant)
    Thanks.

  • How to recover the autocomplete data from a Time Machine backup?

    How to recover the Safari 5.1.7 autocomplete data from a Time Machine backup on Mac OS X 10.6.8 (Snow Leopard)?
    To solve other issues (Safari crashing sometimes when saving web pages), I selected:
    Safari - Empty Cache
    Safari - Reset Safari - Selected ALL - Reset
    I could later on recover some Safari autofill data restoring
    HD/Users/~/Library/Cookies/Cookies.plist
    HD/Users/~/Library/Safari/Form Values
    HD/Users/~/Library/Safari/History.plist
    but other autocomplete data is missing, including the one when filling web form search fields in web pages, for instance, and also some username and password login data on some web sites.
    How to restore all such data from the Time Machine Backup?
    Thanks!

    I also recovered:
    HD//Users/~/Library/Keychains/login.keychain
    What else should I recover?

  • How to recover the query

    Hello,
    Kindly tell me how to recover the query?i have make some changes in my current query and now when i run my query it is not running,not executing,..so i want to recover same query ..is there any way by which i can recover my query?plase tell me.( i had added one condition in my query ,caz of that my query is not open in query designner,in analyser)

    Hi,
    The error message is due to some special char in condition.
    Please check the table RSZRANGE in SE16 for your query.Check either LOW or HIGH
    The range defined here could be problematic.For values which should indicate most likely minus infinity, the new Query Desginer has a special handling. So here is the problem only how to open such query. We can offer 2 different fast solutions:
    1. Convert this query back to 3.x format using report COMPONENT_RESTORE and open it in Query Designer 3.x
      Change the definition of the exception from -1E+value to any number and save the query.
       Open the same query in Query Desginer 2004s and return the minus infinity using '#' sign. Save the query.
    2.Select this record directly the table RSZRANGE using SE16
    Find the field low or high..change it to #.
    Save the record and try to open this query once again using Query Desginer 2004s. It will be possible and the exception will be working in the range from minus infinity to your number.
    Rgds
    Manoj Kumar

Maybe you are looking for