Welcome 微信登录

首页 / 数据库 / MySQL / ORA-01033因误删表空间文件导致的解决方案

该类问题通常是由于表空间操作不当引起的。
解决方法:SQL*Plus无法连接,显示以下错误:
ORA-01033:Oracle initialization or shutdown in progress,Enterprise Manager Console中也是同样的错误。运行cmd,进入DOS环境。C:UsersAdministrator>sqlplusSQL*Plus: Release 10.2.0.1.0 - Production on 星期五 4月 22 09:28:44 2016Copyright (c) 1982, 2005, Oracle. All rights reserved.请输入用户名: sys/sys as sysdba连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining optionsSQL> alter database open;
alter database open
*
第 1 行出现错误:
ORA-01113: 文件 6 需要介质恢复
ORA-01110: 数据文件 6: "E:TEST.ORA"
SQL> alter database datafile 6 offline drop;数据库已更改。SQL> alter database open;数据库已更改。SQL> drop user TEST cascade;//注意:这个TEST要和上面的"E:TEST.ORA"中的TEST对应起来用户已删除。SQL> drop tablespace TEST including contents;表空间已删除。至此,SQL*Plus和Enterprise Manager Console等都可以正常登陆了。接下来就是重建在问题解决过程中删除的表空间和用户。SQL>create tablespace TEST datafile "E: est.dbf" size 100m reuse autoextend on next 10m maxsize unlimited extent management
local;
SQL>create user TEST default tablespace TEST indentified by windows;更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12本文永久更新链接地址