計算一個表佔用的空間的大小

bluelight發表於2006-12-19
select owner,table_name,
NUM_ROWS,
BLOCKS*AAA/1024/1024 "Size M",
EMPTY_BLOCKS,
LAST_ANALYZED
from dba_tables
where table_name='XXX';

Here: AAA is the value of db_block_size ;
XXX is the table name you want to check


[@more@]select owner,table_name,
NUM_ROWS,
BLOCKS*AAA/1024/1024 "Size M",
EMPTY_BLOCKS,
LAST_ANALYZED
from dba_tables
where table_name='XXX';

Here: AAA is the value of db_block_size ;
XXX is the table name you want to check


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/1724534/viewspace-884773/,如需轉載,請註明出處,否則將追究法律責任。

相關文章