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: Syltrem <syltrem_at_videotron.spammenot.ca>
Date: Thu, 7 Feb 2002 10:30:13 -0500
Message-ID: <84x88.4006$EI.21389@tor-nn1.netcom.ca>


alter database datafile 'xxxx' resize 999M;

But if your file contains data past 999M, then you can't truncate it (Oracle will return an error - not harmful) . You'll have to compress you data first (that is, export/drop/import).
Also I don;t now about other OS'es bu on VMS only the EOF pointer will be moved. You need to close the file and do a $ SET FILE/TRUNCATE to actually reduce the number of blocks used by the file.

HTH

--

Syltrem
http://pages.infinit.net/syltrem (OpenVMS related web site - en français)
To reply to myself directly, remove .spammenot from my address

"Gaetan Poitras" <poitrasg_at_crcsogema.com> a écrit dans le message de news:
3ebc2be2.0202070625.2fbface4_at_posting.google.com...

> Hello.
> I am looking to find a solution to reduce the size of a datafile. Is
> it possible and how..?
> Thank you
Received on Thu Feb 07 2002 - 09:30:13 CST

Original text of this message

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