Old controfile during recovery

Hi guys,
Lets say I am performing system copy and creating new controlfile from trace. What would happend if I accidently delete one datafile entry (lets say test.data1) from this trace and create controlfile from this trace? During controlfile creation no error occures as trace script does not know nothing that test.data1 should be included in controlfile. My question is: Would it be possible that I run recovery and get up database to open state ? And that the file test.data1 is totaly omitted from database?
Thanks a lot!

tdkuser wrote:
Hi guys,
Lets say I am performing system copy and creating new controlfile from trace. What would happend if I accidently >delete one datafile entry (lets say test.data1) from this trace and create controlfile from this trace?Dear tdkuser there nothing happen during creating controlfile.But when you try open database then you will see in alert.log some information related this datafile.Because in datadictionary actually there are information about this datafile ,however controlfile does not contain any information about this datafile(in this case that datafile called as missing datafile ).
During controlfile creation no error occures as trace script does not know nothing that test.data1 should be included in controlfile. My question is: Would it be possible that I run recovery and get up database to open state ? And that the file test.data1 is totaly omitted from database?
Thanks a lot!Yes you can recover this datafile while database is open state if this file physically exists in OS level and this datafile is not omitted from database.Finally you see that from below example.
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jul 8 20:14:48 2010
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> alter tablespace users add datafile
  2  'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\user02.dbf' size 10M;
Tablespace altered.
SQL> select name from v$datafile;
NAME
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSTEM01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDOTBS01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSAUX01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\USERS01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\EXAMPLE01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\USER02.DBF
6 rows selected.
SQL> alter database backup controlfile to trace as 'c:\c.txt';
alter database backup controlfile to trace as 'c:\c.txt'
ERROR at line 1:
ORA-01277: file 'C:\C.TXT' already exists
SQL> alter database backup controlfile to trace as 'c:\c.txt' reuse;
Database altered.
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup nomount;
ORACLE instance started.
Total System Global Area  125829120 bytes
Fixed Size                  1247660 bytes
Variable Size              62916180 bytes
Database Buffers           58720256 bytes
Redo Buffers                2945024 bytes
SQL> CREATE CONTROLFILE REUSE DATABASE "TEST" NORESETLOGS  NOARCHIVELOG
  2      MAXLOGFILES 16
  3      MAXLOGMEMBERS 3
  4      MAXDATAFILES 100
  5      MAXINSTANCES 8
  6      MAXLOGHISTORY 292
  7  LOGFILE
  8    GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\REDO01.LOG'  SIZE 50M,
  9    GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\REDO02.LOG'  SIZE 50M,
10    GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\REDO03.LOG'  SIZE 50M
11  DATAFILE
12    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSTEM01.DBF',
13    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDOTBS01.DBF',
14    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSAUX01.DBF',
15    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\USERS01.DBF',
16    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\EXAMPLE01.DBF';
Control file created.
SQL> desc v$recover_file;
Name                                      Null?    Type
FILE#                                              NUMBER
ONLINE                                             VARCHAR2(7)
ONLINE_STATUS                                      VARCHAR2(7)
ERROR                                              VARCHAR2(18)
CHANGE#                                            NUMBER
TIME                                               DATE
SQL> select file#,error from v$recover_file;
no rows selected
SQL> select name from v$datafile;
NAME
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSTEM01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDOTBS01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSAUX01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\USERS01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\EXAMPLE01.DBF
SQL> alter database open;
Database altered.
SQL> select file#,error from v$recover_file;
     FILE# ERROR
         6 FILE MISSING
SQL> select name from v$datafile;
NAME
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSTEM01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDOTBS01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSAUX01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\USERS01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\EXAMPLE01.DBF
D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\MISSING00006
6 rows selected.
SQL> alter database rename file 'D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\MISSING0
0006' to 'D:\oracle\product\10.2.0\oradata\TEST\USER02.DBF';
Database altered.
SQL> recover datafile 6;
Media recovery complete.
SQL> alter database datafile 6 online;
Database altered.
SQL> select name from v$datafile;
NAME
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSTEM01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDOTBS01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSAUX01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\USERS01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\EXAMPLE01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\USER02.DBF
6 rows selected.
SQL>

