Unable to drop tablespace [message #562678] |
Fri, 03 August 2012 06:19 |
|
hemchander83@gmail.com
Messages: 10 Registered: July 2012 Location: US
|
Junior Member |
|
|
I am getting the following errors when I try drop a tablespace.
I already did the following.
a) The tablespace & its datafiles offline.
b) I have purged dba_recyclebin.
SQL> drop tablespace db_maintenance including contents and datafiles;
drop tablespace db_maintenance including contents and datafiles
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-38301: can not perform DDL/DML over objects in Recycle Bin
|
|
|
|
Re: Unable to drop tablespace [message #562734 is a reply to message #562678] |
Sat, 04 August 2012 00:11 |
GirishSharma
Messages: 22 Registered: March 2010
|
Junior Member |
|
|
As Michel has explained, first you have to purge recyclebin first then offline tablespace and then drop tablespace. So, now bring online the tablespace, purge dba_recyclebin; offline the tablespace and then drop tablespace.
If you still get the problem, let us know.
Regards
Girish Sharma
|
|
|
|
|
|
|
|
Re: Unable to drop tablespace [message #562990 is a reply to message #562987] |
Tue, 07 August 2012 11:45 |
|
Michel Cadot
Messages: 68716 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
I think you're in a bug that existed in 10.2.0.1, post the result of:
select owner, segment_name, partition_name, segment_type
from dba_segments
where tablespace_name='DB_MAINTENANCE'
and segment_name like 'BIN$%'
and (owner, segment_name) not in (select owner, object_name from dba_recyclebin)
order by 1, 2, 3
/
Regards
Michel
[Updated on: Tue, 07 August 2012 11:46] Report message to a moderator
|
|
|
|
|
|
|
|
Re: Unable to drop tablespace [message #563064 is a reply to message #563062] |
Wed, 08 August 2012 03:54 |
|
Michel Cadot
Messages: 68716 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
I have an idea, not sure it works but try it:
alter session set recyclebin=OFF;
drop table "BIN$Pks1AnxmMCTgQ8+Ct10wJA==$0";
drop table "BIN$Pks790fcQEzgQ8+Ct11ATA==$0";
alter session set recyclebin=ON;
drop tablespace...
Regards
Michel
|
|
|