Re-create controlfile when lost all datafile

dear all,
assume i have a database, i backuped full database use Rman, after that i deleted all of datafile,redolog file,controfile of database and i also deleted the backup controlfile by Rman, backup snapshot cotrolfile,
so how to create the controlfile in the case?
thank,

TyL wrote:
hi CKPT
"If you have RMAN backup, then no need to create the controlfile, Restore of controlfile is fine."
thank your response,
but in the case, the backup controlfile is lost (error hardware)
thank,If Database is down, if no backup of controlfile is found from OS level,
Then you have to restore controlfile from RMAN backup, There is no other option.
@Fiedi Z
We can take the trace of controlfile but OP is expecting how to take the trace file when datafiles/controlfile deleted.
Thanks.

Similar Messages

  • When to use REUSE/SET, NO-ARCHIVELOGS in create controlfile in HOT BACKUP?

    I am a trainee Oracle DBA and have the following queries. Kindly reply with detailed explanation as I want to get my concepts cleared!
    Q1>> While doing a user managed hot backup, when we are creating a control file(CREATE CONTROLFILE) from trace for recovery when do we use the create control file with the following options:
    *1. REUSE / SET*
    *2. ARCHIVELOGS / NOARCHIVELOGS*
    Q2>> In what scenarios do we re-create the control file while recovering datafiles from a hot backup??
    Thanks a tonne!
    Regards,
    Bhavi

    Hemant K Chitale wrote:
    1.1 It is not "REUSE/SET". These are two very different clauses.
    REUSE is when you want the CREATE to overwrite the existing controlfile(s). If the controlfile(s) {as named in the instance parameter file, initSID.ora or spfileSID.ora} is/are already present, the CREATE fails unless REUSE is specified.
    SET is when you want to change the database name. Oracle then creates the controlfile(s) with the specified database name and updates the headers of all the datafiles. If you run a CREATE with a database name that is different from that in the datafile headers, the CREATE fails unless you include a SET to specify that the name must be changed. Note that this also means that the name in the instance parameter file must already have been updated.
    1.2 ARCHIVELOG/NOARCHIVELOG is to set the database state. The same is achieved by issuing an "ALTER DATABASE ARCHIVELOG/NOARCHIVELOG" when the database is MOUNTed but not OPEN.
    2. You'd run the CREATE CONTROLFILE if you do not have a binary backup of the controlfile.
    Optionally, you can also use CREATE CONTROLFILE to rename all the datafiles by specifying the new locations of the datafiles -- the datafiles must already be present in the new locations, else the CREATE fails if it doesn't find a datafile that is included in the list of datafiles included in the CREATE statement.
    RMAN is the correct way to run Backups. User Managed Backup scripts are used in cases like Storage-based Snapshots / SnapClones / BCV.
    Hemant K ChitaleThanks that was really helpful..One last question when to use the resetlogs/noresetlogs clause in the create controlfile statement. I have noticed that at times it accepts resetlog while at times it accepts noresetlogs

  • When I updated to iOS 8.3 I lost all shared photo albums on my iPad Air. Other devises which I shared to still have access to photo albums but my iPad does not, therefore I can no longer add or delete to shared albums. I can create new shared albums.

    When I updated to iOS 8.3 I lost all shared photo albums on my iPad Air. Other devises which I shared to still have access to photo albums but my iPad does not, therefore I can no longer add or delete to shared albums. I can create new shared albums.

    Hello JimS19,
    I'm sorry to hear you are having these issues with your iPad. If you are having issues accessing your Shared Albums from your iPad (but not from your other devices), you may want to double-check your iCloud Photo Sharing configuration as outlined in the following articles, just to make sure it hasn't changed:
    iCloud Photo Sharing FAQ - Apple Support
    Get help using iCloud Photo Sharing and shared albums - Apple Support
    Sincerely,
    - Brenden

  • Lost all email when I deleted email accounts and created new accounts in Thunderbird, this is due to complications changing password. How do I get mail back?

    First, I did not do a backup, did not think I needed one, my bad. I recently had to change my passwords in the ISP Server and of course in Thunderbird. There were complications, none of my email clients, both Outlook and Thunderbird on multiple computers, would authenticate the new passwords, in working around them I changed to imap from pop3, then later tried to change back to pop3, did not want to work, so, I deleted all of the accounts and recreated them back under pop3, in that process I seem to have lost all of my mail folders. Is there a way to get them back? I have deleted and recreated accounts before and not had this problem. Thanks in advance for any help.

    Your messages might still be there in your Thunderbird profile folder.
    You could create a new account and then point to the folder that already exists.
    See [https://support.mozilla.org/en-US/kb/profiles-tb Profiles TB] for more information.

  • PERFORMING FULL RECOVERY WHEN THE RECOVERY CATALOG AND CONTROLFILE ARE LOST

    제품 : RMAN
    작성날짜 : 2002-05-30
    PERFORMING FULL RECOVERY WHEN THE RECOVERY CATALOG AND CONTROLFILE ARE LOST
    ===========================================================================
    PURPOSE
    Recovery Catalog와 Controlfile이 손상되었을 때 Oracle9i의 new feature인
    Controlfile Autobackup을 이용하여 full recovery를 수행하는 방법을 알아본다
    EXPLANATION
    Catalog와 Controlfile이 모두 손상되었을 경우 full recovery를 수행할 수 있도록
    하기 위해 oracle9i부터 Controlfile Autobackup이라는 New feature를 제공한다.
    이 Feature가 활성화되면 RMAN은 자동으로 특정 형식(specific format)으로
    controlfile을 backup한다 나중에 RMAN은 Recovery catalog를 access하지 않고도
    이 backup을 인식할 수 있다. 이 형식은 "%F"라는 variable을 포함하는데
    이 variable은 중요한 정보인 DATABASE ID를 포함하고 있다.
    이것은 다음과 같은 CONFIGURE 명령을 사용하여 Turn-on 될 수 있다.
    RMAN> configure controlfile autobackup on;
    활성화시킨 후에 controlfile autobackup의 format을 변경할 수 있다. 그러나
    이것은 반드시 variable "%F"를 포함해야만 한다. 그렇지 않으면 다음과 같은 Error
    를 만나게 된다.
    RMAN> configure controlfile autobackup format for
    2> device type disk to 'c:\backups\%U';
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00579: the following error occurred at 01/31/2002 11:57:21
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: configure
    RMAN-06492: controlfile autobackup format "c:\backups\%U" must specify a "%F"
    format specifier
    %F 는 RMAN이 recovery catalog 없이 backup piece를 인식하도록 Key이다.
    이 Feature가 활성화 된 후에 RMAN은 BACKUP 명령을 수행할 때마다 controlfile에
    대해서 별도의 backup을 수행한다. 이전에는, controlfile 은 오직 system
    tablespace가 backup되는 경우에만 자동으로 backup되었다.
    Database Backup은 아래와 같은 log를 출력한다.
    RMAN> backup database;
    Starting backup at 31-JAN-02
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=12 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE\ORADATA\PROD\SYSTEM01.DBF
    input datafile fno=00002 name=C:\ORACLE\ORADATA\PROD\UNDOTBS01.DBF
    input datafile fno=00005 name=C:\ORACLE\ORADATA\PROD\EXAMPLE01.DBF
    input datafile fno=00006 name=C:\ORACLE\ORADATA\PROD\INDX01.DBF
    input datafile fno=00008 name=C:\ORACLE\ORADATA\PROD\USERS01.DBF
    input datafile fno=00003 name=C:\ORACLE\ORADATA\PROD\CWMLITE01.DBF
    input datafile fno=00004 name=C:\ORACLE\ORADATA\PROD\DRSYS01.DBF
    input datafile fno=00007 name=C:\ORACLE\ORADATA\PROD\TOOLS01.DBF
    channel ORA_DISK_1: starting piece 1 at 31-JAN-02
    channel ORA_DISK_1: finished piece 1 at 31-JAN-02
    piece handle=C:\BACKUPS\01DFKAIH_1_1 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:01:56
    Finished backup at 31-JAN-02
    Starting Control File Autobackup at 31-JAN-02
    piece handle=C:\BACKUPS\C-4159396170-20020131-00 comment=NONE
    Finished Control File Autobackup at 31-JAN-02
    Note:
    Controlfile backup은 backup의 끝에서 수행된다.
    그리고 이 backup piece name의 두번째 string은 dbid이다(4159396170)
    Current controlfile이 database와 함께 손실되고 Recovery catalog도 손상되어
    사용할 수 없게 되었을 때 controlfile autobackup이 controlfile을 restore하기
    위해 사용될 수 있다. restore된 controlfile은 db를 mount하고 datafile들을
    restore하기 위해 사용될 수 있다.
    Controlfile autobackup을 이용하여 full recovery를 수행하기 위해서는 아래와
    같은 과정을 수행하면 된다.
    1. Target instance를 위한 new init.ora를 생성한다. backup이 있다면 이것을
    사용할 수 있다.
    2. Startup nomount your new instance.
    3. RMAN은 시작하나 어떤 connect statement도 수행하지 않는다.
    4. RMAN prompt상에서 DBID를 설정한다. 만약 DBID를 모르면 controlfile autobackup
    의 이름으로부터 이것을 알 수 있다.
    RMAN> set dbid=4159396170;
    5. Dbid를 설정한 후에 nomount로 startup한 target instance에 connect한다.
    RMAN> connect target /
    6. 만약에 backup이 disk상에 있고 controlfile autobackup을 non-default location
    으로 지정하였다면 파일을 다음과 같은 위치로 옮겨 놓는다
    ON UNIX : ORACLE_HOME/dbs
    ON WINDOWS: ORACLE_HOME/database
    RMAN은 controlfile autobackup을 찾기 위해 위 directory를 검색한다.
    만약 controlfile autobackup location을 바꾸지 않으면 위 directory안에
    backup이 생성되게 된다.
    만약에 backup이 tape에 있다면 restore시 channel과 device를 기술하기 위해서
    run block을 사용해야 한다. database가 mount되어 있지 않기 때문에
    default device와 channel을 설정할 수 없다.
    RMAN> run { allocate channel c_1 type 'sbt_tape'
    parms "ENV=(NB_ORA_SERV=rm-wgt)";
    restore controlfile from autobackup;}
    7. Restore the controlfile:
    RMAN> restore controlfile from autobackup;
    8. Mount the database from the restored controlfile:
    RMAN> alter database mount;
    9. Restore datafiles:
    RMAN> restore database;
    10. file들을 restore한 후에 recovery를 수행할 수 있다.
    이때 current online redo log가 없고 또한 backup controlfile을 사용하기
    때문에 incomplete recovery를 수행해야 한다. 이를 수행하기 위해서는
    "UNTIL TIME"을 설정해야 하고 open시에는 resetlogs를 사용해야 한다.
    RMAN> set until time=<time stamp>;
    RMAN> recover database;
    RMAN> alter database open resetlogs;
    REFERENCE DOCUMENT
    NOTE:174623.1

    BACKUP Command Behavior
    ON
    If the backup includes datafile 1, then RMAN does not automatically include the current control file in the datafile backup set. Instead, RMAN writes the control file and server parameter file to a separate autobackup piece.
    Note: The autobackup occurs regardless of whether the BACKUP or COPY command explicitly includes the current control file, for example, BACKUP DATABASE INCLUDE CURRENT CONTROLFILE.
    OFF
    If the backup includes datafile 1, then RMAN automatically includes the current control file and server parameter file in the datafile backup set. RMAN does not create a separate autobackup piece containing the control file and server parameter file.
    BUT Dear Mohammed,
    It is not working accordingly. what I did is :-
    1. I switched off the AUTOBACKUP
    2. Then I took whole database backup, that means it included File # 1
    3. But according to above it is going to include autobackup of controlfile and spfile in the same backupset .
    4. But when I asked it to restore controlfile from autobackup it said NO AUTOBACKUP FOUND.
    COULD YOU PLEASE HELP ME ONCE AGAIN DEAR.
    If it works accroding to above then it should have my Autobackup.
    Regards
    Harpreet Singh

  • I lost all my playlists when downloading the new itunes. Anyway to get them back?

    I lost all my playlists when downloading the new itunes. Besides honestly wanting to cry, is there anyway to get them back without making them all AGAIN? And thanks so much, stupid Apple. Am looking for a new MP3 player to take your stupid ipod player's place. I used to love my ipod...now everytime I turn around, apple has screwed with something that causes ME time and trouble.

    If you created/burned Recovery Media boot from it to restore the original OS with all drivers/software. If you don't have Recovery Media you can order from HP for a small fee. Contact HP Support in your country /region to request Recovery Media. Worldwide contact info can be accessed here>>Contact HP
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • I just upgraded to iPhoto '11.  When it was finished many pictures do not appear.  I have a black box but the information for the picture is still there.  Some are raw and some are jpeg.  Also lost all albums.  Can anyone offer assistance?

    I just upgraded to iPhoto '11.  When it was finished many pictures do not appear.  I have a black box but the information for the picture is still there.  Some are raw and some are jpeg.  Also lost all albums.  Can anyone offer assistance?  Using iOS 10.7.5

    Apply the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button and select the library you want to add in the selection window..
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • I updated my iphone and lost all my notes there is lots of important notes, how can i get em back especially that on itunes when i sync my iphone a note appear that there is no back up on icloud,and i cannot restore?

    i updated my iphone and lost all my notes there is lots of important notes, how can i get em back especially that on itunes when i sync my iphone a note appear that there is no back up on icloud,and i cannot restore?

    Without a backup on iCloud, there needs to be another device using the same @icloud address that is syncing to the notes.  Without that, there is no way to go back in time to create a backup before performing a major update.

  • I put some photos in the itouch and when I updated it, I lost all my photos... What can I do? Please... I need it!!, I put some photos in the itouch and when I updated it, I lost all my photos... What can I do? Please... I need it!!

    I put some photos in the itouch and when I updated it, I lost all my photos... What can I do? Please... I need it!!, I put some photos in the itouch and when I updated it, I lost all my photos... What can I do? Please... I need it!!

    You can only import photos from the camera roll into the computer. Is that the album that you are seeing?
    Any albums that you create on the device itself (the iPad that is) cannot be transferred to your computer. iPad created albums do not contain copies of your photos but merely pointers to those photos so they do not actually exist in those albums.

  • ICal has lost all my entries and quits when opened

    I know that people have had problems with iCal quitting unexpectedly and I have read through the posts relating to those problems, but nothing quite fits what has happened to me.
    iCal has 'lost' all of my entries in the various calendars that I have set up, including the subscribed calendar of public holidays. When opened the spinning ball of death starts and then the program quits.
    I have been on other user accounts which are synced with this computer and iCal is working/displaying normally. I have created a new entry in a calendar whilst logged on as another user.
    When I have checked Library:Application Support: iCal there are 1,929 items in the Sources folder all created at the same time (I have only established 8 calendars + 1 subscribed in reality).
    I have backed up a synced iCal from another user account, put it in User:Shared so it is now available on my desktop. Unfortunately when I try to open it, it hangs and iCal eventually quits again.
    Any ideas?
    iMac 5.1 Intel Core 2 Duo   Mac OS X (10.4.7)   MacBook 1.1; iPod Shuffle

    Happened to me as well! ******* HATE APPLE FOR THAT! i HOPE THEY SUFFER LIKE STEVE JOBS!!!! even WORSE!!! GO TO **** APPLE!
    I bought Apple products since 10 years!
    I HATE YOU!!!!!

  • Lost all notes when error occurred while updating

    I was updating my ipad to IOS 5 when an error occurred.
    I was able to restart the update and complete it, but I lost all of my notes and contacts!!!
    Please Help!!!

    Brent
    You’re having two problems there, I think. One is with the disk. You’re not going anywhere with the other until you can get that to mount.
    Assuming you can, it sounds like the database has been damaged:
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    2. Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 08* library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.
    Regards
    TD

  • Lost all my Calendars when I went to iCloud

    So I moved to iCloud and then my iCal on my MacBook was outof step with my iPhone and iPad. So I went to the Apple Store in Rancho Cucamongaand they deleted all of my iCal entries on my iPhone and then went iCloud frommy MacBook Then my iCal on my MacBook and iPhone were in step. When I got home,I did the same thing on my iPad and then I LOST ALL MY CALENDARS!!
    I relied on iCal and do not have a backup, and Time Machineand Carbonite (which I use) do not have an iCal backup.
    I need to get my iCal back. PLEASE HELP!!

    I ended up going to the Apple Store and it took 2 people to get this problem resolved.
    Basically, they did the following:
    deleted all of my iCal calendars from all devices
    deleted iCloud from Mac Book, iPhone and iPad
    turned of wireless (so sync would not work)
    restored from a week back from Time machine the Calendar data in the Library folder
    saved each of the calendars out as an .ics
    turned on wireless again
    created iCloud on the devices again
    turned of wireless (so sync would not work)
    created the calendars I have before on all the devices
    restoredthe .ics files
    turned on wireless again and then synced
    everything in iCal was back to one week ago, which was better than having nothing!!
    Be VERY careful moving to iCloud!

  • I didn't back up and have lost all my data when updating to iOS 7 :(

    I didn't back up and have lost all my data when updating to iOS 7 I have an iphone 4s.  Is there any way at all i can recover the data?! Help pls!!!

    Actually, if you have never backed up your iPhone with iTunes or iCloud manually, there are still possibilities that iTunes or iCloud has backed up your iPhone automatically: every time you sync the iPhone with iTunes, iTunes will back up your iPhone automatically; if your iCloud backup was enabled, every time your iPhone is connected with Wifi and a power source with screen-locked, iCloud will create a backup automatically. If you find the backups, but the backups are not up to date, and you don’t want to lose the data generated after the backups, you can extract the lost data from the backups using the iPhone backup extractor.
    In addition, you can also try to use the iPhone data recovery software to scan and recover the data on your iPhone directly even if you have no backups of your iPhone.

  • Ok so we bought an ipodtouch for my daughter and when she connected to the computer all of a sudden she lost all her pics and she can no longer connect to the app store on  her ipod.. any suggestions why and what can be done?

    ok so we bought an ipod touch for my daughter and when she connected it to the computer after she downloaded itunes, she was asked if it was her ipod or a new one, so she clicked on her ipod and lost all her recent pics plus is unable to locate the app store on her safari on her ipod touch. any suggestions as to what went wrong or what should be done ? should we restore or what?
    much appreciated if there is anyone else who had this happen to them.

    - The iPod got erased since it sounds iTunes identified that the iPod has been synced with another computer and she said yes to making this computer her syncing computer. It could also she restored the iPod from the backup of another iPod, iPhone or iPad that was in iTunes. If in iTunes you go to Preferences>Devices is there a backup listed for her iPod with a date/time when she first connected the iPod to the computer. If so then restore the iPod from that backup.
    iOS: How to back up
    Note synced media like apps and music are not included in the backup,
    You can redownload iTunes purchases by:
      Downloading past purchases from the App Store, iBookstore, and iTunes Store
    - Regarding the App store. The App store is not in Safari. It is a separate app. Also, could the Apple store be hidden by Restrictions? Settings>General>Restrictions. Further, can you find the App store via the Spotlight search on the iPod?

  • I dowloaded ios5 for my iphone4, and when i finished the backup i lost all the music and all the videos i bought from the iTunes store. How can i get it back?

    I dowloaded ios5 for my iphone4, and when i finished the backup i lost all the music and all the videos i bought from the iTunes store. How can i get it back?

    Backup do not contaiuns music or apps, you will either need to resync them from your itunes computer, or you can go to purchase history in itunes or app store app and go to purchase history and redownload them.

Maybe you are looking for

  • IDoc : Linking Basic type and function module

    Hi, I am in the process of customizing for inbound processing. I have one doubt reqarding below customizing : t-code WE57: FM                               Message type          Basic type ZBAPI_IDOC                ACC_DOCUMENT   ACC_DOCUMENT01 ZBAPI

  • Toplink in Cluster without Cache Synchronization

    Hello, I’m trying to setup my J2EE app that uses Toplink for its persistence in a 9iAS cluster. For the first release I’m not planning to use Toplink Cache synchronization but planning to deploy the app in 9iAS cluster of nodes say A and B. By de

  • Run FORM  without client  browser ?

    Hello, Here my basic question about form run-time client-side: Can i deploy application without broswer on client-side ? Is Appletviewer can do this ?

  • Mountain lion crashed my computer

    Upgraded to mountain lion on mac book pro 2010 and after restart 2 error message when opening iTunes , Upgraded to mountain lion on mac book pro 2010 and after restart 2 error message when opening iTunes

  • Transferring Adobe Reader content between computers

    I purchased an ebook in .pdf format and installed it on my office desktop computer about a year ago. Today I've installed Adobe Reader on my laptop, copied the ebook to the laptop, and am trying to read it there. No luck. Every time I click on the bo