Skip to Main Content
  • Questions
  • Unable to find or delete BIN$ Tables

Breadcrumb

Question and Answer

Chris Saxon

Thanks for the question, Adrian.

Asked: February 10, 2020 - 3:01 pm UTC

Last updated: February 11, 2020 - 10:32 am UTC

Version: Cloud ADW

Viewed 1000+ times

You Asked

While I was examining the space used on my free ADW i found lots of tables with a prefix of BIN$ in my DATA tablespace. I found these being referenced in the user_segments

The recyclebin is empty, and I cant find the tables using a select on the user_tables, but i can query the tables and get back results which show they are copies of existing tables.

Do you know what these are, and how I get rid of them to free up the space they report as using.


Thanks

Adrian

and Connor said...

They are tables in your recycle bin, eg

SQL> show recyclebin
[nothing]
SQL> drop table t;

Table dropped.

SQL> show recyclebin
ORIGINAL NAME    RECYCLEBIN NAME                OBJECT TYPE  DROP TIME
---------------- ------------------------------ ------------ -------------------
T                BIN$rw0R7fRFSMCDE5JjRDHT/w==$0 TABLE        2020-02-11:12:00:40


So simple execute

SQL> purge recyclebin

and you'll be good to go

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Recycle is User specific!

Adrian Ward, February 11, 2020 - 7:43 am UTC

I now know why I thought the recycle bin was empty - I ran the scripts from the admin account, including the purge script, but that did not delete the other users recyclebin entries.
The admin account has elevated rights, including the inky one that can read dba segments.

Is there a DBA like purge command that will empty all bins for the cloud Admin account? Or do we have to log in as every user?

Adrian
Chris Saxon
February 11, 2020 - 10:32 am UTC

You can empty the dba recyclebin when connected to the admin account:

purge dba_recyclebin;

More to Explore

Backup/Recovery

Check out the complete guide to all of the Backup & Recovery techniques in the Oracle Database.