您的位置:首页 > 其它

ORA-01033问题解决【表空间文件误操作删除】

2013-12-31 11:50 441 查看
原因

导致ORA-01033问题出现的原因多种多样,但由于误操作删除Oralce表空间文件这种情形的比较常见。本文主要介绍此种情况的解决问题的办法。
解决方法
SQL*Plus无法连接,显示以下错误: ORA-01033:ORACLE initialization
or shutdown in progress ,EnterpriseManager Console中也是同样的错误。
先在windows下运行cmd,进入DOS环境。
C:UsersAdministrator>sqlplus /nolog
SQL*Plus:Release 10.2.0.1 – Production on
星期四 3月 3
23:56:37 2011
Copyright (C) 1982,2005,Oracle. All rights reserved.
SQL>conn sys@lgydata as sysdba
输入口令:
已连接。
SQL>alter database open;
Alter database open
第1行出现错误:
ORA-01157:无法标识/锁定数据文件
5 – 请参阅 DBWR
跟踪文件
ORA-01110:数据文件 5:’D:NDC.DBF’
SQL>alter database datafile 5 offline drop;
数据库已更改。
SQL>alter database open;
数据库已更改。
SQL>drop user ndc;
用户已删除。
SQL>drop tablespace ndc;
表空间已删除。
至此,SQL*Plus和Enterprise
Manager Console都可以正常登陆了。接下来就是重建在问题解决过程中删除的表空间和用户
Create tablespace ndc datafile ‘D:

dc.dbf’ size 100m autoextend on next 10m
Create user ndc indentified by ndc default tablespace ndctemporary tablespace temp
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