Re: object size?

From: Rupesh Kapoor <rupesh_at_whowhere.com>
Date: 1997/02/07
Message-ID: <32FB6C7B.77F2_at_whowhere.com>#1/1


ptsao_at_sequeltech.com wrote:
>
> Hi, All,
>
> How can I figure out the size of an object? for example,a table's size.
>

If the tables are small, do something like

ANALYSE TABLE table_name COMPUTE STATISTICS

... for each table. After that, Use something like this:

SET linesize 1000;
SELECT

                SUBSTR(table_name,1,15) "TABLE",
                SUBSTR(PCT_FREE,1,5) "%FREE",
                SUBSTR(PCT_USED,1,5) "%USED",
                SUBSTR(INI_TRANS,1,6) "ITRANS",
                INITIAL_EXTENT,
                NEXT_EXTENT,
                SUBSTR(MIN_EXTENTS,1,6) "MINEXT",
                SUBSTR(PCT_INCREASE,1,4) "%INC",
                NUM_ROWS,
                BLOCKS,
                AVG_SPACE,
                SUBSTR(CHAIN_CNT,1,6) "CHNCNT",
                AVG_ROW_LEN
        FROM dba_tables WHERE owner = 'scott';


Rupesh Received on Fri Feb 07 1997 - 00:00:00 CET

Original text of this message