ITPub博客

首页 > 数据库 > 数据库开发技术 > 查询表的大小

查询表的大小

原创 数据库开发技术 作者:renjixinchina 时间:2010-07-24 12:13:55 0 删除 编辑
Select k.segname 对象名,
k.userm 使用表空间,
k.tablespace_name 表空间,
k.segment_type 段类型/*,
'0' || substr(to_char(k.userm / (Select Sum(bytes) / 1024 / 1024 userm
From User_Extents)),
1,
5) 表空间使用率*/
from (Select Segment_Name segname, Sum(bytes) / 1024 / 1024 userm,t.tablespace_name,t.segment_type
From dba_Extents t where t.owner in ('AA') /*and t.segment_type='TABLE'*/
Group By Segment_Name,tablespace_name,segment_type) k

Order By 使用表空间 desc[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/15747463/viewspace-1035522/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-01-30

  • 博文量
    373
  • 访问量
    2161061