Datafile is missing

Hi ALL
Recently, i got error while taking RMAN backup.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 02/19/2011 23:32:45
RMAN-06056: could not access datafile 99
RMAN> CONFIGURE DEVICE TYPE SBT_TAPE CLEAR;
WHen i checked v$datafile, v$tablespace, v$dba_data_files and v$recovery_file , this file id is not there. I want to how this error raised without this file id.
Regards
Krishna

Krishna
Has the datafile been deleted from the OS?
Or do you have a datafile with a bad header?
I might try this:
Select status from dba_data_files;
If you cannot find an answer try the backup again.
Or a full export since this will almost always reveal a database issue.
I don't mean to be rude but you will get more and better answers if you read this:
http://wikis.sun.com/display/Forums/Forums+FAQ
And then clean up some of your old questions.
Best Regards
mseberg

Similar Messages

  • Restore - filename for datafile is missing in the control file

    I am practicing RMAN recovery procedures and I encountered a problem that I do not know how to solve.
    1) I took a hot backup of my test database.
    2) Create tablespace TS_DATA_TEMP
    3) Deleted tablespace TS_DATA which had 2 datafiles
    4) Created tablespace TS_DATA with 1 datafile
    5) shutdown database
    6) logged into RMAN in nomount
    7) restore controlfile from autobackup;
    8) alter database mount;
    9) restore database;
    RMAN> restore database;
    Starting restore at 22-AUG-08
    using channel ORA_DISK_1
    the filename for datafile 5 is missing in the control file
    skipping datafile 1; already restored to file /u02/oradata/EDM91/system01.dbf
    skipping datafile 2; already restored to file /u02/oradata/EDM91/undotbs01.dbf
    skipping datafile 6; already restored to file /u02/oradata/EDM91/index
    skipping datafile 3; already restored to file /u02/oradata/EDM91/sysaux01.dbf
    skipping datafile 7; already restored to file /u03/oradata/EDM91/TS_INDEX01.dbf
    skipping datafile 9; already restored to file /u03/oradata/EDM91/TS_LOB01.dbf
    skipping datafile 4; already restored to file /u02/oradata/EDM91/users01.dbf
    restore not done; all files readonly, offline, or already restored
    Finished restore at 22-AUG-08
    10) tried to recover
    Starting recover at 22-AUG-08
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 08/22/2008 15:04:22
    RMAN-06094: datafile 5 must be restored
    SQL> select name from v$datafile where file#=5;
    NAME
    /u04/oradata/EDM91/TS_DATA.dbf
    12) alter database backup controlfile to trace
    DATAFILE
    '/u02/oradata/EDM91/system01.dbf',
    '/u02/oradata/EDM91/undotbs01.dbf',
    '/u02/oradata/EDM91/sysaux01.dbf',
    '/u02/oradata/EDM91/users01.dbf',
    '/u04/oradata/EDM91/TS_DATA.dbf',
    '/u02/oradata/EDM91/index',
    '/u03/oradata/EDM91/TS_INDEX01.dbf',
    '/u04/oradata/EDM91/TS_DATA02.dbf',
    '/u03/oradata/EDM91/TS_LOB01.dbf'
    CHARACTER SET UTF8
    So i'm not sure what the problem is. Datafile TS_DATA.dbf is located in the control file but i'm getting the error: the filename for datafile 5 is missing in the control file.
    Suggestions on what's wrong with the control file?

    I found my mistake; a newbie error.
    I did not know I needed to include in my restore command the 'until' option when doing incomplete recovery. I only included the 'until' option in the recover command:
    original command
    restore database;
    recover database until sequence =123;
    should be
    restore database until sequence = 123;
    recover database until sequence =123;
    I usually run the command using a RUN block with a SET UNTIL SEQUENCE but this case I used the single commands separately.
    RUN
    +{+
    SET UNTIL sequence 123;
    RESTORE DATABASE;
    RECOVER DATABASE;
    +}+

  • 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

  • To recover a database with old and new datafiles.

    Hi;
    Please Give a Solution for the following problem.
    First I shutdown the databae.
    Copy all the redolog,control file and Datafile except one.
    One datafile i miss at the time of copy.
    Then I start the database and do some transactions.
    At that time my system tablespace has been corrupted.
    So i copy the old backup and overwrite with the actul file.
    So one file backup is not there, that i forgot to take.
    At the time of opening the database it shows that datafile version is higher than the controlfile.
    Now what i did is came to mount stage and type the following command.
    ALTER DATABASE DATAFILE <FILENAME> OFFLINE DROP;
    After that i open the database.
    Now the problem is that missing file contain very important data.
    Is it possible to recover the data?
    Please give me an immediate solution.

    Is the database running in archive log mode? Do you have any export dump files for the data in question?

  • 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.

  • File missing in standby database

    Hi all,
    We have a oracle 9.2 database on sun solaris box.....
    Oor Standby DB went down in the month of April and i have taken all the backups of datafile to DAT drive but one of the datafile is missing so we are not able to open the db in read only mode.......
    can anubody suggest me how to recover the datafile
    as we are also not having any rman backup......

    But when we are mounting our DB it is asking to apply the logs from 19 march 09 onwards Are you sure that DB is asking for archives to mount the database?
    so if we would take our DB is in the backup mode then that tablespace might have different SCN as compare to the controlfile so will we be able to ioen the DB in readonly mode or not.That is why we are putting the database in recovery mode (to synchronize the database files). Are all archives available?
    Regards,
    S.K.

  • Datafile offline

    Dear all
    I have just completed a cloning.One of my datafile is offline.
    In the control file it is pointing to a different path with a ficticious filename like
    /nd01/oradev/devdb/9.2.0/dbs/MISSING00098'
    The file I want is under location another location.I tried to generate a trace control file and run it on nomout mode,but still no luck.
    Can somebody help me.

    I do not have datafile name MISSING.
    It generated the name.I tried to generate a script
    from alter database backup controlfile to trace.But
    still NO LUCK.
    Regardsthis's from your original post,
    I have just completed a cloning.One of my datafile is offline.
    In the control file it is pointing to a different path with a ficticious filename like
    >>/nd01/oradev/devdb/9.2.0/dbs/MISSING00098'
    Compare your output of
    select name from v$datafile;from source and cloned database

  • Datafile need to be removed from 11g1 db

    Hi all,
    I'm in a situation to remove the wrongly added datafile from the database as the datafile is no longer present at OS/level.
    Database mode: archive log enabled.
    can I remove the datafile using the below commands?
    Difference between the below commands.
    ALTER DATABASE DATAFILE <datafile name> OFFLINE DROP
    ALTER DATABASE DATAFILE <datafile name> OFFLINE
    Need your suggestion.
    Thanks.

    Hi,
    Find out,the datafile belongs to which tablespace. Then,
    If a tablespace contains multiple datafiles, and you just want to drop one or some of the datafiles and keep
    the remaining datafiles together with the objects and contents, the objects or data must be exported for the
    affected table space. Once exported, the tablespace can be dropped with the command
    DROP TABLESPACE <tablespace name> INCLUDING CONTENTS AND DATAFILES;
    If one or more datafiles is missing after a recovery process or accidental deletion, you can use
    ALTER DATABASE DATAFILE <datafile name> OFFLINE DROP
    command to make the datafile offline so that database can starts up after which the troubled tablespace can be dropped
    Regards,
    Jai

  • Restore Data from Datafiles

    Hi Experts,
    I am facing a problem with TTS(Transportable Tablespace).
    I have a backup of tablespace TBS_DATA as TTS. Now i need to restore that tablespace.
    Whenever I tried to restore using IMP command below error occured:
    IMP-00003: ORACLE error 19721 encountered
    ORA-19721: Cannot find datafile with absolute file number 123 in tablespace TBS_DATA
    ORA-06512: at "SYS.DBMS_PLUGTS", line 1730
    ORA-06512: at line 1
    The TTS backup was not taken by me and i think that the dump file version and the version of backed up datafiles were not same (as I am sure that no datafile is missing in my par file and I simulated a test in which i took a TTS exp then made some change in the tablespace then tried to restore that tablespace got the same error as above).
    Now under this scenario my question is,
    "Is there any way to restore data from those datafiles ?(i know all the table names and structures)"
    BR
    obaid

    obu wrote:
    Hi Experts,
    I am facing a problem with TTS(Transportable Tablespace).
    I have a backup of tablespace TBS_DATA as TTS. Now i need to restore that tablespace.
    Whenever I tried to restore using IMP command below error occured:
    IMP-00003: ORACLE error 19721 encountered
    ORA-19721: Cannot find datafile with absolute file number 123 in tablespace TBS_DATA
    ORA-06512: at "SYS.DBMS_PLUGTS", line 1730
    ORA-06512: at line 1
    The TTS backup was not taken by me and i think that the dump file version and the version of backed up datafiles were not same (as I am sure that no datafile is missing in my par file and I simulated a test in which i took a TTS exp then made some change in the tablespace then tried to restore that tablespace got the same error as above).
    Now under this scenario my question is,
    "Is there any way to restore data from those datafiles ?(i know all the table names and structures)"
    BR
    obaidWhen you talk about transportable tablespace and "backup" and importing -- I'm not sure exactly what you are doing and what you have to work with.
    Let's start by you showing the actual command you used that produced the output you gave us.
    And it certainly wouldn't hurt if you let us in on the secret of what OS and what version of Oracle you are using.

  • To Recover The Database Using a New Version of Datafile

    Please give me the solution immediately
    My one of the datafile is new and it is very important. It contains many data. I have a backup. I copy all the old files exept the new one. How i attatch the new datafile to the old database files. Now it sees the new file does not match with the old datafile and controlfile. It shows the message
    THE CONTROLFILE VERSION IS OLDER THAN THE NEW DATAFILE VERSION.
    our database version is 8.0
    How i recover

    Hi;
    Please Give a Solution for the following problem.
    First I shutdown the databae.
    Copy all the redolog,control file and Datafile except one.
    One datafile i miss at the time of copy.
    Then I start the database and do some transactions.
    At that time my system tablespace has been corrupted.
    So i copy the old backup and overwrite with the actul file.
    So one file backup is not there, that i forgot to take.
    At the time of opening the database it shows that datafile version is higher than the controlfile.
    Now what i did is came to mount stage and type the following command.
    ALTER DATABASE DATAFILE <FILENAME> OFFLINE DROP;
    After that i open the database.
    Now the problem is that missing file contain very important data.
    Is it possible to recover the data?
    Please give me an immediate solution.

  • Restore datafile without any Backup

    Hi,
    IBM AIX
    Oracle 10.2.0
    We have a problem in our database.
    One of our datafile was missing in the location.
    Database is in open mode. We dont have any backup of that physical file.
    Is there anyway to restore that datafile without backup.
    Plz Advice.....
    TIA,

    what is this file is it datafile or archive log file ..'/oracle/u01/app/oracle/oracle/product/10.2.0/db_1/logarchive/7603_1_594490386.dbf'.
    Can you check if this file is physically present.
    If its archive log file and not present physically do this
    When the recovery process suggests the non-existent archive log,you need to provide the path to the current online redo log. The current
    log can be determined from the following query:
    SELECT MEMBER
    FROM V$LOGFILE F,
    V$LOG L
    WHERE L.STATUS = 'CURRENT'
    AND L.GROUP# = F.GROUP#;
    Once you know the current log, restart the recovery procedure and provide the
    path to the log when prompted:
    yeah juct check the date after Enrique's comment When the recovery process suggests the non-existent archive log,
    you need to provide the path to the current online redo log. The current
    log can be determined from the following query:
    SELECT MEMBER
    FROM V$LOGFILE F,
    V$LOG L
    WHERE L.STATUS = 'CURRENT'
    AND L.GROUP# = F.GROUP#;
    Once you know the current log, restart the recovery procedure and provide the
    path to the log when prompted:
    Just check the date after Enrique;s comments
    Edited by: user445775 on Nov 1, 2008 9:43 AM

  • How to recover system datafile???

    Hello,
    Do you guys have any idea how to recover SYSTEM datafile if the datafile is missing and it's not being back up ?
    suhaimi
    [email protected]

    Dear Suhaimi,
    The only possible way of recovering the SYSTEM tablespace (and its datafiles) is from the Hot or Cold backups taken earlier. For ensure complete recoverability, I advise you to run your database in ARCHIVELOG mode and take regular online backups.
    Ciao!

  • HELP!!! I deleted a .dbf file using OS command

    Hi Experts,
    I have accidently deleted a datafile, that is my index tablespace(.dbf) using OS command(AIX).
    After that I was not able to open my database since the datafile is missing and I was not able to drop the datafile when the database in not open.
    I dont any have recover option in my database to rrecover the datafile.
    Can anyone pls tel me how can I delete the datafile when my database is not open.
    Thanks in advance.
    nonuday
    Edited by: Nonuday on Apr 29, 2012 10:51 PM

    Hi,
    >
    Its in not recovery mode, or you do not have any backup?
    Then you have to drop that file from SQL as
    SQL> alter database datafile 'Location' offline drop;
    I tried what you have mentioned..
    SQL> alter database datafile '/oracle/oradata11g/cboedbCBOEDEV_T24DISTINDEX1.dbf' offline drop;*
    Database altered.*
    SQL> alter database open;*
    alter database open*
    +*
    ERROR at line 1:*
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open*
    SQL> alter database open NORESETLOGS;*
    alter database open NORESETLOGS*
    +*
    ERROR at line 1:*
    ORA-01610: recovery using the BACKUP CONTROLFILE option must be done*
    SQL> recover using backup controlfile;*
    ORA-00279: change 362471193 generated at 02/01/2012 15:59:03 needed for thread*
    +1+
    ORA-00289: suggestion :*
    +/glosoft/oracle/oracle11g/app/oracle/product/11.1.0/db_1/dbs/arch1_24555_7443323+
    +42.dbf+
    ORA-00280: change 362471193 for thread 1 is in sequence #24555*
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}*
    ORA-00308: cannot open archived log*
    +'/glosoft/oracle/oracle11g/app/oracle/product/11.1.0/db_1/dbs/arch1_24555_744332+
    +342.dbf'+
    ORA-27037: unable to obtain file status*
    IBM AIX RISC System/6000 Error: 2: No such file or directory*
    Additional information: 3*
    What to do now??
    pls help...
    Edited by: 897910 on Feb 3, 2012 3:46 AM

  • ORA-01152: file 1 was not restored from a sufficiently old backup

    Hi,
    I have restored the control file from auto-backup, but some of my archive logs are missing...
    when I am recovering it as
    RECOVER DATABASE UNTIL CANCEL USING BACKUP CONTROLFILE;
    ORA-00279: change 37158334186 generated at 02/19/2012 02:53:11 needed for
    thread 1
    ORA-00289: suggestion : /u07/oradata/main/arch/main_738330900_118084_1.dbf
    ORA-00280: change 37158334186 for thread 1 is in sequence #118084
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/u02/oradata/main/system01.dbf'
    and
    ALTER DATABASE OPEN RESETLOGS
    ERROR at line 1:
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/u02/oradata/main/system01.dbf'
    how to sort out this issue, I just want to open the database in whatever mode.
    Please help me.

    If no - then startup in mount state and make this file offline.This is archive log file. Might you thought it as datafile ;-)
    @OP.
    Once again i suggest you to refer what aman said below.
    Aman.... wrote:
    This has been discussed already couple of times, tried using the search ?
    https://forums.oracle.com/forums/search.jspa?threadID=&q=ORA-01152%3A+file+1+was+not+restored+from+a+sufficiently+old+backup&objID=f61&dateRange=all&userID=&numResults=15
    Aman....Also check tihs. but but but but its not an supported format, it can be uesd when there are no other options.
    *RECOVER A DATAFILE WITH MISSING ARCHIVELOGS [ID 418476.1]*
    Edited by: CKPT on Feb 21, 2012 12:11 PM

  • Backup/Restore Testing Regimen

    I am coming up with a list of scenarios to test our backups. Here are the scenarios that I can come up with. Can you guys think of more?
    1. Whole database restore to current
    2. whole database restore to point in time
    3. missing datafile
    4. missing control file
    5. restore dropped table to current
    6. restore dropped table to point in time
    Also, I plan to test back ups as often as I can but of course this will depend on the workload one has, but how often do you guys think recovery tests should happen? monthly? quarterly?
    Thanks!

    ninteck wrote:
    I am coming up with a list of scenarios to test our backups. Here are the scenarios that I can come up with. Can you guys think of more?
    1. Whole database restore to current
    2. whole database restore to point in time
    3. missing datafile
    4. missing control file
    5. restore dropped table to current
    6. restore dropped table to point in time
    items 5 and 6 are not restoreable by use of a proper backup. Backups restore data blocks of data files. It has no knowledge of specific objects that may be stored on those blocks. You can restore whole databases, data files, or tablespaces (which really are just an abstraction of a data file). To restore a table, you have to restore the entire database.
    But as the other poster said, if you can do a full db restore, then your backup is good.
    >
    Also, I plan to test back ups as often as I can but of course this will depend on the workload one has, but how often do you guys think recovery tests should happen? monthly? quarterly?
    How long do you want to go before you find out you have a bad backup? What is your recovery windows defined in the rman repository?
    Thanks!Edited by: EdStevens on Mar 26, 2012 6:47 PM

