不管接下来发生什么事,你都不能停止前进

Oracle查看所有用户占用的表空间

SELECT OWNER as "用户名", sum(BYTES) / 1024 / 1024 / 1024 as "所有表的大小(GB)"
  FROM DBA_SEGMENTS
 WHERE SEGMENT_NAME in (select t2.OBJECT_NAME
                          from dba_objects t2
                         where t2.OBJECT_TYPE = 'TABLE')
 group by OWNER order by 2 desc

posted @ 2019-06-18 20:51  普罗旺斯_S  阅读(5399)  评论(0编辑  收藏  举报