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: Resize Datafile

Re: Resize Datafile

From: <Kenneth>
Date: Thu, 07 Feb 2002 15:20:35 GMT
Message-ID: <3c6298b5.22126446@news.capgemini.se>


On 7 Feb 2002 06:25:46 -0800, poitrasg_at_crcsogema.com (Gaetan Poitras) wrote:

>Hello.
>I am looking to find a solution to reduce the size of a datafile. Is
>it possible and how..?
>Thank you

Hi,

Alter database datafile 'bla-bla_01.dbf' resize <n> K|M;

This way you can both increase and decrease the size of the datafile.

Beware that you can only decrease the size of the datafile with the space that is free between highest used block of the datafile and the last block of the file. If the tablespace is fragmented, the free spaces between extents cannot be deallocated this way. Check dba_free_space for details.

Regards,

Received on Thu Feb 07 2002 - 09:20:35 CST

Original text of this message

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