denrepo

Init parameterMemory

MEMORY_TARGET

Changes immediately

What it controls

Total memory for SGA and PGA together under Automatic Memory Management.

Know this before you change it

Can't be combined with Linux HugePages, so most Linux databases larger than a few GB leave it at 0 and set SGA_TARGET and PGA_AGGREGATE_TARGET instead. It can only be raised up to MEMORY_MAX_TARGET without a restart.

Default: 0

Check and change it

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

Related scripts

Open in the parameter referenceOracle's reference

More in Memory