sga_max_size
Largest the SGA can grow to without a restart.
- デフォルト
Initial SGA size- Range
- Platform-dependent
- Restart needed
- はい
- Default checked on
- Oracle AI Database 26ai / 23ai
何ができるか
Oracle reserves address space for this much at startup; sga_target can then move freely below it.
デフォルト値
Initial SGA size. Derived from the SGA components at startup when not set (Oracle 23ai/26ai). 1.5GB on Oracle Free.
Check the current value
SHOW PARAMETER sga_max_size SELECT name, value, isdefault, issys_modifiable, isses_modifiable, ispdb_modifiable FROM v$parameter WHERE name = 'sga_max_size';
Change it
ALTER SYSTEM SET sga_max_size = 16G SCOPE=SPFILE; -- then SHUTDOWN IMMEDIATE and STARTUP
Restart required: the parameter is static (ISSYS_MODIFIABLE = FALSE), so only SCOPE=SPFILE is accepted and the value applies at the next startup. It is instance-wide: set it from CDB$ROOT, because a PDB gets ORA-65040.
When to change it
Set it above sga_target if you want room to grow the SGA online later.
What can go wrong
On some platforms the memory is committed at startup, so an oversized value wastes RAM.
Questions about sga_max_size
What is the default value of sga_max_size in Oracle?
Initial SGA size. Derived from the SGA components at startup when not set (Oracle 23ai/26ai). 1.5GB on Oracle Free.
Does changing sga_max_size require a restart?
Yes. Restart required: the parameter is static (ISSYS_MODIFIABLE = FALSE), so only SCOPE=SPFILE is accepted and the value applies at the next startup. It is instance-wide: set it from CDB$ROOT, because a PDB gets ORA-65040.
When should I change sga_max_size?
Set it above sga_target if you want room to grow the SGA online later.
Back to all Oracle settings, or check the Oracle manual for every option.
Check sga_max_size 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.