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: 9.2, reducing datafile size after tables purge ?

Re: 9.2, reducing datafile size after tables purge ?

From: Sybrand Bakker <gooiditweg_at_sybrandb.demon.nl>
Date: Fri, 02 Apr 2004 19:09:00 +0200
Message-ID: <bg7r60pgtq2udkd4fccfkfs79dvadhla2m@4ax.com>


On Fri, 02 Apr 2004 10:19:46 +0200, Patrox <patrice .castet @in- fusio. NOOO.SPAAAAM.com> wrote:

>Hi !
>
>I recently emptied 2/3rd of tables located in a locally managed
>tablespace in 9.2. If I check status of how it it full, it shows full
>at 25-30%.
>But datafiles are using 27 Gigs while now 2/3rd empty.
>If I issue alter datafile ... resize 3G for example I got an error
>"can't resize as there is data beyond new size" while the datafile is
>mostly empty.
>A simple solution would be to exp data, drop/recrete tables empty,
>reducing tablespace, import back data.
>BUT, it is a 24x7 system, so I can't do that.
>Is there a way to regain that space while application is up and
>running, without imparing it and blocking tablespace ?
>
>thanks !

alter table ... move tablespace ...
where the 2nd .... is the current tablespace.

--
Sybrand Bakker, Senior Oracle DBA
Received on Fri Apr 02 2004 - 11:09:00 CST

Original text of this message

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