MISSING datafile

Dear Experts,
I am working on ORACLE 10g(Windows XP), database in archivemode
I have backup controlfile to trace after that I added new tablespace tb1(OMF), now I delete all the control files and recreate the controlfile using script generated in trace.
But I am unable to recover the datafile(TB1),
SQL> alter database create datafile 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\MIS
SING00005' as 'C:\oradata\datafile.dbf';
alter database create datafile 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\MISSING0
0005' as 'C:\oradata\datafile.dbf'
ERROR at line 1:
ORA-01178: file 5 created before last CREATE CONTROLFILE, cannot recreate
ORA-01111: name for data file 5 is unknown - rename to correct file
ORA-01110: data file 5: 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\MISSING00005'
How to recover datafile ?
Thanks & Regards
Sunil Kumar

user637769 wrote:
Dear Experts,
I am working on ORACLE 10g(Windows XP), database in archivemode
I have backup controlfile to trace after that I added new tablespace tb1(OMF), now I delete all the control files and recreate the controlfile using script generated in trace.
But I am unable to recover the datafile(TB1),
SQL> alter database create datafile 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\MIS
SING00005' as 'C:\oradata\datafile.dbf';
alter database create datafile 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\MISSING0
0005' as 'C:\oradata\datafile.dbf'
ERROR at line 1:
ORA-01178: file 5 created before last CREATE CONTROLFILE, cannot recreate
ORA-01111: name for data file 5 is unknown - rename to correct file
ORA-01110: data file 5: 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\MISSING00005'
How to recover datafile ?
Thanks & Regards
Sunil KumarHi, actually existis missing datafile in disk or you deleted this file?(existis this file C:\oradata\datafile.dbf or not?)

