SELECT a.tablespace_name "表空间名",
total "表空间大小",
free "表空间剩余大小",
(total - free) "表占用空间大小",
ROUND((total - free) / total * 100, 2) || '%' "已使用空间百分比"
FROM (SELECT tablespace_name, SUM(bytes) / 1024 / 1024 total
FROM dba_data_files
GROUP BY tablespace_name) a,
(SELECT tablespace_name, SUM(bytes) / 1024 / 1024 free
FROM dba_free_space
GROUP BY tablespace_name) b
WHERE a.tablespace_name = b.tablespace_name
ORDER BY (total - free) DESC;
oracle查看表空间的方法
原创mb65094bd81c185 ©著作权
©著作权归作者所有:来自51CTO博客作者mb65094bd81c185的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:将tomcat注册成服务
下一篇:前端微服务框架选型
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
ora temp表空间查看 oracle 查看表空间类型
SYSAUX,USERS,UNDOTBS1,EXAMPLE,TEMP还有用户自己建立的表空间,可以对其进行分成三类 永久表空间 存放永久性数据,如表,索引等。 临时表空间  
ora temp表空间查看 表空间 数据文件 oracle