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: How to Defrag a Tablespace?

Re: How to Defrag a Tablespace?

From: James Petts <jpetts_at_celltech.co.uk>
Date: Tue, 26 May 1998 08:46:32 +0100
Message-ID: <356A7358.2C979767@celltech.co.uk>


SELECT BLOCKS, BYTES
  FROM DBA_FREE_SPACE
 WHERE TABLESPACE_NAME = 'USER'
 ORDER BY BLOCKS DESC; will give you all free space fragments in the tablespace USER in descending order of size. To defragment the tablespace export the objects from the tablespace, drop them, then reimport them.

Luca Minudel wrote:
>
> I've USER tablespace made of 1 datafile of 100 MByte, 25MByte are free (auto-extent is off).
> When I create a new table with an Initial Extent of 9MByte I get error ORA-1658: "Failed to find sufficient contiguous space to allocate INITIAL extent for segment being created."
> How can I check tablespace fragmentation? How can I reduce tablespace fragmentation when it's fragmented?
>
Received on Tue May 26 1998 - 02:46:32 CDT

Original text of this message

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