Purge RecycleBin in Oracle


I will explain Purge RecycleBin in Oracle in this post.


You can read the Recycle Bin post from the following link if you want to learn more detail about Recycle Bin .

What is the Recycle bin and How to Restore Dropped Tables from Recycle Bin


Purge RecycleBin

You can purge recycle bin as follows. purge recyclebin will remove all objects from the user’s recycle bin and release all space associated with objects in the recycle bin

SQL> purge recyclebin;

Recyclebin purged.



Purge dba_recyclebin needs sysdba privilige and it removes all objects from the system-wide recycle bin, and is equivalent to purging the recycle bin of every user

SQL> purge dba_recyclebin;

DBA Recyclebin purged.



Purge Tablespace RECYCLEBIN

purge tablespace option purges all the objects residing in the specified tablespace from the recycle bin.

SQL> purge tablespace Users;

Tablespace purged.



You can purge any table as follows.

Table purged.

You can purge any dropped table as follows.

SQL> purge table "BIN$cxP2b6/dEnrgVQBAAAAADQ==$1";

Table purged.

You can check if the recycle bin is on or off as follows.

SQL> show parameter recyclebin;

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



Turn Off Recycle Bin

To disable the recycle bin, you can disable the recycle bin both for session and system level as follows.


ALTER SYSTEM SET recyclebin = OFF;

You can enable the recycle bin both for session and system level as follows.


ALTER SESSION SET recyclebin = ON;

ALTER SYSTEM SET recyclebin = ON;


Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

Your email address will not be published. Required fields are marked *