当前位置:Gxlcms > 数据库问题 > Oracle查看占用表空间最大的表(排序)

Oracle查看占用表空间最大的表(排序)

时间:2021-07-01 10:21:17 帮助过:7人阅读

select t.owner,t.segment_name,t.tablespace_name,bytes/1024/1024/1024 as sizes,q.num_rows,t.segment_type 2 from dba_segments t 3 left join dba_tables q 4 on t.segment_name=q.table_name 5 and t.owner=q.owner 6 where t.segment_type=TABLE 7 and t.tablespace_name=TS_AAA --需要查看的表空间 8 order by 4 desc

 

Oracle查看占用表空间最大的表(排序)

标签:sele   tab   rom   nbsp   代码   数据   weight   font   aaa   

人气教程排行