denrepo

Init parameterRedo, undo & archiving

UNDO_TABLESPACE

Changes immediately

What it controls

Which undo tablespace the instance uses. Each RAC instance has its own.

Know this before you change it

After switching, the old tablespace stays in use until its active transactions finish. Drop it only once it shows no active undo.

Check and change it

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

Related scripts

Open in the parameter referenceOracle's reference

More in Redo, undo & archiving