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: Free Space within Table or Index

Re: Free Space within Table or Index

From: Dick Allie <dallie_at_ionet.net>
Date: 1997/08/13
Message-ID: <33F200DF.2025@ionet.net>#1/1

pady srinivasan wrote:
>
> Neil Boemio wrote:
>
> > When creating a new table or index and after loading up the data, I'd
> > like to be able to tell if I have sized the object too small or much
> > too
> > big. Is there any view which will tell me how much free space exists
> > within a table or index?
> >
> > ___________________________________________
> > _/_/_/ Neil Boemio _/_/_/
> > _/_/_/ nboemio_at_bway.net _/_/_/
> > _/_/_/ http://www.bway.net/~nboemio/ _/_/_/
>
> select sum(extent_id), sum(bytes) from sys.dba_extents
> where segment_name='TABLE_NAME'
> group by segment_name
>
> If there a lot of extents used already, then it will be better to
> recreate the table with the initial set to sum(bytes) from above.
>
> Pady Srinivasan
>
> --
> MZ
> You can analyze the table compute statistics and then look at user or all_tables at the empty blocks and blocks used fields. It also tells you what the average row length is so you can compute anticipated growth.

Hope this helps. Dick Allie
> ---------------------------------------------------------------
>
> Name: vcard.vcf
> Part 1.2 Type: text/x-vcard
> Encoding: 7bit
> Description: Card for pady Srinivasan
  Received on Wed Aug 13 1997 - 00:00:00 CDT

Original text of this message

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