"Translated from MOS article" encountered error in Alter/drop tablespace ora-38301,ora-00604,purge dba_recyclebin.

Source: Internet
Author: User

Error encountered while Alter/drop table space Ora-38301,ora-00604,purge Dba_recyclebin not

Suitable for:
Oracle database-enterprise edition-version 10.2.0.1 and later
Information in this document applies to any platform.

Symptoms:
When you try to drop an empty tablespace, you encounter RecycleBin-related errors

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 le Vel 1 ora-38301:can not perform ddl/dml over objects in Recycle Bin

Try purge Dba_recyclebin and offline the tablespace:


Reason:
Query dba_segments shows that there are segments in the table space

Sql> Select Segment_name,segment_type,owner from dba_segments where tablespace_name= ' Test_tbs '; Segment_name                   segment_type       OWNER----------------------------------------------------------------------- -------bin$pks1anxmmctgq8+ct10wja==$0 table              ORACLE      bin$pks790fcqezgq8+ct11ata==$0 table              

Solution:

Log in Sqlplus with the owner of the schema, then execute purge recyclebin, and then delete the drop tablespace


If this still does not solve the problem, the quickest way to work is to disable off RecycleBin, then drop tablespace, and then enable Recyclbin

Sql> conn/as sysdbasql> alter system set Recyclebin=off; Sql> drop tablespace Test_tbs including contents and datafiles; Sql> alter system set Recyclebin=on;

---Remind: 11gr2 inside, RecycleBin seems to be static parameters.

If the above steps do not solve the problem, please use the following method:

1) sqlplus/as sysdba2) ALTER SYSTEM SET recyclebin = OFF deferred;3) Disconnect and exit SQLPLUS4) Sqlplus/as Sysdba5) Drop tablespace ... 6) Sqlplus/as Sysdba7) ALTER SYSTEM SET recyclebin = on DEFERRED; or ALTER SYSTEM SET recyclebin = on;

"Translated from MOS article" encountered error in Alter/drop tablespace ora-38301,ora-00604,purge dba_recyclebin.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.