Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Table size in bytes
Hi Cemail
Below is example in blocks I ma leaving to you an opportunity to convert it to bytes
set pages 999 verify off
define t_name=&1
column tsname heading 'Tablespace' format A10 wrapped
column towner heading 'Owner' format A12 wrapped
column tname heading 'Table' format A15 wrapped
column row_cnt heading 'Count' format 99999
column ext heading 'Ext' format 999 column Blk heading 'Alloc(K).' format 9999 column Ovr heading 'Ovrhd(K).' format 9999column b_Blk heading 'Used(K)' format 9999 column a_Blk heading 'Free(K)' format 9999 column hwm_kbt heading 'HWB(K)' format 9999 analyze table &&1 compute statistics;
, tb.table_name tname , tb.num_rows row_cnt , sg.extents ext , sg.blocks Blk , tb.blocks b_Blk , tb.empty_blocks a_Blk , ( sg.blocks - tb.blocks - tb.empty_blocks ) Ovr , (sg.blocks - tb.empty_blocks - 1) hwm_BlkFROM sys.dba_tables tb, sys.dba_segments sg WHERE tb.table_name = sg.segment_name
With regards
Alex Afanassiev
Oracle DBA, TOC OPS/Internet.Operations
Tel: (03) 8 661 20 61 Fax: (03) 9 650 36 74>
> -----Original Message-----
> From: cemail_at_sprintmail.com [SMTP:cemail_at_sprintmail.com]
> Sent: Tuesday, September 05, 2000 9:59 AM
> To: Multiple recipients of list ORACLE-L
> Subject: Table size in bytes
![]() |
![]() |