Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot remove constraints

Tags:

sql

oracle

ddl

I have some strange constraints on strange table on my oracle database named BIN$DHUs7v8fwyvgUAB/AQAHZQ==$0

I cannot drop these constraints. I am getting the following error:

ORA-38301: Can not perform DDL/DML over objects in Recycle Bin

like image 379
Charmi Avatar asked Jan 13 '15 10:01

Charmi


2 Answers

These are tables within the Recycle Bin of the database, with other words, those tables have been dropped. To purge them use:

purge recyclebin;

You can find more about the PURGE command in the Oracle Database documentation.

like image 199
gvenzl Avatar answered Sep 27 '22 23:09

gvenzl


Oracle recycle bin is a special part of the data dictionary that stores removed objects in a fashion that allows them to later be recovered.

These objects (named BIN$unique_id$version, like the object in the question) can be manipulated directly, but instead should be purged from the recycle bin:

PURGE INDEX BIN$DHUs7v8fwyvgUAB/AQAHZQ==$0
like image 30
Mureinik Avatar answered Sep 27 '22 23:09

Mureinik