C/C++教程

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);

截图:

 

这篇关于16.查看ORACLE的SAG和PGA的使用率的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!