RACLE查询每个表占用空间大小

1、查看每个owner所占空间大小

select distinct owner, sum(bytes) from dba_segments group by owner;


 2、使用sql生成的sql查看每某个owner下的没涨表所占空间的大小

SELECT 'select sum(bytes) FROM dba_segments WHERE owner =' || '''TESTBAR''' ||

       ' AND segment_type =' || '''TABLE''' || ' AND segment_name = ''' ||

       table_name || ''' ;'

  from user_tables;

你可能感兴趣的:(RAC)