denrepo

Init parameterMemory

SHARED_POOL_SIZE

Changes immediately

What it controls

Size of the shared pool: parsed SQL, PL/SQL and the dictionary cache. Under SGA_TARGET it's a minimum.

Know this before you change it

Setting a floor stops automatic resizing from shrinking the shared pool too far, a common fix for repeated ORA-04031.

Check and change it

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

Related scripts

Open in the parameter referenceOracle's reference

More in Memory