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: HELP: reduce DBF file size?

Re: HELP: reduce DBF file size?

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Thu, 09 Dec 1999 17:53:30 +0800
Message-ID: <384F7C1A.7DC1@yahoo.com>


UofA wrote:
>
> Hi there,
>
> We have a problem with trying to resize a database file. We need to make
> Oracle 8i for NT 'shrink' it's system schema datafile. I have tried to use
> "ALTER TABLESPACE 'filename' 'SIZE', but Oracle seems to want to make a copy
> of the datfile as part of completing the command.
>
> Is there a way to make Oracle simply 'prune' an existing file - removing
> empty extents/blocks - without actually making a copy of the file in the
> process?
>
> Thanks in advance,
> Eric
>
> A bit more detail...
> An new application got it's default tablespace set as SYSTEM (this was a a
> mistake we discovered later). We ran the app's routines to populate the
> database and they worked fine. So we set the app to run overnight importing
> data into it's Oracle tables and went home.
>
> Next morning Oracle's SYSTEM table file had grown to fill the disk it was
> on - the disk is about 25 gigs. We don't have another 25 gig volume handy,
> so the ALTER TABLESPACE above is unworkable.

alter database datafile '...' size nnn

You can shrink to the point where there are no further blocks in that file.
--



Connor McDonald
"These views mine, no-one elses etc etc" connor_mcdonald_at_yahoo.com

"Some days you're the pigeon, and some days you're the statue." Received on Thu Dec 09 1999 - 03:53:30 CST

Original text of this message

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