Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Clean up datafiles

Re: Clean up datafiles

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Tue, 05 Oct 2004 22:18:15 -0700
Message-ID: <1097039977.113555@yasure>


yelellav wrote:

> When you drop a tablespace manually, there is the potential for
> associated datafiles to remain on the OS. I would like to know how I
> can find these datafiles that are no longer associated with a
> tablespace and delete them.
>
> Thanks.

  1. SELECT file_name FROM dba_data_files;

Then make sure they are gone.

But far better:

2. DROP TABLESPACE <tablespace_name>

    INCLUDING CONTENTS AND DATAFILES
    CASCADE CONSTRAINTS;

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Wed Oct 06 2004 - 00:18:15 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US