欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

查看表空间下用户表的大小(GB)

程序员文章站 2022-07-05 08:36:03
...
所占空间由大到小的前三十的数据表:

select * from (
select segment_name,bytes/1024/1024/1024 as GB from dba_segments where owner = USER order by bytes desc 
               ) 
where rownum <= 30


查询表名为table_name的数据表大小

select round(BYTES/1024/1024/1024,2)||'GB' from user_segments where segment_name=table_name