How to Check, Disable and Enable Recyclebin in Oracle Database

advertisements

_____________________________________________________________________________________________________________________

The Eucharistic Miracles of the World
Check whether recyclebin is enabled or not using below commands.

SQL> show parameter recyclebin

NAME                              TYPE      VALUE
------------------------------------ ----------- ------------------------------
recyclebin                       string    on



select name,value from v$parameter where name like '%recyclebin%'
/

NAME                VALUE
-------------------- --------------------
recyclebin          ON

Turn off the recyclebin using below command. You should use deferred option while disabling and enabling the recyclebin. It will be disabled or enabled only for the subsequent database sessions.
advertisements
 

SQL> alter system set recyclebin=off deferred;

System altered.

SQL> show parameter recyclebin

NAME                              TYPE      VALUE
------------------------------------ ----------- ------------------------------
recyclebin                        string    on
SQL> conn / as sysdba
Connected.
SQL> show parameter recyclebin

NAME                              TYPE      VALUE
------------------------------------ ----------- ------------------------------
recyclebin                        string    OFF

Turn On the recyclebin using below command.

SQL> alter system set recyclebin=on deferred;

System altered.

SQL> show parameter recyclebin

NAME                              TYPE      VALUE
------------------------------------ ----------- ------------------------------
recyclebin                        string    OFF
SQL> conn / as sysdba
Connected.
SQL> show parameter recyclebin

NAME                              TYPE      VALUE
------------------------------------ ----------- ------------------------------
recyclebin                        string    ON
SQL>

_____________________________________________________________________________________________________________________

Website Stats

0 comments:

Post a Comment

Labels

Oracle (629) Script (86) General (77) Unix (47) Blog (23) Technology (19) gadget (6) games (6) Business (3) OCI (3) SQL* Loader (3) Datapump (2)
 

acehints.com Copyright 2011-23 All Rights Reserved | Site Map | Contact | Disclaimer