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的使用率

 

上一篇:PHP的502报错


下一篇:《MySQL是怎样运行的》【第9章 InnoDB的表空间】笔记