denrepo

Init parameterFiles & storage

RECYCLEBIN

New sessions onlyCan set per session

What it controls

Whether dropped tables go to the recycle bin so they can be flashed back.

Know this before you change it

Turning it off instance-wide applies to new sessions only. Purge the recycle bin to reclaim space rather than switching it off.

Default: ON

Check and change it

recyclebin.sql
1-- Current value on every instance2SELECT inst_id, name, value, isdefault, ismodified3FROM gv$parameter4WHERE name = 'recyclebin';5 6-- Value stored in the spfile7SELECT sid, value FROM v$spparameter WHERE name = 'recyclebin' AND isspecified = 'TRUE';8 9-- Applies to sessions that connect after the change10ALTER SYSTEM SET recyclebin = OFF DEFERRED SCOPE = BOTH SID = '*';11 12-- Or for your own session only13ALTER SESSION SET recyclebin = OFF;14 15-- Remove it from the spfile to go back to the default at the next restart16ALTER SYSTEM RESET recyclebin SCOPE = SPFILE SID = '*';

Related scripts

Open in the parameter referenceOracle's reference

More in Files & storage