Similar Messages

  • How to fix a missing datafile with status recover

    Dear all,
    We have Oracle 10 database. And we create a datafile by mistake, and also by mistake we drop the datafile.
    Now the condition is, the datafile is missing but still mentioned in control file, and produce an error every time we do a backup since there's a file missing.
    If we select from $vdatafile, the datafile status is recover.
    We tried to offline the datafile, but its no help.
    How to fix this?
    Thanks.

    Sorry to bump this thread again,
    I tried to get the same error in a Oracle sandbox server.
    I deleted a datafile, so i got a missing datafile, and then i offlined the datafile.
    Then, i created a backup control file and deleted line that refer to the error datafile, and then run it as a sql script to create a new control file.
    But when a new control file was created, the control file got a missing datafile and offlined it automatically.
    This is the control file backuped to a trace file, please notice datafile DATA00001
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE DATABASE "XE" NORESETLOGS  NOARCHIVELOG
        MAXLOGFILES 16
        MAXLOGMEMBERS 3
        MAXDATAFILES 100
        MAXINSTANCES 8
        MAXLOGHISTORY 292
    LOGFILE
      GROUP 1 'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_58SZY41W_.LOG'  SIZE 50M,
      GROUP 2 'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_58SZY59P_.LOG'  SIZE 50M
    -- STANDBY LOGFILE
    DATAFILE
      'C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF',
      'C:\ORACLEXE\ORADATA\XE\UNDO.DBF',
      'C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF',
      'C:\ORACLEXE\ORADATA\XE\USERS.DBF',
      'C:\ORACLEXE\ORADATA\XE\DATA00001',
      'C:\ORACLEXE\ORADATA\XE\DATA00002',
      'C:\ORACLEXE\ORADATA\XE\DATA00003'
    CHARACTER SET AL32UTF8
    -- Take files offline to match current control file.
    ALTER DATABASE DATAFILE 'C:\ORACLEXE\ORADATA\XE\DATA00001' OFFLINE DROP;
    and so on...
    This is the script to recreate
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE DATABASE "XE" NORESETLOGS  NOARCHIVELOG
    DATAFILE
      'C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF',
      'C:\ORACLEXE\ORADATA\XE\UNDO.DBF',
      'C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF',
      'C:\ORACLEXE\ORADATA\XE\USERS.DBF',
      'C:\ORACLEXE\ORADATA\XE\DATA00002',
      'C:\ORACLEXE\ORADATA\XE\DATA00003'
    CHARACTER SET AL32UTF8
    This is the result
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE DATABASE "XE" NORESETLOGS  NOARCHIVELOG
    DATAFILE
      'C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF',
      'C:\ORACLEXE\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\MISSING00005',
      'C:\ORACLEXE\ORADATA\XE\DATA00002',
      'C:\ORACLEXE\ORADATA\XE\DATA00003'
    CHARACTER SET AL32UTF8
    -- Take files offline to match current control file.
    ALTER DATABASE DATAFILE 'C:\ORACLEXE\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\MISSING00005' OFFLINE;
    and so on..
    Edited by: Fendhy Ongko on Sep 11, 2009 12:16 PM

  • OMF enabled but still receiving ORA-02199: missing DATAFILE/TEMPFILE clause

    Any Ideas?
    SQL> show parameter DB_CREATE
    NAME TYPE VALUE
    db_create_file_dest string /path/to/datafiles
    db_create_online_log_dest_1 string /path/to/redo
    SQL> create tablespace test;
    create tablespace test
    ERROR at line 1:
    ORA-02199: missing DATAFILE/TEMPFILE clause
    Note this normally works but I ran into a problem with a script and pinpointed it to a problem with the system not recognizing that it should use OMF.
    - There is plenty of space on the filesystems

    _omf was disabled by accident by another team.                                                                                                                                                                                                                   

  • Missing datafile after cloing oracle EBS from production to test

    Good Day
    I have done a restore from the production system to the test system some time ago . Today I got an error on my test system saying ORA-00376: file 375 cannot be read at this time . After checking I found that the file seems to be missing on the test environment .
    SQL > select file_name from dba_data_files where file_id=375 ;
    /gldb11i/devdb/9.2.0/dbs/MISSING00375
    So I got the name from production and since the file seems to be avilabe in test I did the rename as follows :
    SQL> alter database rename file '/gldb11i/devdb/9.2.0/dbs/MISSING00375' to '/gld
    b11i/oradevd/oradata/dev/gld16.dbf' ;
    Database altered.
    But when I tryed to recover the file I got the error .
    SQL> recover datafile '/gldb11i/oradevd/oradata/dev/gld16.dbf'
    ORA-00283: recovery session canceled due to errors
    ORA-01110: data file 375: '/gldb11i/oradevd/oradata/dev/gld16.dbf'
    ORA-01122: database file 375 failed verification check
    ORA-01110: data file 375: '/gldb11i/oradevd/oradata/dev/gld16.dbf'
    ORA-01206: file is not part of this database - wrong database id
    Ofcourse that is becuse my test dataabse was renamed from production name fmprod to test name fmdev .
    Is there any way to recover the file ? . I have all the archive logs avilable . Can nid change the database id in the file if it is only one file ?
    Why did I not get any errors when I was doing the post cloneing process ?
    Please note my databse is versio 9.2.0.6
    Many thanks to all

    1. Use Transportable feature to transport the remaining datafile from production to test.
    How can I do that without stopping production or making it read only .
    2. Reclone only that tabespace from Production to test.
    How , I used the oracle provided scripts for the cloning process ie . adcfgclone.pl
    3. Depending on the size of data contents, manually drop and recreate the tablespace in test, export contents from Production, import into test.
    I am worried about the data consistancy . Will the database be consistant it I do that there might be tables on other tablespaces related to this tablespace
    Thanks

  • Missing datafile from system-tablespace?

    Hello!
    We've got a major power-loss yesterday. After that our database does not start correct.
    I got the message:
    ORA-00600: Interner Fehlercode, Argumente: [kccpb_sanity_check_2], [9577], [9542], [0x0], [], [], [], []
    After that I searched the forum and recreated the controlfiles and started recover database.
    Now I always got the following error-message:
    ORA-01173:Data dictionary indicates missing data file from system tablespace
    I'm not really shure if I created another datafile for that tablespace. Even though there is no other datafile in the "oradata-directory".
    Does anyone know how to go further?
    Regards, Sascha
    Message was edited by:
    Sorehead

    Hello,
    Need help very quickly please!
    I have the same error message. ORacle 10.2.0.3 AIX 5.3 on a datawarehouse.
    I need to recover one tablespace from the database.
    I restored my system tablespace and the data tablespace on a test environment and recreated the controlfile. I recovered my database. Recover OK and when I open the database resetlogs the message is :
    Thread 1 opened at log sequence 1
    Current log# 2 seq# 1 mem# 0: /oradata5/RL_G2_1.ORA
    Successful open of redo thread 1
    Thu Feb 18 13:59:47 2010
    SMON: enabling cache recovery
    Thu Feb 18 13:59:47 2010
    Errors in file /opt/app/oracle/admin/MKT1/udump/mkt1_ora_2318672.trc:
    ORA-00704: bootstrap process failure
    ORA-00604: error occurred at recursive SQL level 2
    ORA-01173: data dictionary indicates missing data file from system tablespace
    Thu Feb 18 13:59:47 2010
    Error 704 happened during db open, shutting down database
    USER: terminating instance due to error 704
    Instance terminated by USER, pid = 2318672
    ORA-1092 signalled during: alter database open resetlogs...
    Thanks for help, production data ;)

  • Dataguard Problem missing datafile

    problem alert in logfile as follow:
    Errors in file $ORACLE_BASE/admin/dump/bdump/db_mrp0_647370.trc:
    ORA-01111: name for data file 29 is unknown - rename to correct file
    ORA-01110: data file 29: '/home/ora10g/10.2/dbs/UNNAMED00029'
    ORA-01157: cannot identify/lock data file 29 - see DBWR trace file
    ORA-01111: name for data file 29 is unknown - rename to correct file
    ORA-01110: data file 29: '/home/ora10g/10.2/dbs/UNNAMED00029'
    please help me .

    Hello;
    Errors in file $ORACLE_BASE/admin/dump/bdump/db_mrp0_647370.trc:
    ORA-01111: name for data file 29 is unknown - rename to correct file
    ORA-01110: data file 29: '/home/ora10g/10.2/dbs/UNNAMED00029'
    ORA-01157: cannot identify/lock data file 29 - see DBWR trace file
    ORA-01111: name for data file 29 is unknown - rename to correct file
    ORA-01110: data file 29: '/home/ora10g/10.2/dbs/UNNAMED00029'
    The issue is probably STANDBY_FILE_MANAGEMENT related, but could be a disk space or incorrect path issue too.
    On the Standby check for a missing file:
    SELECT * FROM V$RECOVER_FILE WHERE ERROR LIKE '%MISSING%';
    Then on the Primary find that file:
    SELECT FILE#,NAME FROM V$DATAFILE WHERE FILE#=29;
    Back on the Standby find the file:
    SELECT FILE#,NAME FROM V$DATAFILE WHERE FILE#=29;
    Set to STANDBY_FILE_MANAGEMENT to MANUAL:
    ALTER SYSTEM SET STANDBY_FILE_MANAGEMENT=MANUAL;
    ALTER DATABASE CREATE DATAFILE '/home/ora10g/10.2/dbs/UNNAMED00029' AS '<correct_path_and_filename>';
    Set to STANDBY_FILE_MANAGEMENT back to AUTO:
    ALTER SYSTEM SET STANDBY_FILE_MANAGEMENT=AUTO
    Check the alert log and monitor the apply.
    Best Regards
    mseberg

  • Missing datafiles when trying to restore DB

    Hi,
    For some reason when running duplicate database command, rman does not find few datafiles on my LAST weekly LEVEL 0 backup ,
    and tried to restore them from the prevoius LEVEL 0. the datafiles are stored on tapes and not on the disk.
    I would like to know if / what command i need to execute using rman , before taking another LEVEL 0 backup.
    Thanks

    Hi Yoav,
    I would like to know if / what command i need to execute using rman , before taking another LEVEL 0 backup.Maybe you can check the status of the datafiles in v$datafile and v$datafile_header?
    Was there a reason why some datafiles were not backed up? Was it a failure on the backup server side (like no empty tapes)?
    Do you have a logfile with an error?
    You should be able to run a new level 0 without any problem if all is OK.
    (You do not have to do a clean up if that's your question.)
    Regards,
    Tycho

  • Recover missing datafile (no backup exists)

    hi, m having a problem. when i try to start oracle at a clients site, i get the following error. and they do not have any backup datafile at all.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 3003121664 bytes
    Fixed Size 2079976 bytes
    Variable Size 843244312 bytes
    Database Buffers 2147483648 bytes
    Redo Buffers 10313728 bytes
    Database mounted.
    ORA-01157: cannot identify/lock data file 14 - see DBWR trace file
    ORA-01110: data file 14: '/mantasDB/oradata/mantasde/bus2_data_file01.dbf'
    please, what can be done to fix this.
    thanks

    Hello,
    You wrote:
    hi, m having a problem. when i try to start oracle at a clients site, i get the following error. and they do not have any backup datafile at all.Please, I have a doubt in which case you are.
    Do you have a Backup of the database (before adding a datafile) and the archived log from this Backup, or you haven't any backup of the all
    database ?
    In the first case. By applying the archived log you'll have the following error:
    ORA-00283: Recovery session canceled due to errors
    ORA-01244: unnamed datafile(s) added to controlfile by media recovery
    ORA-01110: data file 14: '/mantasDB/oradata/mantasde/bus2_data_file01.dbf'Then, you'll have to create manually your datafile, for instance, as follow:
    select name from v$datafile where file#=14;
        NAME
        UNNAMED0014
    alter database create datafile 'UNNAMED0014' as '/mantasDB/oradata/mantasde/bus2_data_file01.dbf';Afterwards, you could restart the recovery.
    But, if you don't have backup at all, the situation is very bad, you may lost the datafile.
    Hope it can help.
    Best regards,
    Jean-Valentin

  • Restore missing datafile

    Hello,
    I clone a database to a new DRP Server, I create the control file to reorganice the datafiles and open the database.
    Now I see that 2 datafiles have a quote en the name (xxxx.dbf´) and the backup software didn´t take them.
    If I copied this files from production to DRP (I put the tablespace in backup mode, copy this files and then put the tablespace in end backup mode)
    and then rename the datafile (alter database create datafile file '/u01/oracle/product/10.2.0/db_1/dbs/MISSING00047' AS '/datos2/oradata/CNA_1/TH_OMEART04.dbf';)
    Does it work ?
    The status in the v$datafile is "RECOVER"
    Thank for you help.
    Adrian

    If you have flashback on you can flashback to before the resetlogs and add the files.
    If not, then you can't add the datafile back, so you may as well drop it.
    alter database datafile 'xxxxx' offline drop;

  • Missing datafile belonging to SYSTEM tablespace

    Hi All,
    Our dev db server is crashed today as some datafiles belonging to Oracle were deleted by mistake from a developer (I believe to recover some space from server).
    The major hit is to SYSTEM tablespace as the datafile belonging to this tbs is deleted.
    For other tablespaces dev team can easily create as most them are index tablespaces that can be rebuild through scripts. All the data tablespace were saved at different directory so no impact.
    There is no file system backup schedule for this box and only backup is RMAN cold backup for DB and that is of last Tuesday evening and in between dev team has loaded a good amount of data.
    Now please suggest if I can recover the data from datafiles I have with me, I have a current copy of Controlfile with me. I am using Oracle 9.2.0.6 on Linux AS4.
    Thank you.
    Bhupinder

    Under this circumstances, if you mean 'cold backup' as a synonym of no archivelog' if you then what you will be able to do is just to completely restore the database to the backup time and open it, you will loose all changes from the time of backup to the point of failure. If you have a mean to restore data from logical backups that'll be all you will be able to do. Unfortunately system is a critical tablespace and it must be complete and fully recovered at the open database time.
    There are people who underestimate the value of a DRP scenario for development environments. This is valid just as long as there are means to restore data in case of failure and if the development team doesn't see their schedule compromised in case of failure.
    ~ Madrid

  • NOARCHIVE mode and datafile DROP OFFLINE

    I have a 10gR2 database on linux that I use for testing. The db is in NOARCHIVE mode.
    I had created test tablespaces on a NAS (as opposed to the system tables on the local machine). The NAS crashed, losing the drive mapping on the db machine. Of course, I couldn't start the database due to the missing datafiles. I did an 'alter database datafile 'xxxx' drop offline', which put the datafiles in RECOVERY mode in the datafiles view.
    Amazingly, I was able to recover the NAS several days later, and the datafiles.
    Is there any way to restore them after a drop offline? When I try to online them, I get recovery needed, when I try to recover, none of the redo logs have the right checkpoint. (The checkpoint needed is less than what are in the redo logs)
    I don't care about any data that might have been lost. The data was static for months.
    Any suggestions?
    Edited by: user10822921 on Nov 4, 2009 5:03 AM

    If the database is asking for recovery when you online the files, and you don't have those transactions in the redo logs, you can't recover to a consistent point in time to online the files.
    # Note that the following is not supported by Oracle Support. You may want to ask them for a second opionion.
    You could try taking a copy of all files to another location, recreate the controlfile, and use parameter "_allow_resetlogs_corruption=TRUE" to allow "open resetlogs" to ignore the inconsistent SCN. If it works, you should be able to export the data in the copy database, drop the objects in PROD, and re-import.

  • Why the query of the object still can work after the datafile has been deleted?

    Dear friends:
    Recently, I deleted a datafile from OS but don't touch the correspondent tablespace in OEM(actually the datafile name still exists in OEM after I deleted it from OS). I found out I still can create objects such as table and query it in this tablespace using sqlplus though the physical datafile has already been deleted.(What I done is I created new objects using an account whose default tablespace is that one which I deleted the datafile from it.). Will these new objects use another datafile instead the original one deleted? I will appriciate if you can point out the reason for me. Thanks for your help!
    John
    07/26/2002

    Even though you delete a datafile physically from OS, entries about the datafile still exists in Data Dictionary. So long as these entries are there in data dictionary, Oracle will consider that these file exists unless there is a specific command which referes to deleted files.
    Further, you are trying to create table in a tablespace whose datafile is deleted. If that was the only datafile for that tablespace then you should get an error. If the table is getting created, there must be some other datafile for that tablespace, in which your table is getting created. This is all when your database is already in running stage. If you shutdown and restart the database, it won't start next time because of missing datafile.
    Hope this solves your query.

  • Tnslistener Service is missing in services.msc in windows 2003 10gr2

    Hi All.
    I got one error in my server(windows 2003 10gr2)....Protocol adaptor error(ora-12560).
    In services <tnslistener> is missing(I don't know how it is missing), because of this am not able to connect to my database through TOAD and OEM, I can connect to my database @ command line.
    I tried all the possible ways.
    I am tired now, can you please tel me a suggestion to get rid of this problem. Is that necessary to format the server and recreate the database using a backup if there is no option.
    Please reply me asap as i need to load some flat files in database using TOAD.
    Waiting for you response
    Thanks,
    Rajini.V

    Hi All,
    I have resolved this issue,I don't know if this is the best way or not.
    I have reinstalled the database and Imported the latest backup in to the database and it was working fine.
    later i got one error saying that datafile is missing for sysaux tablespace and needs recovery usings archives.
    I lost all my archive files where i cannot recover the missing datafile.
    \again my headache started ....................
    I again created the brand new database and created the tablespaces which are additional to the default tablespaces that are created when database is created and imported the latest backup file in to new database.
    this solved my problem.
    Please let me know your advice on this.
    Thanks,
    Rajini.

  • Recover from dropped SYSAUX datafile

    Trying to recover a DEV database without rebuilding it, but not hopeful at this point. Basically, someone dropped the SYSAUX (and a few other) datafiles, so now they are showing up in the database as MISSING0003 instead of the actual filename. There are no backups, but I want to drop the tablespaces (not SYSAUX) and in trying to do so, I'm getting an error about the SYSAUX tablespace for some reason. How can I rebuild or recover from the SYSAUX issue, since I cannot drop the SYSAUX tablespace, as it seems to be preventing me from dropping any of the other tablespaces that have missing datafiles as well. I really just need to recreate the tablespaces, but get the below error when I try to drop the schemas (with cascade) or the tablespaces (including contents).
    SQL> drop tablespace DATA001 including contents;
    drop tablespace DATA001 including contents
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 2
    ORA-00376: file 3 cannot be read at this time
    ORA-01111: name for data file 3 is unknown - rename to correct file
    ORA-01110: data file 3: 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\MISSING00003'
    ORA-06512: at line 19
    Any help to get past the first issue of dropping the non-SYSTEM tablespaces would be great, and any follow-up on how to rebuild/recreate/recover from the dropped SYSAUX datafiles would be appreciated as well.
    DB is 10gR2 on Windows.

    user4257171 wrote:
    Trying to recover a DEV database without rebuilding it, but not hopeful at this point. Basically, someone dropped the SYSAUX (and a few other) datafiles, so now they are showing up in the database as MISSING0003 instead of the actual filename. There are no backups,
    > DB is 10gR2 on Windows.
    Without backups you are not going to be able recover the dropped data files. Given that one of the tablespaces was the required SYSAUX tablespace you are most likely looking at a rebuild instead of a restore.

  • Lost datafile on Standby Oracle 10g

    Hi all.
    i have lost one datafile on my standby ,how to recover it ,this file is created when primary database is in noarchive mode (before i set up the data guard) ,so i can't use alter database create datafile statement bocz i dont have all the archive log to recover it ,
    plz help me out to solve this ..

    969752 wrote:
    Hi all.
    i have lost one datafile on my standby ,how to recover it ,this file is created when primary database is in noarchive mode (before i set up the data guard) ,so i can't use alter database create datafile statement bocz i dont have all the archive log to recover it ,
    plz help me out to solve this ..What is the version you are using?
    Even though your primary database is in noarchive log mode before configuring data guard, still its not a problem. Follow high level steps as below
    1) Take missing datafile on primary using RMAN (or) you can use tablespace backup with traditional method
    2) copy that datafile from primary to standby system
    3) Ensure you have properly set for DB_FILE_NAME_CONVERT(bounce required), and set standby_file_management to manual
    4) take the dummy file and rename with the new file(step 2) by using alter database create command
    5) later change standby_file_managment to auto & start MRP

Maybe you are looking for