select * from ( Select a.tablespace_name, to_char(a.bytes/1024/1024,'99,999.999') total_bytes, to_char(b.bytes/1024/1024,'99,999.999') free_bytes, to_char(a.bytes/1024/1024 - b.bytes/1024/1024,'99,999.999') use_bytes, to_char((1 - b.bytes/a.bytes)*100,'99.99') || '%' use from (select tablespace_name, sum(bytes) bytes from dba_data_files group by tablespace_name) a, (select tablespace_name, sum(bytes) bytes from dba_free_space group by tablespace_name) b where a.tablespace_name = b.tablespace_name union all select c.tablespace_name, to_char(c.bytes/1024/1024,'99,999.999') total_bytes, to_char( (c.bytes-d.bytes_used)/1024/1024,'99,999.999') free_bytes, to_char(d.bytes_used/1024/1024,'99,999.999') use_bytes, to_char(d.bytes_used*100/c.bytes,'99.99') || '%' use from (select tablespace_name,sum(bytes) bytes from dba_temp_files group by tablespace_name) c, (select tablespace_name,sum(bytes_cached) bytes_used from v$temp_extent_pool group by tablespace_name) d where c.tablespace_name = d.tablespace_name )
oracle 表空间使用情况
来源:这里教程网
时间:2026-03-03 12:44:08
作者:
编辑推荐:
下一篇:
相关推荐
-
雷神推出 MIX PRO II 迷你主机:基于 Ultra 200H,玻璃上盖 + ARGB 灯效
2 月 9 日消息,雷神 (THUNDEROBOT) 现已宣布推出基于英
-
制造商 Musnap 推出彩色墨水屏电纸书 Ocean C:支持手写笔、第三方安卓应用
2 月 10 日消息,制造商 Musnap 现已在海外推出一款 Oce
热文推荐
- CBO如何选择相同cost的索引
CBO如何选择相同cost的索引
26-03-03 - 自适应log file sync影响案例
自适应log file sync影响案例
26-03-03 - 采购订单审批流报错:附件太大,无法使用
采购订单审批流报错:附件太大,无法使用
26-03-03 - Oracle违反约束数据的workaround
Oracle违反约束数据的workaround
26-03-03 - 销售订单-复制-行弹性域是否复制
销售订单-复制-行弹性域是否复制
26-03-03 - word中格式刷使用方法有哪些
word中格式刷使用方法有哪些
26-03-03 - Oracle CBO选错执行计划的一种场景
Oracle CBO选错执行计划的一种场景
26-03-03 - ORACLE RAC 11.2.0.4 for RHEL6.8无法启动之ORA000205&ORA17503&ORA01174
- 怎样在自定义工具栏添加Word多页显示按钮
怎样在自定义工具栏添加Word多页显示按钮
26-03-03 - 如何给Word2003文档中添个行号
如何给Word2003文档中添个行号
26-03-03