Maybe you are looking for

  • Object link LFA1

    Hi gurus, I've created object link LFA1 in DC10 (I also have EKPO and EBAN object links). But when creating a purchase order and linking a document to it, it doen't create the link, it has the EKPO link but never the LFA1 link. When linking it manual

  • Proxy-Generierung: Fehler aufgetreten error while gnerating  Inbound proxy

    Hi Experts, 1) i created outbound & inbound service interfaces with same MT. 2) when i was create the server proxy first attempt its created successfully. 3) Due to some changes in the sap pi structure ( DT ,MT,SI ). i delete the server proxy instead

  • Multiple (independent) Image Rotation

    Usually I'm good at finding information to solve problems by searching the forums. but honestly I've never seen this problem solved or ever heard any mention of it. . . . here goes. I'm writing a space shooter that uses images as the hero and enemy s

  • Folio does not preview correctly

    We are new to digital publishing. We have been trying to view an article on an iPad in the content viewer and the horizontal preview is not correct. The vertical preview is fine. It is made up of three pages, the first page in the horizontal view is

  • Question about supported servers to be backed up by DPM 2012 R2

    Hello everybody, do I interpret http://technet.microsoft.com/en-us/library/jj860400.aspx correctly? DPM 2012 R2 cannot backup Windows Server 2003 32-bit any more? DPM 2012 R2 cannot backup Windows Server 2008 32-bit any more? DPM 2012 R2 cannot backu