Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: How do I find out the size of a index

RE: How do I find out the size of a index

From: <Alexander.Feinstein_at_mitchell1.com>
Date: Wed, 13 Aug 2003 18:19:23 -0800
Message-ID: <F001.005CA8B4.20030813181923@fatcity.com>


You can also do:

analyze index <INDEX_NAME> validate structure; select blocks, lf_blks, br_blks, btree_space, used_space from index_stats;

Alex.

-----Original Message-----
Sent: Wednesday, August 13, 2003 10:39 AM To: Multiple recipients of list ORACLE-L

Roger - What do you mean by size? The allocation on disk, or the actual number of blocks the index is using? Years ago when I was trying to get the actual number of blocks an index was using (to predict when an index was going to outgrow its extent), I used the LEAF_BLOCKS of the USER_INDEXES table (after analyze, as Tanel points out. Theoretically this is slightly under the total, but it was the closest I was able to find.

Dennis Williams
DBA, 80%OCP, 100% DBA
Lifetouch, Inc.
dwilliams_at_lifetouch.com

-----Original Message-----
Sent: Wednesday, August 13, 2003 11:54 AM To: Multiple recipients of list ORACLE-L

Hi,

I can use "select blocks*8 from dba_tables where table_name='ABC'" to find out the size of a table. How do I find out the size of a index? I do not see a column BLOCK in dba_indexes.

Thanks,

Roger Xu
Database Administrator
Dr Pepper Bottling Company of Texas
(972)721-8337

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Roger Xu
  INET: roger_xu_at_dp7uptx.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: DENNIS WILLIAMS
  INET: DWILLIAMS_at_LIFETOUCH.COM
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author:
  INET: Alexander.Feinstein_at_mitchell1.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Aug 13 2003 - 21:19:23 CDT

Original text of this message

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