Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3492299
  • 博文数量: 738
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 7745
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-07 08:51
个人简介

偶尔有空上来看看

文章分类

全部博文(738)

文章存档

2023年(75)

2022年(134)

2021年(238)

2020年(115)

2019年(11)

2018年(9)

2017年(9)

2016年(17)

2015年(7)

2014年(4)

2013年(1)

2012年(11)

2011年(27)

2010年(35)

2009年(11)

2008年(11)

最近访客

分类: Oracle

2020-02-21 22:33:35

留着给ORA-04036: PGA memory used by the instance exceeds PGA_AGGREGATE_LIMIT 这个用。

set lines 200;
set pages 200;
column name format a25;
column pname format a12;
col spid for a15
column "UsedMB" format a10;
set numwidth 6;

select s.sid, s.serial#,p.pid, p.spid,p.pname, sn.name, round(ss.value/(1024 *1024))||'Mb' "UsedMB"
from v$sesstat ss, v$statname sn, v$session s, v$process p
where s.paddr = p.addr
and sn.statistic# = ss.statistic#
and s.sid = ss.sid
and sn.name in ('session pga memory' , 'session pga memory max')
and p.pname like 'DIA%'
order by ss.value desc;

效果如下:


   SID SERIAL#    PID SPID                     PNAME        NAME                      UsedMB
------ ------- ------ ------------------------ ------------ ------------------------- ----------
   406   40961     17 46617                    DIA0         session pga memory        4Mb
   406   40961     17 46617                    DIA0         session pga memory max    4Mb
   399   29754      8 3095                     DIAG         session pga memory        1Mb
   399   29754      8 3095                     DIAG         session pga memory max    1Mb
阅读(1855) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~