--How To Determine PGA , Olap Page Pool Hit / Miss Ratio and Size by User(Doc ID 353211.1)
select gvs.username, gvs.sid,
round(pga_used_mem/1024/1024,2)||' MB' pga_used,
round(pga_max_mem/1024/1024,2)||' MB' pga_max,
round(pool_size/1024/1024,2)||' MB' olap_pp,
round(100*(pool_hits-pool_misses)/pool_hits,2)||'%' olap_ratio
from gv$process gvp, gv$session gvs, gv$aw_calc gva
where session_id=gvs.sid and addr = paddr;
--Sizing the PGA in Oracle 19c - How to Account for the MGA Size (Doc ID 2808761.1)
show parameter pga
set lines 200 pages 50000;
col resource_name for a40;
select * from gv$resource_limit where resource_name='processes';
set lines 200 pages 50000;
col resource_name for a40;
select max(max_utilization) from gv$resource_limit where resource_name='processes';
col max_pga for 99999999.9
select value/1024/1024 max_pga from v$pgastat where name='maximum PGA allocated' minus
select value/1024/1024 max_pga from v$pgastat where name='MGA allocated (under PGA)';
select ((select value/1024/1024 max_pga from v$pgastat where name='maximum PGA allocated' minus select value/1024/1024 max_pga from v$pgastat where name='MGA allocated (under PGA)') + ((select max(max_utilization) from gv$resource_limit where resource_name='processes') * 5)) * 1.1 PGA_MB from dual;
最新评论
这个牛
放下欲望,男人从来不醉,充分且必要
勇气、责任、自信、创新,为天下先!
软件即数据,软件即服务,软件即管理,软件就是对人类各种社会活动的仿真和记录。软件很重要,但软件不可能凌驾于业务之上,尤其不可能高人一等。