jianming-chan

查看oracle数据库的表大小

有两种含义的表大小。一种是分配给一个表的物理空间数量,而不管空间是否被使用。可以这样查询获得字节数:

select segment_name, bytes 
from user_segments 
where segment_type = \'TABLE\'; 
或者

最好用:

Select Segment_Name, Sum(bytes) / 1024 / 1024
From User_Extents u where u.segment_type=\'TABLE\'
Group By Segment_Name

发表于 2013-09-10 10:22  jianming_chan  阅读(3503)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2021-06-20
  • 2021-12-23
  • 2022-01-31
  • 2021-11-29
  • 2021-12-23
  • 2021-08-24
  • 2021-11-26
猜你喜欢
  • 2021-12-09
  • 2021-12-23
  • 2021-07-09
  • 2022-02-08
  • 2021-12-23
  • 2021-08-24
  • 2021-08-14
相关资源
相似解决方案