Oracle 查询表空间的存储大小和已使用率
来源:互联网 发布:京东淘宝衣柜 编辑:程序博客网 时间:2024/05/21 14:53
select tablespace_name, max_gb, used_gb, round(100 * used_gb / max_gb) pct_used from (select a.tablespace_name tablespace_name, round((a.bytes_alloc - nvl(b.bytes_free, 0)) / power(2, 30), 2) used_gb, round(a.maxbytes / power(2, 30), 2) max_gb from (select f.tablespace_name, sum(f.bytes) bytes_alloc, sum(decode(f.autoextensible, 'YES', f.maxbytes, 'NO', f.bytes)) maxbytes from dba_data_files f group by tablespace_name) a, (select f.tablespace_name, sum(f.bytes) bytes_free from dba_free_space f group by tablespace_name) b where a.tablespace_name = b.tablespace_name(+) union all select h.tablespace_name tablespace_name, round(sum(nvl(p.bytes_used, 0)) / power(2, 30), 2) used_gb, round(sum(decode(f.autoextensible, 'YES', f.maxbytes, 'NO', f.bytes)) / power(2, 30), 2) max_gb from v$temp_space_header h, v$temp_extent_pool p, dba_temp_files f where p.file_id(+) = h.file_id and p.tablespace_name(+) = h.tablespace_name and f.file_id = h.file_id and f.tablespace_name = h.tablespace_name group by h.tablespace_name)order by 4;
阅读全文
0 0
- Oracle 查询表空间的存储大小和已使用率
- 查询ORACLE表空间大小及使用率
- Oracle查询表空间使用大小,使用率,剩余大小,百分比
- oracle 表空间使用率查询
- 查询Oracle表空间使用率
- oracle表空间使用率查询
- oracle表空间使用率查询
- oracle 表空间使用率查询
- Oracle表空间使用率查询
- 查询oracle数据库表空间的大小,已使用空间,剩余空间
- 查询oracle数据库表空间的大小,已使用空间,剩余空间
- Oracle查看表空间大小和 使用率 (DBA 给的)
- Oracle查看表空间大小及使用率
- 查询表空间的使用率
- 临时表空间的主要事项】【查询临时表空间使用率,大小】【重建temp表空间】
- 表空间使用率大小
- oracle表空间使用率统计查询
- oracle表空间使用率统计查询
- Android Studio 编译速度优化,aar引用优化
- 【Linux】使用ftp传输文件
- 微信支付V3的WXUtil文件
- 设计模式 1-23 单例模式
- java中的多线程
- Oracle 查询表空间的存储大小和已使用率
- js 方法前面加!的含义
- 算法题/和为s的两个数字
- LeetCode-----回文串的最小分割
- 数学建模专栏 | 开篇:如何备战数学建模竞赛之 MATLAB 编程
- iOS 中间按钮突出的tabbar
- win10+anaconda3+tensorflow+gpu
- 图的遍历 -深度优先—C
- .net中的认证(authentication)与授权(authorization)