首页 > 其他 > 详细

【翻译自mos文章】在os上的datafile已经不存在的情况下 将该tablespace里删除

时间:2015-02-22 12:17:13      阅读:362      评论:0      收藏:0      [点我收藏+]

 来源于:
I want to remove a tablespace and the datafile is already removed from the O.S (文档 ID 786567.1)

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

目标:
当datafile从os级别删除后,再试图drop 该tablespace,结果报下列的错误:

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/O
ORA-27072: File I/O error
Additional information: 3
Additional information: 1


解决方案:

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;

 

【翻译自mos文章】在os上的datafile已经不存在的情况下 将该tablespace里删除

原文:http://blog.csdn.net/msdnchina/article/details/43907037

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!