Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Drop datafile.
This command is used to put a datafile in recovery mode, not for dropping the datafile. Now you either need to do recovery, or drop the tablespace completely and re-create it.
Simply put, you cannot drop a datafile.
Suzy
Sesi Odury wrote:
>
> Hi,
>
> I restored the database from cold backup. There seems to be a problem with one of the datafiles. Since there is no useful data in it, I tried dropping it using...
>
> SQL> ALTER DATABASE DATAFILE '<ENTIRE PATH>' OFFLINE DROP;
>
> Database altered.
>
> I also deleted the physical file by going to that location and deleting it.
> However I still find the datafile existing.
>
> SQL> select name, status from v$datafile;
> I still find the datafile.
>
> Can someone suggest me something??
>
> Thanks a lot...
> Sesi
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Sesi Odury
> INET: SesiO_at_netinfotech.com
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Suzy Vordos INET: lvordos_at_qwest.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Wed Feb 05 2003 - 14:04:36 CST