- 最后登录
- 2015-1-28
- 在线时间
- 43 小时
- 威望
- 164
- 金钱
- 1327
- 注册时间
- 2011-12-26
- 阅读权限
- 50
- 帖子
- 114
- 精华
- 1
- 积分
- 164
- UID
- 121
|
3#
发表于 2012-5-11 16:42:58
C:\Documents and Settings\Administrator>sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 5月 11 16:27:27 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn sys@test as sysdba;
输入口令:
已连接。
SQL> REM tablespace report
SQL>
SQL> set linesize 200
SQL>
SQL>
SQL> SELECT d.tablespace_name "Name",
2 TO_CHAR(NVL(a.bytes / 1024 / 1024, 0),'99,999,990.900') "Si
ze (M)",
3 TO_CHAR(NVL(t.hwm, 0)/1024/1024,'99999999.999') "HWM (M)",
4 TO_CHAR(NVL(t.hwm / a.bytes * 100, 0), '990.00') "HWM % " ,
5 TO_CHAR(NVL(t.bytes/1024/1024, 0),'99999999.999') "Using (M
)",
6 TO_CHAR(NVL(t.bytes / a.bytes * 100, 0), '990.00') "Using %
"
7 FROM sys.dba_tablespaces d,
8 (select tablespace_name, sum(bytes) bytes from dba_temp_fil
es group by tablespace_name) a,
9 (select tablespace_name, sum(bytes_cached) hwm, sum(bytes_u
sed) bytes from v$temp_extent_pool group by tablespace_name) t
10 WHERE d.tablespace_name = a.tablespace_name(+)
11 AND d.tablespace_name = t.tablespace_name(+)
12 AND d.extent_management like 'LOCAL'
13 AND d.contents like 'TEMPORARY'
14 /
Name Size (M) HWM (M) HWM % Using (M)
Using %
------------------------------ --------------- ------------- ------- -----------
-- -------
TEMP 65,535.000 65534.000 100.00 9.0
00 0.01
SQL>
SQL>
SQL>
SQL> select * from v$sort_usage;
USERNAME USER SESSION_ADDR S
ESSION_NUM SQLADDR SQLHASH SQL_ID TABLESPACE
CONTENTS SEGTYPE SEGFILE#
------------------------------ ------------------------------ ---------------- -
---------- ---------------- ---------- ------------- ---------------------------
---- --------- --------- ----------
SEGBLK# EXTENTS BLOCKS SEGRFNO#
---------- ---------- ---------- ----------
CRDSZHH CRDSZHH 070000030C7C79A8
3213 07000002C7F87898 4288304937 2pks0r7ztnpt9 TEMP
TEMPORARY LOB_DATA 201
4162565 1 64 1
USERRMYY USERRMYY 070000030F949158
22704 07000001FD7470D0 2568955416 2bcrc62cjy9hs TEMP
TEMPORARY LOB_DATA 201
4151941 1 64 1
USERRMYY USERRMYY 070000030C87C380
10662 07000002F4394DD8 2197720050 5n7kya61gx2zk TEMP
TEMPORARY LOB_DATA 201
4155781 1 64 1
USERNAME USER SESSION_ADDR S
ESSION_NUM SQLADDR SQLHASH SQL_ID TABLESPACE
CONTENTS SEGTYPE SEGFILE#
------------------------------ ------------------------------ ---------------- -
---------- ---------------- ---------- ------------- ---------------------------
---- --------- --------- ----------
SEGBLK# EXTENTS BLOCKS SEGRFNO#
---------- ---------- ---------- ----------
CRDSZHH CRDSZHH 070000030C98D260
17281 07000002944A84C8 4194959221 6yjp4vrx0mzvp TEMP
TEMPORARY LOB_DATA 201
4127429 1 64 1
USERRMYY USERRMYY 070000030C926218
12432 070000030EBA0398 1855145750 78vzk81r96jsq TEMP
TEMPORARY LOB_DATA 201
4110661 1 64 1
USERRMYY USERRMYY 070000030F91CEF0
19108 07000002D3A45E48 1415281835 9bmwhcpa5qz5b TEMP
TEMPORARY LOB_DATA 201
4135109 1 64 1
USERNAME USER SESSION_ADDR S
ESSION_NUM SQLADDR SQLHASH SQL_ID TABLESPACE
CONTENTS SEGTYPE SEGFILE#
------------------------------ ------------------------------ ---------------- -
---------- ---------------- ---------- ------------- ---------------------------
---- --------- --------- ----------
SEGBLK# EXTENTS BLOCKS SEGRFNO#
---------- ---------- ---------- ----------
USERRMYY USERRMYY 070000030C9423A0
21195 070000030EDA6590 2964744150 9jyk7kqsbctyq TEMP
TEMPORARY LOB_DATA 201
4108933 1 64 1
USERRMYY USERRMYY 070000030F8155E8
10681 0700000221E93320 3438996482 3ay6vm36gpv02 TEMP
TEMPORARY LOB_DATA 201
4124933 1 64 1
USERRMYY USERRMYY 070000030C888428
10981 07000001883799C8 1866821637 fd2pfs1rnaw05 TEMP
TEMPORARY LOB_DATA 201
4145861 1 64 1
已选择9行。
SQL> |
|