// oracle · memory

memory_max_target

Hard ceiling on memory_target under AMM: the most SGA plus PGA memory the instance may grow to without a restart.

デフォルト
0
Range
0, or a platform-dependent minimum up to physical memory
Restart needed
はい
Default checked on
Oracle AI Database 26ai / 23ai

何ができるか

Setting it above memory_target leaves room to raise memory_target online later. With both at 0, AMM is off. On Linux the value must fit in /dev/shm or the instance fails with ORA-00845, and ORA-00837 reports a memory_target set above this ceiling.

デフォルト値

0. 0, which makes memory_target its own ceiling (Oracle 23ai/26ai).

Check the current value

SHOW PARAMETER memory_max_target

SELECT name, value, isdefault, issys_modifiable, isses_modifiable, ispdb_modifiable
FROM v$parameter
WHERE name = 'memory_max_target';

-- What the SPFILE holds, which is what applies at the next startup:
SELECT value FROM v$sppparameter WHERE name = 'memory_max_target';

Change it

ALTER SYSTEM SET memory_max_target = 6G 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

Before enabling AMM, because memory_target cannot rise above it, and to keep headroom for online growth afterwards.

What can go wrong

It reserves nothing on its own, but a ceiling below what you actually plan to use kills the headroom, and AMM still cannot use HugePages.

Questions about memory_max_target

What is the default value of memory_max_target in Oracle?

0. 0, which makes memory_target its own ceiling (Oracle 23ai/26ai).

Does changing memory_max_target 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 memory_max_target?

Before enabling AMM, because memory_target cannot rise above it, and to keep headroom for online growth afterwards.

Back to all Oracle settings, or check the Oracle manual for every option.

// one client for every engine

Check memory_max_target 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.

このページのテキストとデータ: CC BY 4.0、出典は SQLly (sqlly.app) と明記してください。 コードと SQL スニペット: MIT. ライセンスの詳細