[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

Similar Messages

  • Recovery of datafile which is in RECOVER state in NOARCHIVELOG mode

    Hi,
    i have following datafile in recover state
    12 /oradata/ORADATA/undo_tbs.dbf OFFLINE
    I tried to recover but getting following errors....
    SQL> recover datafile 12;
    ORA-00279: change 29659636 generated at 03/26/2011 00:47:23 needed for thread 1
    ORA-00289: suggestion : /u01/app/oracle/product/10.2.0/flash_recovery_area/ORCL/archivelog/2011_04_07/o1_mf_1_4608_%u_.arc
    ORA-00280: change 29659636 for thread 1 is in sequence #4608
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00308: cannot open archived log '/u01/app/oracle/product/10.2.0/flash_recovery_area/ORCL/archivelog/2011_04_07/o1_mf_1_4608_%u_.arc'
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    due to this datafile we r not able to create tables...is there any solution except restoring from backup...Pl helppp

    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

  • 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

  • Drop datafile

    Hi mates,
    I dropped a newly created datafile in a tablespace that has two datafiles.
    The syntax used is : startup mount;
    alter database datafile 'c\oradata\ooo.df01' offline drop;
    DATABASE ALTERED.
    Now the datafile still shows as available in the DBA_DATA_FILES and the OEM..
    What could be going wrong?
    Do i need to do an os delete?
    Is it not possible to drop a datafile atall?
    Appreciate any response...
    Cheers!!!!

    Hello All,
    Our database is in archive log mode and we are running oracle 9i.
    We had to release disk space occupied by a tablespace which is used for temporary contents. (Used as temp tablespace).
    For this we have made a few datafiles in that as offline drop. As explained in the forum, the datafiles are still showing up in dba_data_files in recover state.
    Hence, we decided to make the datafiles online again but now we are getting error that the file needs media recovery. We can keep the files offline.
    My concern is if the database is shutdown for backup purposes, will it give error during restart? Also do we need to recover the database in that case? If yes then will only recover database command work?
    Regards,
    Anup

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

  • Recently, the language which was English ( united states) has changed to chinese . I have reinstalled  itunes for WINDOWS 7and the problem persists

    rECENTLY THE ITUNES language has changed from United states English to Chinese. I have reinstalled and it persists.tHis is for WINDOW 7

    Hi, welcome to Apple Support Communities.
    Start iTunes. Second menu keyword at the top-left will be Edit. Click this and then click the last item on the menu that drops down which is Preferences. The left-most tab is General and last control on the tab is Language. Click the drop-down, select English UK or English US which should be the 8th & 9th items respectively, click OK. Close iTunes, reopen.
    tt2

  • How to move a DB in a recovering state from one server to another?

    I have a server with many DBs in a "recovering" state (log shipping secondary). There is a hardware failure and the server needs to be recreated.
    How do I keep the DBs so that I'll be able to attach them to the new server?
    I tried to backup the DBs but I get this message:
    Msg 927, Level 14, State 2, Line 2
    Database 'DBName' cannot be opened. It is in the middle of a restore.
    I can't bring fresh backups from the main site as the sites are far from each other and moving the backups will be too expensive.

    I have a server with many DBs in a "recovering" state (log shipping secondary). There is a hardware failure and the server needs to be recreated.
    How do I keep the DBs so that I'll be able to attach them to the new server?
    I can't bring fresh backups from the main site as the sites are far from each other and moving the backups will be too expensive.
    You can run recovery on current log shipping secondary database to bring it online as Suggested by Neha. Now take differential backup from primary and restore it on secondary to recreate logshipping.Diff backup would be less in size and would take less time
    to transfer.
    Since you had hardware failure I guess it would be good option to recreate Logshipping what was extent of hardware failure ? .Because since hardware was corrupt any files residing on it might as well be damaged.Take a full backup of primary database and
    move it to secondary and restore it with standby.Before that please remove database in recovery mode either by dropping it or by first running recovery and then
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers
    My TechNet Wiki Articles

  • Diff btw "recover datafile file#" & "alter database recover datafile file#"

    What is the difference between
    "recover datafile file#"
    "alter database recover datafile file#"
    Thanks
    Naveen

    I don't mean to be rude, but the statement that "There is no difference in both the commands" is facile in the extreme. Sounds like more off-the-cuff instant advice than the considered thoughts of someone who's actually bothered to try both commands out.
    The "alter database recover..." command is a disaster waiting to happen and should never be used by anyone who actually wants to achieve a successful database recovery. It has the effect of suppressing most of the interactive dialogue you get when you submit the shorter "recover..." command, and indeed causes spurious errors to be displayed because the non-interactive recovery process gets it wrong.
    For example, here's me recovering my database using the "alter database" syntax:
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01157: cannot identify/lock data file 4 - see DBWR trace file
    ORA-01110: data file 4: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\WIN10\USERS01.DBF'
    SQL> alter database recover datafile 4;
    alter database recover datafile 4
    ERROR at line 1:
    ORA-00279: change 642359 generated at 07/04/2008 09:03:18 needed for thread 1
    ORA-00289: suggestion :
    C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\WIN10\ARCHIVELOG\2008_07_04\O1_MF_1_9_%U_.ARC
    ORA-00280: change 642359 for thread 1 is in sequence #9Note the slightly alarming report of an 'error at line 1'. What's difficult to convey in mere text, however, is that at the end of that output, the thing just sits there, and you've no idea what on Earth is happening on the database. The text tells you it's making a suggestion, but there's no indication of how you accept the suggestion, of what's happening when you do accept it or where anything is up to.
    I've interrupted one of those once (fortunately only in a training room) and lost the entire database as a result (because a half-complete, interrupted recovery is worse than no recovery at all).
    Compare that with the plain "recover..." syntax example:
    SQL> recover datafile 4;
    ORA-00279: change 642359 generated at 07/04/2008 09:03:18 needed for thread 1
    ORA-00289: suggestion :
    C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\WIN10\ARCHIVELOG\2008_07_04\O1_MF_1_9_%U_.ARC
    ORA-00280: change 642359 for thread 1 is in sequence #9
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00279: change 642571 generated at 07/04/2008 09:06:26 needed for thread 1
    ORA-00289: suggestion :
    C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\WIN10\ARCHIVELOG\2008_07_04\O1_MF_1_10_%U_.ARC
    ORA-00280: change 642571 for thread 1 is in sequence #10
    ORA-00278: log file
    'C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\WIN10\ARCHIVELOG\2008_07_04\O1_MF_1_9_46TPVL2G_.ARC' no longer needed for this recovery
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00279: change 642576 generated at 07/04/2008 09:06:32 needed for thread 1
    ORA-00289: suggestion :
    C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\WIN10\ARCHIVELOG\2008_07_04\O1_MF_1_12_%U_.ARC
    ORA-00280: change 642576 for thread 1 is in sequence #12
    ORA-00278: log file
    'C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\WIN10\ARCHIVELOG\2008_07_04\O1_MF_1_11_46TPVRMK_.ARC' no longer needed for this recovery
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    Log applied.
    Media recovery complete.There are no weird error messages reported here. The suggestion is accompanied by a prompt that tells you how to accept it. Every time a new log is required, a new prompt is given. You can cleanly cancel at any time by typing 'cancel'. You are kept informed throughout and are in charge throughout.
    Anyone that uses "alter database" syntax during a recovery is, therefore, either brave or foolhardy. In either case, there is a very profound difference between the two.
    Your parting shot that 'alter database' is a SQL command and 'recover' can be an RMAN command misses the point by a wide mile, too. RMAN can issue pretty much any piece of SQL you like, so long as you wrap it in the SQL command:
    RMAN> sql 'alter database recover datafile 4';
    using target database control file instead of recovery catalog
    sql statement: alter database recover datafile 4
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 07/04/2008 09:23:16
    ORA-00279: change  generated at  needed for thread
    RMAN-11003: failure during parse/execution of SQL statement: alter database recover datafile 4
    ORA-00279: change 642359 generated at 07/04/2008 09:03:18 needed for thread 1
    ORA-00289: suggestion : C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\WIN10\ARCHIVELOG\2008_07_04\O1_MF_1_9_%U_.ARC
    ORA-00280: change 642359 for thread 1 is in sequence #9We don't get much further in RMAN with this dodgy form of the recovery command than we did in SQL*Plus, it's true -but that's just because it's a silly command to use in the first place, wherever you thought to use it. The distinction you seek to draw between 'SQL commands' and 'RMAN commands' is false in this case, in other words.

  • 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

  • How to reverse service order which is in released state

    Hi,
    Please guide me how can we reverse a service order which is in released state.
    Is it possible to reverse a service order with released state?
    Please guide it is very urgent.
    Thanks and Regards
    Edited by: MPVash Vash on Dec 5, 2008 10:04 AM
    Edited by: MPVash Vash on Dec 5, 2008 10:06 AM

    Hi,
    a delivery suspension due to non-payment can just be released via an incoming payment.
    You could also manually do this be setting the end date of the suspension, but I would not advise that. As I currently do not have system to check I'm not sure whether you could use ISM_SALES_ORDER_CHANGE, but you can try via the where-used list of structure JKSI_SUSPEND which needs to be used in this case.
    Tim

  • Transaction/Report to process background work items which r in READY state

    HI,
    Can somebody kindly tell me the transaction/report program to process background work items which are in ready state. SM59 configuration was missing and hence, workflows failed to execute after being started successfully. Now, I want to comeplete these operations.
    Thanks a lot,
    Max

    Hi Max,
    Did you check transaction SWPC? If the workflows are in there you can start them through in a proper way.
    Regards,
    Martin

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

  • 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

Maybe you are looking for

  • Problem with links for external user

    Hi, We´re using SAP NetWeaver Portal 2004s SPS 10 and we have a problem with links within notification-mails: The link to the document (e.g. within a subscription mail) consists of "http:///...". Only user using the portal within our network can open

  • Pop-up menu trouble!

    I am learning to create a website using dreamweaver, fireworks and photoshop. I created a sample website using these tools. Initially I created a layout in photoshop followed by web slices in fireworks. Later I exported my work in dreamweaver to comp

  • Upgrade Safari 1.2 to 1.3.1 after downgrade from Tiger to Panther

    I wished to restore performance to my G3 iBook by downgrading from Tiger to Panther, and have been successful with that and have restored all apps to Panther versions except for Safari. The downgrade (archive and install) left Safari 2.0 on my HD for

  • X11 and moving windows/Spaces

    Hi! After upgrading (actually clean install) to Leopard, I have some weird X11 behaviour: When I use the DVI to external screen for dual head, X11 seems to only want to inhabit the main display/screen, and I am not able to drag the window(s) to the o

  • Request for some information on OEM(grind Controler)

    Hi Just thought of checking with you guys on some information on OEM(grind Controler) Is there any option/TAB to check whether all the data gard/standby database are ready to use or all are in sync with the primary database in OEM/Grid Controller Any