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: Lothar Armbruester <lothar.armbruester_at_t-online.de>
Date: Wed, 27 Nov 2002 20:47:27 +0100
Message-ID: <PM0003B0717F87DC81@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

-- 
Lothar Armbrüster       | la_at_oktagramm.de
Hauptstr. 26            | la_at_heptagramm.de
D-65346 Eltville        | lothar.armbruester_at_t-online.de
Received on Wed Nov 27 2002 - 13:47:27 CST

Original text of this message

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