Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: AVG_ROW_LEN in sys.dba_tables
Try this.
select sum(bytes) INTO sbytes from dba_segments where segment_name = 'TABLE_NAME'
select count(*) into recount from TABLE_NAME;
avg_rowsize = sbytes / recount;
normally it matches with AVG_ROW_LEN on compute statistics
Srini
-----Original Message-----
From: VIVEK_SHARMA [mailto:vivek_sharma_at_inf.com]
Sent: Wednesday, May 24, 2000 12:20 PM
To: 'ORACLE-L_at_fatcity.com'; 'oracledba_at_quickdoc.co.uk'
Subject: AVG_ROW_LEN in sys.dba_tables
Upon doing "ANALYZE TABLE <table name > COMPUTE STATISTICS" the AVG_ROW_LEN field gets populated
EXAMPLE :- select table_name,avg_row_len from sys.dba_tables where ... / OUTPUT :- TABLE_NAME AVG_ROW_LEN ------------------------- ------------ DAILY_TRAN_DETAIL_TABLE 186 What is the Unit of This Field ? Is it BYTES implying 186 BYTES ? Anybody Checked HOW Correct this Value is ?
![]() |
![]() |