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

select t.owner,t.segment_name,t.tablespace_name,bytes/1024/1024/1024 as sizes,q.num_rows,t.segment_type
  from dba_segments t
  left join dba_tables q
    on t.segment_name=q.table_name
   and t.owner=q.owner
 where t.segment_type='TABLE'
   and t.tablespace_name='TS_SPACE'  --需要查看的表空间
 order by 4 desc
————————————————
版权声明:本文为CSDN博主「繁華小東」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/huang_yun_dong/article/details/124293366
posted @ 2023-08-29 13:20  白板号  阅读(1267)  评论(0)    收藏  举报