Table size in Oracle 9i [message #208608] |
Mon, 11 December 2006 09:19 |
orasaket
Messages: 70 Registered: November 2006
|
Member |
|
|
Hi,
I am using Oracle 9i R2 on Linux
Want to know the table size (actual data size in table)
I am running the following script.
select ((blocks*8192)-(blocks*avg_space))/1024/1024 "MB size", empty_blocks,
avg_space, num_freelist_blocks
from user_tables
where table_name = 'COM_ACCOUNTS_REC';
however i am not sure if i am firing the proper query.
Please advice me on this.
Thanks and Regards,
OraSaket
|
|
|
|
Re: Table size in Oracle 9i [message #208623 is a reply to message #208618] |
Mon, 11 December 2006 09:57 |
dba_blr
Messages: 43 Registered: December 2006
|
Member |
|
|
The queries mentioned earlier will give you the actual space occupied by the table not the actual data.
Hope the following query will give you the actual space occupied by the data.
select table_name,(num_rows*avg_row_len)/(1024*1024) MB from user_tables where table_name='T1';
|
|
|
|
|