Oracle 查看表占用的空间大小

select TABLE_NAME , num_rows * avg_row_len /1024/1024 AS KJ
from ALL_tables WHERE TABLE_NAME IN (select TABLE_NAME from all_tables where owner='PRODDTA')
ORDER BY KJ DESC

posted @ 2015-09-18 10:57  刘礼  Views(342)  Comments(0)    收藏  举报