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

Home -> Community -> Usenet -> c.d.o.server -> Re: Deleting a file from a temporary tablespace

Re: Deleting a file from a temporary tablespace

From: Shirish Nilekar <shirish_at_shaydes.com>
Date: 27 Nov 2002 16:39:22 -0800
Message-ID: <af54e0f8.0211271639.5024131a@posting.google.com>


Thanks Lothar! That solved my problem.

--shirish
(http://www.shaydes.com)

Lothar Armbruester <lothar.armbruester_at_t-online.de> wrote in message news:<PM0003B0717F87DC81_at_hades.none.local>...
> Shirish Nilekar wrote:
> > Hi,
> >
> > I recently added a file, 'temp02.dbf' to TEMP tablespace on a 9i DB.
> >
> > I created 'temp02.dbf' with an initial size of 100M with increments of
> > 1M.
> > It got created in $ORACLE_HOME/dbs directory. Due to some huge queries
> > involving
> > CLOB fields this file has ballooned to 869M!! I would like to delete
> > this file,
> > and recreate (a smaller one, if possible) in another location. This
> > seems possible
> > for datafiles, but how do I do it for temp files?
> > Thanks.
>
> Hello Shirish,
> try this:
>
> alter database tempfile 'temp02.dbf' drop including datafiles;
> alter tablespace ts_xxx add tempfile 'temp02.dbf' size 100M reuse;
>
> Maybe you could do:
>
> alter database tempfile 'temp02.dbf' resize 100M;
>
> Hope that helps,
> Lothar
Received on Wed Nov 27 2002 - 18:39:22 CST

Original text of this message

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