Similar Messages

  • During recovery on iPhone 4 I got : The iPhone could not be restored. Un unknown error occurred ( 3004 ). Then - iTunes has detected an iPhone in recovery mode. You must restore this iPhone before it can be used with iTunes.Then I get error 3004

    During recovery on iPhone 4 I got : The iPhone could not be restored. Un unknown error occurred ( 3004 ). Then - iTunes has detected an iPhone in recovery mode. You must restore this iPhone before it can be used with iTunes.Then I get error 3004 again. Latest iTunes and OS updates. I cant use the phone now. I did restart the destop,unplug the usb,...etc. Same iTune logo ,arrow and USB on the screen.THANK YOU SO MUCH,...!

    Perhaps the information in this Apple support article will help:
    http://support.apple.com/kb/TS3694#error3004
    Regards.

  • Use of an allocated ManagedConnection during recovery

              Hi All,
              I am facing some concurrency issues. I have certain queries during recovery process
              1) Can a ManagedConnection which has been already allocated be used during recovery
              by the server?
              2) In case this happens, server does a rollback after recovery and then the cleanup
              after that. Is this the correct behavior? Shouldn't the server not do cleanup since
              ManagedConnection is participating in another transaction too?
              Thanks in advance
              

    function(){return A.apply(null,[this].concat($A(arguments)))}
    function(){return A.apply(null,[this].concat($A(arguments)))}Thrill Media wrote:
    "You have to make choices that are unacceptable in professional editing.  Apart from the annoying sync lag - which is more to do with firewire technology, you can't have desktop audio, program monitor and the external monitor working simultaneously.  If you want desktop audio, the program monitor freezes.
    However, you can't have any of these if you want to use the MPE!"
    Not true.  Maybe... if you are still using FW or something.  I edit daily on my system with 2- 24" Dell Computer monitors and 1-HD NTSC monitor without sync lag or any other problems.  You just need the right equipment to do so.  Any card from BM or AJA, etc can acomplish this for professional editing.
    My preferred method since I am now tapeless, is to use two video cards in the machine, the GTX470 for MPE playback and the second card, a lowly GeForce 7600 to drive the HD monitor.
    ... it's all in the cards!
    If you are using two cards do you even need a BM or AJA?
    Did you have any compatibility issues using two different video cards?

  • Tablespace or datafile  creation during recovery

    Hello
    During recovery,
    If there is new tablespace or datafile added in archivelogs or redologs I have to manually issue:
    alter database create datafile .. as ..
    Why doesnt oracle automatically create the datafiles ?

    The datafile doesn't exist in the control file. The control file maintains the physical structure of the database. During the RECOVERy phase, Oracle reads the ArchiveLogs to identify what updates are to be done -- these are mapped in terms of file, block and row. If the file doesn't exist in the controlfile, the rollforward cannot be applied.
    Therefore, the ALTER DATABASE CREATE DATAFILE ... AS .... allows Oracle to "add' the file to the controlfile and then proceed with the rollforward.
    Oracle doesn't automatically create the datafile because it can't know what the target file name is.
    In your backup your datafiles may have been spread across /u01/oradata/MYDB, /u02/oradata/MYDB, /u03/oradata/MYDB and this file may have been in /u03/oradata/MYDB. However, in your target (restored) location the files may be at only two, differently named, mountpoints : /oradata1/REPDB, /oradata/REPDB. Oracle can't decide for you where the new datafile (which was in /u03/oradata/MYDB) should be created -- should it be in /oradata1/REPDB or /oradata/REPDB or, you might have avaialable /oradata3/REPDB which the database instance isn't aware of !

  • Error during recovery: can't find PREINST4.SWM on the DVD

    Hi everyone,
    I was trying to reinstall the factory settings on my laptop with the toshiba software but during the copy of files from the first DVD of Recovery,
    It says: Can't find PREINST4.SWM on the DVD.
    So I look at the DVD with another computer and I find the file, so I don't know how to fix this problem, maybe reburn the DVD ? (there is no scratch on the DVD)
    Thanks
    [sorry for the bad english speaking, it's not my native language]

    Of course its worth to copy (burn) the DVD again but Im not quite sure if it will be helpful.
    Probably something went wrong during Recovery disk creation.
    In such case the DVD disk isnt created probably and the recovery procedure would not finish.
    This would require new Recovery DVD which could be ordered from Arvato

  • HP Envy dv6 7398ca. win 8 64 bit. During recovery disk 4, get 3f0 error

    Hi,
    I have a brand new HP Envy dv6 7398ca.win 8 64 bit.  I had a problem that caused me to do a system refresh. After that, Windows update and MS Office would not update/install. Talked to Tech Support, they wanted me to go thru every service and started task to see if one was corrupt (requires reboots and update and recovery from win Update). Anyway, decided to do a system recovery/system reset. I had recovery disks and files backed up, so thought I should be fine.
    During Recovery (from Win 8, recovery manager) when disk 4 was inserted, it gets to 56% and then stops with the 'dest drive not connected' msg. The system hangs and have to power off. Tried a couple times, then went to sys reset.  got to disk 4 again and then 3F0 msg with 'boot device not found, install os on hdd'. did quick check on hdd, all ok. Am running a full check now, but takes 5 hours(geesh, like back in the 80's again). 
    I can't believe the hdd is bad, because it goes through format, and 4 disks of loading files ok, and keeps stopping on the same spot. 
    Any ideas, before I finish waiting the 5 hours (1tb drive). Any ideas for after it finishes the test (I'm betting it's okay).
    Thanks so much!

    Hello socalfun64,
    You’re getting an error 3f0.
    Here are steps that Big_Dave  wrote that might help with the problem.
    The below solution may correct this problem:
    Download UEFI Shell x64, rename the file to shellx64.efi, move it to FAT/FAT32-formatted USB-flash. Label the USB flash drive something that you will quickly recognize.
    Insert the USB flash and then power up the HP UEFI enabled laptop and tap the ESC key to allow you to display the Start up menu.
    Select Boot device Options (F9)
    Select Boot from EFI file
    Select the USB flash drive and hit enter
    You should now see Shell.efi. Hit enter.
    Ignore all the screen information that scrolls down on the screen
     Once in the shell enter bcfg boot dump to see current boot manager entries. Option 00 should be the hard drive or SSD, option 01 the USB drive (UEFI) and option 02 the Internal CD/DVD Rom drive (UEFI)
    This posted HP document will give you some ideas on how to remove, reorder and add the entries in the EFI boot manager. Review #3
    If you’re not able to correct the problem, you may have to send the laptop in for repair.
    Here is a link to a number to call HP and see what options they have to repair the laptop.
    Let me know how everything goes
    Have a good day.

  • NullPointerException thrown during recovery

    I have a JMS client(using WL JMS as well) talking to our application server.
              This JMS client exposes a XAResource from WLS and register itself into our
              application server's TX manager. During recovery, WLS XAResource's recover
              method is called but got the following exception:
              java.lang.NullPointerException
              weblogic.transaction.internal.ClientTransactionManagerImpl.recoverForeignXid
              s(ClientTransactionManagerImpl.java:255)
              weblogic.transaction.internal.TransactionManagerImpl$TMXAResource.recover(Tr
              ansactionManagerImpl.java:907)
              I heard that I need to enlist this XAResource and then call the recover. Is
              this true? Why is that?
              My environment:
              WLS6.1 SP1
              W2K SP1
              JDK1.3.0-C
              Thanks
              Jing
              

    Answered in the JMS newsgroup.
              Regards,
              Priscilla
              Jing <[email protected]> wrote in message news:3bf29be5$[email protected]..
              > I have a JMS client(using WL JMS as well) talking to our application
              server.
              > This JMS client exposes a XAResource from WLS and register itself into our
              > application server's TX manager. During recovery, WLS XAResource's recover
              > method is called but got the following exception:
              > java.lang.NullPointerException
              >
              >
              weblogic.transaction.internal.ClientTransactionManagerImpl.recoverForeignXid
              > s(ClientTransactionManagerImpl.java:255)
              >
              >
              weblogic.transaction.internal.TransactionManagerImpl$TMXAResource.recover(Tr
              > ansactionManagerImpl.java:907)
              >
              > I heard that I need to enlist this XAResource and then call the recover.
              Is
              > this true? Why is that?
              >
              > My environment:
              > WLS6.1 SP1
              > W2K SP1
              > JDK1.3.0-C
              >
              > Thanks
              >
              > Jing
              >
              >
              >
              

  • During recovery from recovery partition I get message "INF file txtsetup.s​if is corrupt or missing

    During recovery from recovery partition I get message:
    INF file txtsetup.sif is corrupt or missing, status 14.
    Setup cannot continue. Press any key to exit.
    Now I have a computer with a recovery partition and that's about it.
    The C partition has been formatted by recovery and files have been copied but I can't get any further.
    The computer is an nc6220 and the OS, if the recovery would work, is winXP pro.
    Anyone have any ideas ?

    I assume you ran recovery from the hard drive?
    If so,
    I would run a chkdsk on the recovery partition it may fix the sif file corruption.
    You can do this from a XP boot cd using the command prompt, you just need to run it on the recovery partition instead of the C drive as explained in this article.
    http://kb.wisc.edu/helpdesk/page.php?id=5097
    if you use the
    map
    command, it will list all the partitions and the drive letters 
    so the command might look something like this
    chkdsk /r D:
    D: represents the recovery partition, which may be different than D:

  • ERROR: 10E7160079 during recovery

    I need help with my Toshiba NB205.
    During recovery it appeared "ERROR: 10E7160079"
    and cannot copy PREINST002: Date error (cyclic redundancy check).
    What should I do?
    Thanks in advance.
    Jerson

    That indicates that your hard drive may be failing. I'd suggest contacting customer support at (800) 457-7777.
    - Peter

  • Will this work during recovery

    Hi,
    We have a 150GB Database. We would be using following RMAN Backup Strategy for 9.2.0.6.
    Once a month--> Level 0 Differential Incremental
    Every Sunday ---> Level 1 Cummulative Incremental
    Mon to Saturday ----> Level 2 Differential Incremental.
    Will this strategy work during recovery.
    Regards,
    Tushar Kathe

    If you can find a USB 3.0 card that uses a PCI slot, it should work.  Most of them are PCI-e cards, which you cannot use, since the motherboard does not have PCI-e slots.
    {---------- Please click the "Thumbs Up" to say thanks for helping.
    Please click "Accept As Solution" if my help has solved your problem. ----------}
    This is a user supported forum. I am a volunteer and I do not work for HP.

  • Error 0x400 1100 20000 100A during Recovery. How to fix??

    Error 0x400 1100 20000 100A during Recovery.  How to fix??

    Hi,
    Try booting with a utilty cd to remove partitions/ format hdd. Several posters here have had good results with Partition Wizard .Download the free Bootable CD iso here .Get ImgBurn here to burn the image to cd.
    After deleting partitions and formatting hdd, try booting with Recovery Disks again.
    Regards;
    Smiley
    I am an HP employee
    Please click the White Kudos star to say thanks for helping.
    Please mark Accept As Solution if my help has solved your problem.

  • During recovery installation it turned off

    I recently baught a new laptop from a friend and therefore wanted to restore to factory settings. I inserted the disk and went through the setting and it began to restore. Half way through the process about 50% it turned off/overheated. It tells me to insert the start up disk, which I do not have, and now I do not know what to do because it will not start up without it.
    What can I do and where can Iget a new one?
    Please answer at ([email protected])
    THANK YOU!!

    Hi
    I think the solution for this problem is pretty easy. If the computer turned off during recovery installation you have to do this installation again I think because some files are missing, etc.
    So boot from the recovery disk and try it again.
    By the way: It would be interesting to know what notebook you have exactly. If it does overheat, try to clean it using compressed air spray. ;)

  • My iPad is taking too long to contact update software server during recovery.

    My iPad is taking too long to contact update software server during recovery. It can go on for 30 minutes and it would not load. What can I do?

    If the links are blocked by who-ever, you will keep getting those errors.
    About the only option would be to use a proxy.
    http://www.bing.com/search?q=proxy

  • Computer Shut Down during Recovery "Now Rating System Performance"

    Help needed.
    I just did a recovery on my Toshiba M645 Notebook,
    However during the end of the installation on the driver after finishing on "Configuring System", during the stage "Now Rating System Performance" the Notebook just Shut Down on it on.
    After i on it again, it will prompt me whether to start on Safe Mode or Normal Window, Once choose, it will prompt me "Setup Window for first use" and bring me to "Configuring System" and "Now Rating System Performance" again.
    Will appreciate if someone will tell me whether do i do a recovery again, or there is any way that i can overcome this situation.
    THANKS.....  

    I have a Satelite M645-S407 that keeps shutting down.  I recovered it to the factory setting using the recovery discs and everything was fine until it reached "now rating system performance" during recovery, at which point it shut itself off.  I restarted it several times and it consistently does the same thing.  It runs Windows 7. Any suggestions?  Thanks.

  • Unknown Error during Recovery - iPad no longer Recognized by iTunes

    I have a 3rd Generation iPad which I was attempting to perform a factory reset.  I received an "Unknown Error" during the process and from that point on I have been unable to get iTunes to recognize my iPad in recovery mode (or otherwise).
    I have tried every thread on the subject, but I found one interesting thing.  If I connect the iPad with the same cable, etc. to another computer it immediately recognizes it in recovery mode and offers to restore the iPad.
    It seems like my computer is not recognizing the iPad because it was in the process of restoring the device when the error occurred.  Does anyone know if there is a way to reset or fix this issue.  I would prefer not to update iTunes and download both the new iTunes and iPad software again and use another computer if it is not necessary.
    Any help would be appreciated.
    Thanks

    Hey KSHItunes,
    That was a good test to try your iPad on another computer.  It does seem to isolate the issue to something with your computer setup.
    Although you would prefer not to update iTunes, there may be steps in this article which can help.
    iPhone, iPad, or iPod not recognized in iTunes for Windows - Apple Support
    Please check it out.
    Regards,
    Nubz

Maybe you are looking for