数据库
首页 > 数据库> > 16.查看ORACLE的SAG和PGA的使用率

16.查看ORACLE的SAG和PGA的使用率

作者:互联网

查看oracle的SGA和PGA的使用率:

select name,total,round(total-free,2) used, round(free,2) free,round((total-free)/total*100,2) pctused from
(select 'SGA' name,(select sum(value/1024/1024) from v$sga) total,
(select sum(bytes/1024/1024) from v$sgastat where name='free memory')free from dual)
union
select name,total,round(used,2)used,round(total-used,2)free,round(used/total*100,2)pctused from (
select 'PGA' name,(select value/1024/1024 total from v$pgastat where name='aggregate PGA target parameter')total,
(select value/1024/1024 used from v$pgastat where name='total PGA allocated')used from dual);

截图:

 

标签:1024,used,name,16,PGA,SAG,free,total,select
来源: https://www.cnblogs.com/zmc60/p/15611861.html