denrepo

Init parameterMemory

SGA_MAX_SIZE

Restart needed

What it controls

The most memory the SGA can grow to without a restart.

Know this before you change it

Set it a little above SGA_TARGET if you want room to grow the SGA online.

Check and change it

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

Open in the parameter referenceOracle's reference

More in Memory