ITPub博客

首页 > 数据库 > Oracle > ORA-604 ORA-38301 ORA-30511 on alter/drop tablespace or other DDL/DML

ORA-604 ORA-38301 ORA-30511 on alter/drop tablespace or other DDL/DML

Oracle 作者:xychong123 时间:2017-10-16 16:39:45 0 删除 编辑
ORA-604 ORA-38301 ORA-30511 on alter/drop tablespace or other DDL/DML

故障描述:

SQL> drop tablespace TEST_TBS including contents and datafiles;
drop tablespace TEST_TBS 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

 Retried after purging and making the tablespace offline also 

SQL> purge dba_recyclebin;

DBA Recyclebin purged.

SQL> alter tablespace TEST_TBS offline;

Tablespace altered.

SQL> drop tablespace TEST_TBS including contents and datafiles;
drop tablespace TEST_TBS 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 



解决方法:

Connect as that particular schema 'owner' and then perform purge and then drop the tablespace

SQL> purge recyclebin;

SQL> drop tablespace TEST_TBS including contents and datafiles; 

If this does not solve the issue,

Then Quick Workaround is to disable the Recycle Bin and then drop the tablespace and re-enable the recycle bin

SQL> conn / as sysdba

SQL> alter system set recyclebin=off;
SQL> drop tablespace TEST_TBS including contents and datafiles;
SQL> alter system set recyclebin=on;
If the above steps does not work then use the following method

1) sqlplus / as sysdba
2) ALTER SYSTEM SET recyclebin = OFF DEFERRED;
3) disconnect and exit sqlplus
4) sqlplus / as sysdba
5) drop tablespace........
6) sqlplus / as sysdba
7) ALTER SYSTEM SET recyclebin = ON DEFERRED; or ALTER SYSTEM SET recyclebin = ON;

If all the above options of dba_recyclebin does not help then contact Oracle Support and mention this Note








来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/20747382/viewspace-2146026/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: insert 产生阻塞
请登录后发表评论 登录
全部评论

注册时间:2015-06-10

  • 博文量
    118
  • 访问量
    120448