denrepo

Init parameterMemory

PGA_AGGREGATE_LIMIT

Changes immediately

What it controls

Hard limit on total PGA (12c and later). Above it, Oracle ends the calls or sessions using the most PGA with ORA-04036.

Know this before you change it

Defaults to the largest of 2 GB, twice PGA_AGGREGATE_TARGET, and 3 MB per process. 0 removes the limit, which risks the server swapping.

Check and change it

pga_aggregate_limit.sql
1-- Current value on every instance2SELECT inst_id, name, value, isdefault, ismodified3FROM gv$parameter4WHERE name = 'pga_aggregate_limit';5 6-- Value stored in the spfile7SELECT sid, value FROM v$spparameter WHERE name = 'pga_aggregate_limit' AND isspecified = 'TRUE';8 9-- Dynamic: takes effect now and is kept after a restart10ALTER SYSTEM SET pga_aggregate_limit = 8G SCOPE = BOTH SID = '*';11 12-- Remove it from the spfile to go back to the default at the next restart13ALTER SYSTEM RESET pga_aggregate_limit SCOPE = SPFILE SID = '*';

Related scripts

Open in the parameter referenceOracle's reference

More in Memory