问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
墨值悬赏
匿名用户Oracle临时表空间如何查看实时的占用情况?
示例如下:
select a.tablespace_name,
to_char(a.bytes / 1024 / 1024, '99,999.999') total_bytes,
to_char(b.bytes_used / 1024 / 1024, '99,999.999') use_bytes,
to_char(b.bytes_used * 100 / a.bytes, '99.99') || '%' use
from (select tablespace_name, sum(bytes) bytes
from dba_temp_files
group by tablespace_name) a,
(select tablespace_name, sum(bytes_cached) bytes_used
from v$temp_extent_pool
group by tablespace_name) b
where a.tablespace_name = b.tablespace_name;
评论
有用 1
墨值悬赏