Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Delete tablespace prompts ORA-00604 and ORA-38301 in oracle

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Today, I need to make room on my computer. I found that a dbf file in oracle occupies about 30g, which is rarely used by users, so I want to deal with it-delete tablespace operation.

The native database is 32-bit 10.2.0.1.0, and there are several table data in the tablespace TEST_TB. System users with the dba role at the beginning, directly execute

Drop tablespace test_tb including contents and datafiles

Tip:

ORA-00604: an error occurred in recursive SQL level 1

ORA-38301: unable to DDL/DML objects in the Recycle Bin

Reason: the data of this tablespace test_tb exists in dba_segments, and the query can be executed through dba users:

Select segment_name,segment_type,owner from dba_segments where tablespace_name='TEST_TB'

Treatment method:

Log in with the user corresponding to the tablespace

Execute purge recyclebyin

Re-execute drop tablespace test_tb incluing contents and datafiles

After execution, the dbf file does not exist and the space is free.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report