[Translated from mos] Delete the tablespace if the datafile on the OS does not exist.

Source: Internet
Author: User

[Translated from mos] Delete the tablespace if the datafile on the OS does not exist.

Source:
I want to remove a tablespace and the datafile is already removed from the O.S (Documentation ID 786567.1)

Applicable:
Oracle Database-Enterprise Edition-Version 10.1.0.4 and later
Information in this document applies to any platform.

Objectives:
When datafile is deleted from the OS level and then tries to drop the tablespace, the following error is returned:

SQL> drop tablespace ts_edw1_large01;drop tablespace ts_edw1_large01*ERROR at line 1:ORA-01115: IO error reading block from file 53 (block # 1)ORA-01110: data file 53: '/u43/oradata/edw1p/ts_edw1_large01_01.dbf'ORA-27091: unable to queue I/OORA-27072: File I/O errorAdditional information: 3Additional information: 1


Solution:

1. SQL> STARTUP MOUNT ;2. Offline drop the datafile.SQL> ALTER DATABASE DATAFILE '/u43/oradata/edw1p/ts_edw1_large01_01.dbf ' OFFLINE DROP;3. SQL> ALTER DATABASE OPEN;4. Drop the user tablespace.SQL> DROP TABLESPACE <tablespace_name> INCLUDING CONTENTS;

 

Related Article

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.