Recovering Dropped Datafile

Hi,
I have accidently dropped SYSAUX datafile... How can I recover it?
I used " ALTER DATABASE DATAFILE ‘<datafile name with complete path>’ OFFLINE DROP;" to drop the datafile...
Please suggest me...
Thanks
KSG

The first question I would like to have been answerred is the fact if the datafile still exists on the filesystem ? The second question would be if you are running in archive log mode ? If so you could try the following approach, if no archive logs are there and no backup:
- The alter database command has only removed the entry from the controlfile, so the datafile is only missing there as an administrative problem.
- alter database backup controlfile to trace; (trace file containing the controlfile create script)
- add in the script the dropped datafile.
- Bring down the database with an shutdown immediate
- make a backup from the whole database (just to have your start position always there !!)
- run the create controlfile script.
You could end up with a database which will not open due to recovery issues, but probably this is fixable.
Regards, Gerwin

Similar Messages

  • Recovering a datafile from backup in different server

    Hi All,
    I usually take hot backup of datafiles to different server like this because i dont have enough space in same server. I
    SQL> alter tablespace XXXX begin backup;
    host scp /bu1/oradaTA/XXXXX/XXXXX [email protected]:/db1dw/oradata/backup/dec2010/XXXX
    alter tablespace OPS end backup;
    If i want to recover the datafile can i normally do the offline drop of that datafile and copy the datafile from backup which is in differnet server thorugh scp and make the datafile online??? and the database is in archivelog mode but i dont care abt the log files. i just need to recover the datafile as it was from last backup.
    or do we need to use any recover datafile commands?? if need to use any recover datafile command from where it will recover the datafile??
    i dont have any scripts for backup or recovery , i just take manual scp of the datafiles.
    Help plzz, thanks in advance.....

    SQL> alter tablespace XXXX begin backup;
    host scp /bu1/oradaTA/XXXXX/XXXXX [email protected]:/db1dw/oradata/backup/dec2010/XXXX
    alter tablespace OPS end backup;What is the version you are using? is it 9i if not you can peform backup at database level instead of tablespace level.
    If i want to recover the datafile can i normally do the offline drop of that datafile and copy the datafile from backup which is in differnet server thorugh scp and make the datafile online??? and the database is in archivelog mode but i dont care abt the log files. i just need to recover the datafile as it was from last backup.Why offline drop to recover? Are you sure what are you doing?
    or do we need to use any recover datafile commands?? if need to use any recover datafile command from where it will recover the datafile??1) alter system switch logfile;
    2) select max(sequence#) from v$archived_log;
    For Ex:
    Sequence -- 100
    3) alter database begin backup;
    4) copy all the datafiles to another server(bcoz you not have space in same server)
    5) alter database end backup;
    6) select max(sequence#) from v$archived_log;
    For Ex:
    Sequence -- 110
    Then copy these generated 10 archives to new server also.

  • Create standby having offline dropped datafile .

    Hi,
    How to deal with offline dropped datafiles on source when creating standby .
    I've 4 node rac, and one tablespace offline and related bigdatafile droped offline (because of corruption).
    SQL> select tablespace_name , status from dba_tablespaces order by status ;
    TABLESPACE_NAME                STATUS
    OLD_TBS                         OFFLINE
    SQL> select TS#,STATUS,ENABLED from v$datafile order by status;
           TS# STATUS  ENABLED
            16 OFFLINE DISABLED
    Its 4 node RAC 10.2.0.3 and ASM .
    select name,TS#,STATUS,ENABLED from v$datafile order by status
    +DBG1/dbname/datafile/bigfile.279.615031073
    Currently I'm doing something like that
    rman target /
    catalog backuppiece '/oarch/backup/bigfile.279.615031073';
    run{
    allocate channel ch1 type disk;
    SET NEWNAME FOR DATAFILE 16 TO '+DBG1';   
    restore datafile 16 from tag='TAG20100209T124507';
    SWITCH DATAFILE 16;
    release channel ch1;
    and then after duplicate is end
    SQL> alter database datafile 16 offline drop;
    SQL> recover automatic standby database;Please advice.
    Regards
    GregG

    Hi GregG,
    I think there is no requirement to file the request with Oracle. :-) Please check the below testcase where I tried to simulate the scenario this time by using RMAN.
    Primary Database: oraprd
    Physical Standby database: oraphy
    SYS @ oraprd>select tablespace_name,file_id from dba_data_files;
    TABLESPACE_NAME                   FILE_ID
    SYSTEM                                  1
    SYSAUX                                  2
    UNDOTBS1                                3
    USERS                                   4
    TEST                                    5
    SYS @ oraprd>select TS#,file#,STATUS,ENABLED from v$datafile order by status;
           TS#      FILE# STATUS  ENABLED
             6          5 OFFLINE DISABLED
             1          2 ONLINE  READ WRITE
             2          3 ONLINE  READ WRITE
             4          4 ONLINE  READ WRITE
             0          1 SYSTEM  READ WRITEConfigure catalog (controlfile) to exclude an offline tablespace TEST and perform the full database backup with standby control file
    C:\>rman target sys/abc123@oraprd
    connected to target database: ORAPRD (DBID=2633932676)
    RMAN> configure exclude for tablespace 'TEST';
    using target database control file instead of recovery catalog
    Tablespace TEST will be excluded from future whole database backups
    new RMAN configuration parameters are successfully storedprimary database backup with standby control file
    RMAN> run{
    2>  allocate channel d1 type disk;
    3>  allocate channel d2 type disk;
    4>  backup database format 'c:\temp\rman_oraprd_%U.bkp';
    5>  backup archivelog all format 'c:\temp\rman_arch_%U.bkp';
    6>  backup current controlfile for standby format 'c:\temp\rman_standby_%U.bkp';
    7>  }
    released channel: ORA_DISK_1
    allocated channel: d1
    channel d1: SID=9 device type=DISK
    allocated channel: d2
    channel d2: SID=143 device type=DISK
    Starting backup at 15-JUN-12
    file 5 is excluded from whole database backup  <===
    channel d1: starting full datafile backup set
    channel d1: specifying datafile(s) in backup set
    input datafile file number=00001 name=C:\APP\XYZ\ORADATA\ORAPRD\ORAPRD\DATAFILE\O1_MF_SYSTEM_DATA_D-ORA11PRD_I-2924940358_TS-SYSTEM_FNO-1_07NDBK6A_.DBF
    input datafile file number=00003 name=C:\APP\XYZ\ORADATA\ORAPRD\ORAPRD\DATAFILE\O1_MF_UNDOTBS1_DATA_D-ORA11PRD_I-2924940358_TS-UNDOTBS1_FNO-3_0ANDBK7H_.DBF
    channel d1: starting piece 1 at 15-JUN-12
    channel d2: starting full datafile backup set
    channel d2: specifying datafile(s) in backup set
    input datafile file number=00002 name=C:\APP\XYZ\ORADATA\ORAPRD\ORAPRD\DATAFILE\O1_MF_SYSAUX_DATA_D-ORA11PRD_I-2924940358_TS-SYSAUX_FNO-2_08NDBK6A_.DBF
    input datafile file number=00004 name=C:\APP\XYZ\ORADATA\ORAPRD\ORAPRD\DATAFILE\O1_MF_USERS_DATA_D-ORA11PRD_I-2924940358_TS-USERS_FNO-4_09NDBK6B_.DBF
    channel d1: specifying datafile(s) in backup set
    including standby control file in backup set
    channel d1: starting piece 1 at 15-JUN-12
    channel d1: finished piece 1 at 15-JUN-12
    piece handle=C:\TEMP\RMAN_STANDBY_0VNDJJR2_1_1.BKP tag=TAG20120615T123858 commen
    t=NONE
    channel d1: backup set complete, elapsed time: 00:00:03
    Finished backup at 15-JUN-12
    released channel: d1
    released channel: d2
    RMAN> exitBuild the physical standby database using RMAN
    C:\>rman target sys/abc123@oraprd auxiliary sys/abc123@oraphy
    connected to target database: ORAPRD (DBID=2633932676)
    connected to auxiliary database: ORAPRD (not mounted)
    RMAN>
    RMAN>  run{
    2>  allocate auxiliary channel a1 type disk;
    3>  allocate auxiliary channel a2 type disk;
    4>  duplicate target database for standby nofilenamecheck;
    5>  }
    using target database control file instead of recovery catalog
    allocated channel: a1
    channel a1: SID=134 device type=DISK
    allocated channel: a2
    channel a2: SID=10 device type=DISK
    Starting Duplicate Db at 15-JUN-12
    contents of Memory Script:
       restore clone standby controlfile;
    executing command: SET NEWNAME
    Starting restore at 15-JUN-12
    file 5 is excluded from whole database backup <==
    channel a1: starting datafile backup set restore
    channel a1: specifying datafile(s) to restore from backup set
    channel a1: restoring datafile 00002 to C:\APP\XYZ\ORADATA\ORAPRD\ORAPHY\DATAFILE\O1_MF_SYSAUX_DATA_D-ORA11PRD_I-2924940358_TS-SYSAUX_FNO-2_08NDBK6A_.DBF
    channel a1: restoring datafile 00004 to C:\APP\XYZ\ORADATA\ORAPRD\ORAPHY\DATAFILE\O1_MF_USERS_DATA_D-ORA11PRD_I-2924940358_TS-USERS_FNO-4_09NDBK6B_.DBF
    channel a1: reading from backup piece C:\TEMP\RMAN_ORAPRD_0PNDJJN7_1_1.BKP
    datafile 3 switched to datafile copy
    input datafile copy RECID=10 STAMP=786026596 file name=C:\APP\XYZ\ORADATA\ORAPHY\ORAPHY\DATAFILE\O1_MF_UNDOTBS1_7XPWYO19_.DBF
    datafile 4 switched to datafile copy
    input datafile copy RECID=11 STAMP=786026596 file name=C:\APP\XYZ\ORADATA\ORAPHY\ORAPHY\DATAFILE\O1_MF_USERS_7XPWYN8N_.DBF
    Finished Duplicate Db at 15-JUN-12
    released channel: a1
    released channel: a2
    RMAN>start the managed recovery
    SYS @ oraphy>recover managed standby database disconnect;
    Media recovery complete.
    SYS @ oraphy>select TS#,file#,STATUS,ENABLED from v$datafile order by status;
           TS#      FILE# STATUS  ENABLED
             6          5 OFFLINE DISABLED
             1          2 ONLINE  READ WRITE
             2          3 ONLINE  READ WRITE
             4          4 ONLINE  READ WRITE
             0          1 SYSTEM  READ WRITE
    SYS @ oraphy>select thread#,sequence#,process,status from v$managed_standby;
       THREAD#  SEQUENCE# PROCESS   STATUS
             1         24 RFS       IDLE
             1         22 MRP0      WAIT_FOR_GAP  <---------------
    ....archive the current log on the primary database
    SYS @ oraprd>select thread#,sequence#,status from v$log;
       THREAD#  SEQUENCE# STATUS
             1         22 INACTIVE
             1         23 ACTIVE
             1         24 CURRENT
    SYS @ oraprd>alter system archive log current;
    System altered.
    SYS @ oraphy>select thread#,sequence#,process,status from v$managed_standby;
       THREAD#  SEQUENCE# PROCESS   STATUS
             1         25 RFS       IDLE
             1         25 MRP0      WAIT_FOR_LOG <--------  the recovery is in progress on the standby database.
    ....Regards,
    Vaibhav

  • Dropping datafiles

    Can I drop datafiles individually, or do I need to drop the entire tablespace? The ALTER TABLESPACE command doesn't appear to have a drop datafile clause. I've dropped enough objects in the tablespace to reduce the amount of space used to 1%, but there are still a dozen objects including tables and indexes. There are also references to and from these objects to objects in other tablespaces.
    Kevin Tyson

    ALTER DATABASE dbname
    DATAFILE filename OFFLINE DROP;
    Does not actually drop datafiles. It only takes them offline if the database is in noarchivelog mode.
    However, that section in the SQL reference goes on to say...
    "However, the DROP clause does not remove the datafile from the database. To do that, you must drop the tablespace in which the datafile resides. "
    Which answers my question.

  • DROP DATAFILE FROM A TABLESPACE

    What is the difference between "ALTER TABLESPACE DROP DATAFILE ..." and "ALTER DATABASE DATAFILE ... OFFLINE DROP"?
    I read the Oracle document before, it tolds me that the "ALTER DATABASE DATAFILE ... OFFLINE DROP" is not really drop data file. But, does the "ALTER TABLESPACE DROP DATAFILE ..." really drop data file?

    "ALTER DATABASE DATAFILE ... OFFLINE DROP"
    will take datafile offline to drop it later. In this case your control file will need to be recreated to de-link the datafile from database.
    From 10g onwards you can ALTER TABLESPACE DROP DATAFILE... but in this case datafile should not contain any data in it.

  • Can i recovered dropped users from Flash Back Database

    I am having confusion on step by step process for Recovering dropped user from Flash Back Database or from RMAN.
    And Which case we will use Flash Back Database or RMAN?

    1) Restore database (PITR- Point In Time Recovery) until the schema was dropped.
    RECOVER DATABASE UNTIL SCN XXXXX;
    2) If you only want a table:
    flashback table XXXX to before drop;
    3) Flashback database (if you have flashback on):
    FLASHBACK DATABASE TO SCN XXXXX;
    or
    FLASHBACK DATABASE TO TIME "TO_DATE('XX/XX/XX','MM/DD/YY')";
    You have some examples at documentation:
    http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmflash.htm

  • Recover corrupted datafile

    I created database from cold backup and db is up and running. After recovery identified some datafiles has corruption with dbfsize.
    Could anybody please help me how to recover corrupted datafile from cold backup?

    sorry in my first message I mentioned I verified with dbfsize. It is not dbfsize it is dbv than I found some files has corruption. I db verified original backup datafiles those file are fine no corruption. The problem is while copying the files to the new location some corruption happened. Now I will try to copy original file and dbv first. Now I to recover bad datafiles? I need some steps. Thanks in advance.
    Please provide your Oracle version, OS , the actual ORA- errorsOracle version is 9.2.0.7.0
    OS SunOS 9
    when I run dbv I got big list of errors copied portion of it....
    $cat DEEFF.log |more
    DBVERIFY: Release 9.2.0.7.0 - Production on Fri Feb 27 00:20:14 2008
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    DBVERIFY - Verification starting : FILE = /u01/oracle/DEEFF.dbf
    Page 1024 is marked corrupt
    Corrupt block relative dba: 0x1f400400 (file 125, block 1024)
    Bad header found during dbv:
    Data in bad block -
    type: 6 format: 2 rdba: 0x1ac580dd
    last change scn: 0x0004.f72fdb41 seq: 0x1 flg: 0x04
    consistency value in tail: 0xdb410601
    check value in block header: 0xb656, computed block checksum: 0x0
    spare1: 0x0, spare2: 0x0, spare3: 0x0
    Page 1025 is marked corrupt
    Corrupt block relative dba: 0x1f400401 (file 125, block 1025)
    Bad header found during dbv:
    Data in bad block -
    type: 6 format: 2 rdba: 0x1dc6d021
    last change scn: 0x0002.f8bcf84b seq: 0x1 flg: 0x06
    consistency value in tail: 0xf84b0601
    check value in block header: 0x5983, computed block checksum: 0x0
    spare1: 0x0, spare2: 0x0, spare3: 0x0
    Page 1026 is marked corrupt
    Corrupt block relative dba: 0x1f400402 (file 125, block 1026)
    Bad header found during dbv:
    Data in bad block -
    type: 6 format: 2 rdba: 0x1e415f13
    last change scn: 0x0004.3e23e1dd seq: 0x1 flg: 0x04
    consistency value in tail: 0xe1dd0601
    check value in block header: 0x502f, computed block checksum: 0x0
    spare1: 0x0, spare2: 0x0, spare3: 0x0
    Message was edited by:
    Gud

  • Why recovering the datafile ?

    Hi,
    why must we recover a datafile after taking it offline (without restore) to take it online again:
    SQL*Plus SYS> alter database datafile 27 offline;
    Datenbank wurde geändert.
    SQL*Plus SYS> alter database datafile 27 online;
    alter database datafile 27 online
    FEHLER in Zeile 1:
    ORA-01113: Für Datei '27' ist Media Recovery erforderlich
    ORA-01110: Datendatei 27: 'C:\APP\xxxx\ORADATA\TEST\DATAFILE\T_xxx.DBF'
    SQL*Plus SYS> alter database recover datafile 27 ;
    Datenbank wurde geändert.
    SQL*Plus SYS> alter database datafile 27 online;
    Datenbank wurde geändert.
    The version of the database is 11.2.0.2 and it is in ARCHIVELOG mode.
    Thanks in advance!

    Hello,
    why must we recover a datafile after taking it offline (without restore) to take it online again:Because there's no Checkpoint when you set a Datafile OFFLINE.
    However, if you set a Tablespace OFFLINE NORMAL there will be a Checkpoint, and you could set it ONLINE without Recovery.
    This link may give you more details:
    http://esemrick.blogspot.com/2006/03/recovery-of-offline-data-files.html
    Hope this help.
    Best regards,
    Jean-Valentin
    Edited by: Lubiez Jean-Valentin on Mar 8, 2012 3:45 PM

  • Question about ALTER TABLESPACE add/drop datafile

    Good afternoon,
    As an exercise, I created a tablespace STORETABS and added a datafile to it using the command:
    SQL> alter tablespace storetabs add datafile 'e:/storetabs3.dbf' size 50M;This step succeeded. A new file was created in the root of e: as expected.
    Following that command, I issued:
    SQL> alter tablespace storetabs drop datafile 'e:/storetabs3.dbf';
    Tablespace altered.The command succeeded. However, the file *'e:/storetabs3.dbf'* was not removed. After re-reading the documentation found at http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_3002.htm, I get the impression that removing the O/S file itself is something that always needs to be done manually.
    The question: Am I correct that there is no option to cause the "alter tablespace <tablespace> drop datafile <datafilename>" to delete the O/S file ? In other words, must the O/S file always be manually deleted as a separate step ?
    Thank you for your help,
    John.

    I believe in windows directory paths used backslash and not forward slash.
    You can argue why oracle does not give error, either while creating or while dropping ;)
    SQL> select * from v$version ;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL> select tablespace_name, file_name from dba_data_files ;
    TABLESPACE_NAME
    FILE_NAME
    USERS
    /u01/app/oracle/oradata/orcl/users01.dbf
    UNDOTBS1
    /u01/app/oracle/oradata/orcl/undotbs01.dbf
    SYSAUX
    /u01/app/oracle/oradata/orcl/sysaux01.dbf
    SYSTEM
    /u01/app/oracle/oradata/orcl/system01.dbf
    EXAMPLE
    /u01/app/oracle/oradata/orcl/example01.dbf
    SCOTT_TBS
    /home/oracle/scott_f1.dat
    6 rows selected.
    SQL> !ls -l scott_f1.dat   
    -rw-r----- 1 oracle oinstall 276832256 Sep 11 21:15 scott_f1.dat
    SQL> alter tablespace scott_tbs add datafile '/home/oracle/scott_f2.dat' size 10M ;
    Tablespace altered.
    SQL> !ls -l scott_*.dat
    -rw-r----- 1 oracle oinstall 276832256 Sep 11 21:15 scott_f1.dat
    -rw-r----- 1 oracle oinstall  10493952 Sep 11 21:18 scott_f2.dat
    SQL> alter tablespace scott_tbs drop datafile '/home/oracle/scott_f2.dat' ;
    Tablespace altered.
    SQL> !ls -l scott*.dat
    -rw-r----- 1 oracle oinstall 276832256 Sep 11 21:15 scott_f1.dat

  • How to drop datafiles and contents

    how to drop datafiles and contents without dropping tablespace?

    May be this helps,
    http://www.mydigitallife.info/2007/08/04/how-to-rename-or-move-oracle-tablespace-datafile-to-another-location/

  • Drop datafile from tablespace

    I'm new to oracle.
    After I extended a tablespace I understood that it was too large.
    I've been reading about how to drop a tablespace, but I don't want to drop the entire tablespace. I just want to drop the last datafile of this tablespace.
    I know how to drop tablespaces in sapdba and brtools, but I don't know how I can drop one specific datafile (number 29) of the tablespace PSAPBTABD?
    Please Help med.
    Best regards
    Harald V

    Hello Harald,
    see please this thread:
    Re: How to drop data file?
    also the section 43. <i>How can I delete a data file that was created by mistake</i>
    in the SAP Note<i><b> 592393 - FAQ: Oracle</b></i>
    if you have Oracle 9i databases, it is not easy to drop a datafile, but in Oracle 10g
    you can drop a datafile like that:
    <b><i>ALTER TABLESPACE</i></b> <<u><i>Tablespace Name</i></u>> <b><i>DROP DATAFILE</i></b> '<<u>PATH und NAME of Datafile</u>>';
    for example,  you have a tablespace called PSAPC11 and you want to drop a datafile called dat.data15 of this tablespace, you can drop it like that:
    e.g. <b><i>alter tablespace</i></b> <u>PSAPC11</u> <b><i>drop datafile</i></b> <u>'/oracle/C11/psapc11/dat.data15'</u>
    Best regards
    Baran

  • How to recover offlined datafiles

    Hi,
    While starting up the db im getting the below error
    ORA-01113: file 12 needs media recovery
    ORA-01110: data file 12:
    I checked the status of the datafiles and i found that the two datafiles(12 & 13) where in recovery mode.
    I checked the alertlog and found that
    1) Datafile 12 went offline on 13th Nov 2008
    Thu Nov 13 12:28:24 2008
    Errors in file c:\oradba\admin\bdump\db_ckpt_4528.trc:
    ORA-01171: datafile 12 going offline due to error advancing checkpoint
    ORA-01110: data file 12: '\\network drive\TAB_5.ORA'
    ORA-01115: IO error reading block from file 12 (block # 1)
    ORA-27072: skgfdisp: I/O error
    OSD-04006: ReadFile() failure, unable to read from file
    O/S-Error: (OS 6) The handle is invalid.
    2) Datafile 13 went offline on 27th Jan 2009
    Tue Jan 27 23:31:49 2009
    Errors in file c:\oradba\admin\bdump\db_ckpt_4568.trc:
    ORA-01171: datafile 13 going offline due to error advancing checkpoint
    ORA-01110: data file 13: '\\network drive\TAB_6.ORA'
    ORA-01115: IO error reading block from file 13 (block # 1)
    ORA-27072: skgfdisp: I/O error
    OSD-04006: ReadFile() failure, unable to read from file
    O/S-Error: (OS 6) The handle is invalid.
    I tried recovering datafile 12 and it is archive for archivedlogs from Nov 13, but i have archive logs only from 22nd Jan 2009.
    I can recover the datafile 13 using this archive logs.
    Can anyone tell me how to recover the datafile 12 ????
    Thanks in advance.
    Prem.

    thanks for your reply
    .>>>> I tried recovering datafile 12 and it is asking for archivedlogs from Nov 13, but i have archive logs only from 22nd Jan 2009 <<<<<
    Im having archivelogs only from 22nd jan 2009.
    Since the datafile 12 was offline from Nov 13 2008 therewont be any transactions on the datafile.
    So is there any way to bring it online and to the current SCN.
    Thanks,
    Prem

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

  • After offline drop datafile, v$datafile.status='RECOVER'

    OS version:
    [oracle@base ~]$ uname -a
    Linux base.no.sohu.com 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
    DB version:
    SQL> select version from v$instance;
    VERSION
    9.2.0.1.0Here is my steps,
    SQL>alter database datafile '/usr/oradata/bill/soq05.dbf' offline;
    Database altered.
    SQL>alter database datafile '/usr/oradata/bill/soq05.dbf' offline drop;
    Database altered.Cause there is nothing errors generated, I thought the commands executed sucessfully. But it's not.
    SQL> SELECT NAME,STATUS FROM v$datafile WHERE NAME='/usr/oradata/bill/soq05.dbf';
    NAME                                     STATUS
    /usr/oradata/bill/soq05.dbf              RECOVER
    SQL> SELECT FILE#, STATUS, ERROR, RECOVER, TABLESPACE_NAME, NAME 
      2  FROM   V$DATAFILE_HEADER 
      3  WHERE  RECOVER = 'YES'  OR     (RECOVER IS NULL AND ERROR IS NOT NULL);
         FILE# STATUS  ERROR                RECOVER              TABLESPACE_NAME                NAME
            18 OFFLINE                      YES                  SOQ                            /usr/oradata/bill/soq05.dbf
    [oracle@base ~]$ ll /usr/oradata/bill/soq05.dbf
    -rw-r-----  1 oracle oinstall 1073750016 Aug 28 17:39 /usr/oradata/bill/soq05.dbfThe datafile haven't been droped successfully and its status changed to 'RECOVER'. Also, I can't online it now.
    What should I do to make this datafile droped or at least make it online/offline? What I am worry is the database will be failed to restart because of this 'RECOVER' datafile.
    Thanks very much!
    Satine

    Hey Werner,
    Thanks very much for your help.
    The reason I tried to drop the datafile is after I add the datafile to tablespace, I found the datafile failed to be created on the standby side because the parameter "db_file_name_convert"'s value were incorrect. When I created the datafile on primary side, the value of "db_file_name_convert" was,
    SQL> select name,value from v$parameter where name='db_file_name_convert';
    NAME                           VALUE
    db_file_name_convert           /home/oracle/bill/oradata/bill, /U02/bill/oradata/billIt should be VALUE='/usr/oradata/bill','/U02/bill/oradata/bill'. For now the datafile's status on standby side is,
    SQL> SELECT name,status FROM V$DATAFILE where file#=18;
    NAME                                               STATUS
    /U02/bill/product/9.2.0.1/dbs/UNNAMED00018         RECOVERIf the datafile on primary side could been recovered successfully, is there a way to make the datafile on standby side also correct?
    Thanks
    Satine

  • [b]drop datafile which is in recover state[/b]

    One of the datafile got into Recover state.
    Our database is not running in Archive mode, so we can't recover it.
    We tried to drop it / change it into offline / online mode, but all failed. It remains in Recover state.
    It gives ORA-01110 error.
    Is there anyway to change the mode of this datafile or drop it.

    SQL> archive log list
    Database log mode No Archive Mode
    Automatic archival Disabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 6150
    Current log sequence 6153
    SQL>
    this is the output
    Edited by: 850520 on Apr 7, 2011 2:46 AM

Maybe you are looking for

  • Is NVIDIA GeForce graphics processor in MacBook Pro 15" retina display on motherboard

    Is NVIDIA GeForce graphics processor in MacBook Pro 15" retina display on motherboard? Or is it a separate component?

  • Error in deploying BPMProject in BPM 11g

    Hi All I have created a BPM Project in Jdev 11g3 and i am trying to deploy it on the soa server.After successful build ,my deployment is failing.Could anybody help me in this regard. [02:24:45 PM] ---- Deployment started. ---- [02:24:45 PM] Target pl

  • Trouble with iCloud Contacts & Calender / duplicates from system failure

    Duplicates do appear on iPad Contacts and even duplicate birthday entries. Even on iCloud.com the birthday entries are duplicate. The problem is when you delete a duplicate contact on iPad you lose both! Check on iCloud.com if the contact is really a

  • Dynamic SQL an Form values in formatted Search

    Hi all, Can I create Dynamically the where clause of a query (for a Formatted Search) finding that into a UDF of another table, and then store all in a Varchar(300) variable and use that variable as parameter of an EXEC? Sorry for my bad explanation,

  • Deadlock bettween two SSLEngines

    This may be related to my previous post or may be a different issue. I have the same implementation of my SSLEngine running in client and server...here is what occurs between the two SSLEngines client writes 100 bytes, server receives server writes 1