denrepo

Init parameterMemory

SGA_TARGET

Changes immediately

What it controls

Size of the SGA under Automatic Shared Memory Management. Oracle moves memory between the buffer cache, shared pool and other pools as load changes.

Know this before you change it

Can be raised only up to SGA_MAX_SIZE without a restart. Any value set for SHARED_POOL_SIZE or DB_CACHE_SIZE becomes a floor that the automatic resizing won't go below.

Check and change it

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

Related scripts

Open in the parameter referenceOracle's reference

More in Memory