下面这个单进程限制pga大小没有变,默认值还是200M
-
08:36:11 SQL> r
-
1 SELECT x.ksppinm NAME, y.ksppstvl VALUE, x.ksppdesc describ
-
2 FROM SYS.x$ksppi x, SYS.x$ksppcv y
-
3 WHERE x.inst_id = USERENV ('Instance')
-
4 AND y.inst_id = USERENV ('Instance')
-
5 AND x.indx = y.indx
-
6* AND x.ksppinm LIKE '_pga_max_size'
-
-
NAME VALUE DESCRIB
-
---------------------------------------- ------------------------------ ------------------------------------------------------------------------
-
_pga_max_size 209715200 Maximum size of the PGA memory for one process
在12c中
-
SQL> show parameter pga
-
-
NAME TYPE VALUE
-
------------------------------------ ----------- ------------------------------
-
pga_aggregate_limit big integer 2G
-
pga_aggregate_target big integer 0
pga_aggregate_limit是什么东东呢?
-
SELECT x.ksppinm NAME, y.ksppstvl VALUE, x.ksppdesc describ
-
FROM SYS.x$ksppi x, SYS.x$ksppcv y
-
WHERE x.inst_id = USERENV ('Instance')
-
AND y.inst_id = USERENV ('Instance')
-
AND x.indx = y.indx
-
AND x.ksppinm LIKE 'pga_aggregate_limit'
-
SQL> r
-
1 SELECT x.ksppinm NAME, y.ksppstvl VALUE, x.ksppdesc describ
-
2 FROM SYS.x$ksppi x, SYS.x$ksppcv y
-
3 WHERE x.inst_id = USERENV ('Instance')
-
4 AND y.inst_id = USERENV ('Instance')
-
5 AND x.indx = y.indx
-
6* AND x.ksppinm LIKE 'pga_aggregate_limit'
-
-
NAME VALUE DESCRIB
-
---------------------------------------- -------------------- --------------------------------------------------------------------------------
-
pga_aggregate_limit 2147483648 limit of aggregate PGA memory consumed by the instance
这个参数是数据库实例可以用的总共大小的pga大小的硬限制,那如果业中hash join 、排序比较多的时候不改变这个参数是不是 就会限制数据库的性能呢?
我们先看其能不能更改~(可以更改的最大100000G.......)
-
SQL> alter system set pga_aggregate_limit=1g
-
2 ;
-
alter system set pga_aggregate_limit=1g
-
*
-
ERROR at line 1:
-
ORA-02097: parameter cannot be modified because specified value is invalid
-
ORA-00093: pga_aggregate_limit must be between 1330M and 100000G
-
-
-
SQL>
-
SQL> alter system set pga_aggregate_limit=3G;
-
-
System altered.
-
-
SQL>
-
SQL>
-
SQL> show parameter pga
-
-
NAME TYPE VALUE
-
------------------------------------ ----------- ------------------------------
-
pga_aggregate_limit big integer 3G
-
pga_aggregate_target big integer 0
这个参数是可以更改的
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29990276/viewspace-1739375/
,如需转载,请注明出处,否则将追究法律责任。