查看表空间已经使用的百分比
来源:互联网 发布:js原生添加dom元素 编辑:程序博客网 时间:2024/05/17 21:38
select a.tablespace_name,a.bytes/1024/1024 "Sum MB",(a.bytes-b.bytes)/1024/1024 "used MB",b.bytes/1024/1024 "free MB",round(((a.bytes-b.bytes)/a.bytes)*100,2) "percent_used" from (select tablespace_name,sum(bytes) bytes from dba_data_files group by tablespace_name) a, (select tablespace_name,sum(bytes) bytes,max(bytes) largest from dba_free_space group by tablespace_name) b where a.tablespace_name=b.tablespace_name order by ((a.bytes-b.bytes)/a.bytes) desc select a.tablespace_name,a.bytes/1024/1024 "Sum MB",(a.bytes-b.bytes)/1024/1024 "used MB",b.bytes/1024/1024 "free MB",round(((a.bytes-b.bytes)/a.bytes)*100,2) "percent_used" from (select tablespace_name,sum(bytes) bytes from dba_data_files group by tablespace_name) a, (select tablespace_name,sum(bytes) bytes,max(bytes) largest from dba_free_space group by tablespace_name) b where a.tablespace_name=b.tablespace_name order by ((a.bytes-b.bytes)/a.bytes) desc
“Sum MB”表示表空间所有的数据文件总共在操作系统占用磁盘空间的大小
比如:test表空间有2个数据文件,datafile1为300MB,datafile2为400MB,那么test表空间的“Sum MB”就是700MB
“userd MB”表示表空间已经使用了多少
“free MB”表示表空间剩余多少
“percent_user”表示已经使用的百分比
- 查看表空间已经使用的百分比
- 查看表空间已经使用的百分比
- 查看表空间已经使用的百分比
- 看Oracle表空间大小--已经使用的百分比
- Oracle临时表空间当前使用的百分比
- oracle表空间、用户的创建、删除 与 表空间使用情况百分比
- 查询表空间剩余空间百分比的错误方法纠正
- 查看表的空间使用情况
- 查看表空间的使用情况
- 查看表空间使用情况的sql
- 查看已经存在的表空间和表的创建SQL语句
- 查看 linux的磁盘使用百分比情况
- Oracle查询表空间使用大小,使用率,剩余大小,百分比
- 表空间的查看
- 查看表空间使用情况
- 查看表空间使用情况
- 查看表空间使用情况
- 查看表空间使用情况
- ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.0.114' (111)
- 消失的系统工程师…
- 根据Gridview列事件参数得到该行对象
- x64架构下,使用apache
- response.setContentType() 详解
- 查看表空间已经使用的百分比
- linux USB HOST之EHCI和OHCI
- ADO.NET 对象介绍
- Android Service 通知Activity更新界面的方法研究|Service通过Broadcast更新UI
- HttpURLConnection的流式输出的缺陷和解决方法
- ios系统crash文件分析方法
- 2013公务员数字推理习题精解(29)
- struts从页面跳转到action的方法中不能为private
- tcpdump抓包分析TCP三次握手过程