pga_aggregate_limit
Hard limit on total PGA; past it, sessions using the most untunable memory are terminated.
- Default
Max(2GB, 2 x target, 3MB x processes)- Range
- 0, or at least the default formula's minimum
- Restart needed
- No
- Default checked on
- Oracle AI Database 26ai / 23ai
What it does
Added in Oracle 12c. When the limit is exceeded, Oracle aborts the calls (or terminates the sessions) of the largest untunable PGA consumers with ORA-04036. 0 removes the limit.
Default value
Max(2GB, 2 x target, 3MB x processes). The greater of 2GB, 200% of pga_aggregate_target, and 3MB x processes, capped at 120% of physical memory minus the SGA (Oracle 23ai/26ai). 2GB on Oracle Free.
Check the current value
SHOW PARAMETER pga_aggregate_limit SELECT name, value, isdefault, issys_modifiable, isses_modifiable, ispdb_modifiable FROM v$parameter WHERE name = 'pga_aggregate_limit';
Change it
ALTER SYSTEM SET pga_aggregate_limit = 8G SCOPE=BOTH;
No restart: ALTER SYSTEM with SCOPE=BOTH applies immediately and is saved in the SPFILE. It can be set inside a PDB (ISPDB_MODIFIABLE = TRUE).
When to change it
Raise it when legitimate batch jobs fail with ORA-04036; lower it only to protect a shared host.
What can go wrong
0 lets a runaway PL/SQL collection use all memory and swap the server.
Questions about pga_aggregate_limit
What is the default value of pga_aggregate_limit in Oracle?
Max(2GB, 2 x target, 3MB x processes). The greater of 2GB, 200% of pga_aggregate_target, and 3MB x processes, capped at 120% of physical memory minus the SGA (Oracle 23ai/26ai). 2GB on Oracle Free.
Does changing pga_aggregate_limit require a restart?
No. No restart: ALTER SYSTEM with SCOPE=BOTH applies immediately and is saved in the SPFILE. It can be set inside a PDB (ISPDB_MODIFIABLE = TRUE).
When should I change pga_aggregate_limit?
Raise it when legitimate batch jobs fail with ORA-04036; lower it only to protect a shared host.
Back to all Oracle settings, or check the Oracle manual for every option.
Check pga_aggregate_limit on your own server
SQLly runs the query above against Oracle and the other engines in this reference, from one desktop app on macOS, Windows and Linux.