ITPub博客

首页 > Linux操作系统 > Linux操作系统 > How To Determine Who Is Using Undo Tablespace And How Much?

How To Determine Who Is Using Undo Tablespace And How Much?

原创 Linux操作系统 作者:season0891 时间:2011-09-07 15:50:43 0 删除 编辑
Platforms: 1-914CU;
This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.

Applies to:

Oracle Server - Enterprise Edition - Version: 9.2.0.5 to 10.2.0.5 - Release: 9.2 to 10.2
Information in this document applies to any platform.
***Checked for relevance on 25-Jul-2010***

Goal

How do you determine which users are using and how much UNDO is being used?


Solution

select a.sid, a.serial#, a.username, b.used_urec, b.used_ublk
from v$session a, v$transaction b
where a.saddr=b.ses_addr;

EXAMPLE:

SQL> select a.sid, a.serial#, a.username, b.used_urec, b.used_ublk
2 from v$session a, v$transaction b
3 where a.saddr=b.ses_addr;

SID SERIAL# USERNAME USED_UREC USED_UBLK
---------- ---------- ------------------------------ ---------- ----------
21 7856 KBCOOK 1 1



USED_UBLK = Number of undo blocks used 
USED_UREC = Number of undo records used


显示相关信息 相关的


产品
  • Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition

返回页首返回页首


Ref url:http://space.itpub.net/38267/viewspace-706796


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/90618/viewspace-706827/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-06-10

  • 博文量
    790
  • 访问量
    1968267