- 最后登录
- 2017-8-31
- 在线时间
- 22 小时
- 威望
- 0
- 金钱
- 138
- 注册时间
- 2014-2-8
- 阅读权限
- 10
- 帖子
- 34
- 精华
- 0
- 积分
- 0
- UID
- 1661
|
4#
发表于 2014-6-21 13:24:36
Maclean Liu(刘相兵 发表于 2014-6-18 15:15
1、是否为RAC?
2、给出v$sort_usage的内容
3、给出
1、是RAC环境
2、select * from v$sort_usage
没有数据。
3、
SELECT d.tablespace_name "Name",
TO_CHAR(NVL(a.bytes / 1024 / 1024, 0),'99,999,990.900') "Size (M)",
TO_CHAR(NVL(t.hwm, 0)/1024/1024,'99999999.999') "HWM (M)",
TO_CHAR(NVL(t.hwm / a.bytes * 100, 0), '990.00') "HWM % " ,
TO_CHAR(NVL(t.bytes/1024/1024, 0),'99999999.999') "Using (M)",
TO_CHAR(NVL(t.bytes / a.bytes * 100, 0), '990.00') "Using %"
FROM sys.dba_tablespaces d,
(select tablespace_name, sum(bytes) bytes from dba_temp_files group by tablespace_name) a,
(select tablespace_name, sum(bytes_cached) hwm, sum(bytes_used) bytes from v$temp_extent_pool group by tablespace_name) t
WHERE d.tablespace_name = a.tablespace_name(+)
AND d.tablespace_name = t.tablespace_name(+)
AND d.extent_management like 'LOCAL'
AND d.contents like 'TEMPORARY'
/
结果如下:
Name Size (M) HWM (M) HWM % Using (M) Using %
---------- -------------------- --------------- -------------- --------------- --------------
TEMP 40,954.984 2365.000 5.77 .000 0.00
4、
select TABLESPACE_NAME, BYTES_USED/1024/1024 used_MB,BYTES_FREE/1024/1024 free_MB
from V$TEMP_SPACE_HEADER;
结果如下:
TABLESPACE USED_MB FREE_MB
---------- ---------- ----------
TEMP 6919.99219 1272
TEMP 8190 0
TEMP 8190 0
TEMP 8191 0
TEMP 8191.99219 0
|
|