Oracle 12C中pga_aggregate_limit参数的修改
Posted dayu.liu
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle 12C中pga_aggregate_limit参数的修改相关的知识,希望对你有一定的参考价值。
应用某个批量无法正常进行,通过报错排查是由于在12c中参数pga_aggregate_limit参数的限制导致,此参数限制为硬性限制。此参数的修改非常简单,修改之后立即生效,需要注意的是此处CDB、PDB的pga_aggregate_limit参数都做了限制,调整的时候都做了调整。
[dayu1:oracle]:/oracle/app/oracle/diag/rdbms/cluacdb/CLUACDB1/trace>sqlplus / as sysdba
SQL*Plus: Release 12.2.0.1.0 Production on Sun Oct 21 01:09:40 2018
Copyright (c) 1982, 2017, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
[email protected]> show parameter pga
NAME TYPE VALUE
------------------------------------ ---------------------- ------------------------------
pga_aggregate_limit big integer 9288M
pga_aggregate_target big integer 2G
[email protected]> show parameter container
NAME TYPE VALUE
------------------------------------ ---------------------- ------------------------------
containers_parallel_degree integer 65535
[email protected]> show pdbs;
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 BMMSPDB READ WRITE NO
[email protected]> alter session set container=BMMSPDB;
Session altered.
[email protected]> show parameter pga;
NAME TYPE VALUE
------------------------------------ ---------------------- ------------------------------
pga_aggregate_limit big integer 2G
pga_aggregate_target big integer 1G
[email protected]> select ISSYS_MODIFIABLE from v$parameter where name=‘pga_aggregate_limit‘;
ISSYS_MODIFIABLE
------------------
IMMEDIATE
[email protected]> select ISSYS_MODIFIABLE from v$parameter where name=‘pga_aggregate_target‘;
ISSYS_MODIFIABLE
------------------
IMMEDIATE
alter session set container=BMMSPDB;
alter system set pga_aggregate_limit=0 scope=both;
alter system set pga_aggregate_limit=5000M scope=both;
以上是关于Oracle 12C中pga_aggregate_limit参数的修改的主要内容,如果未能解决你的问题,请参考以下文章