当前位置: 移动技术网 > IT编程>数据库>Oracle > 查询表空间利用率

查询表空间利用率

2019年08月26日  | 移动技术网IT编程  | 我要评论

松鼠和松果ppt,手工毛衣外套,大学生心理健康的标准

查询表空间利用率:

select a.tablespace_name, total, free, total-free as used, substr(free/total * 100, 1, 5) as "free%",

substr((total - free)/total * 100, 1, 5) as "used%" from
(select tablespace_name, case when t.autoextensible='yes' then sum(maxbytes)/1024/1024 else
sum(bytes)/1024/1024 end as total from dba_data_files t group by tablespace_name,autoextensible) a,
(select tablespace_name, sum(bytes)/1024/1024 as free from dba_free_space group by tablespace_name) b
where a.tablespace_name = b.tablespace_name order by a.tablespace_name

查询结果

 

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网