2008 年 05 月 11 日, 星期日

查看客户端对PGA使用的高水位值(PGA_MAX_MEM超过10M一般都有优化空间)

select s.username, s.machine, trunc(p.pga_used_mem/(1024*1024)) used_memory,
trunc(pga_alloc_mem/(1024*1024)) allocated_memory,
trunc(pga_max_mem/(1024*1024)) max_memory
from v$process p, v$session s
where p.addr = s.paddr
order by pga_max_mem desc;
heroqsx 发表于:2008.05.11 17:49 ::分类: ( 常用Oracle脚本 ) ::阅读:(88次) :: Permanent link :: 引用 (0)