我用的Oracle9i数据库,服务已经启动,我登陆时报这个错:
C:\Documents and Settings\Administrator>sqlplus scott/tigerSQL*Plus: Release 9.2.0.1.0 - Production on 星期六 7月 17 00:15:24 2010Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.[b]ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
请输入用户名:不管用那个用户等都是这样,前几天都可以用啊 ,好郁闷啊!!
C:\Documents and Settings\Administrator>sqlplus scott/tigerSQL*Plus: Release 9.2.0.1.0 - Production on 星期六 7月 17 00:15:24 2010Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.[b]ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
请输入用户名:不管用那个用户等都是这样,前几天都可以用啊 ,好郁闷啊!!
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.C:\Documents and Settings\Administrator>shutdown
用法: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "co
mment"] [-d up:xx:yy] 没有参数 显示此消息(与 ? 相同)
-i 显示 GUI 界面,必须是第一个选项
-l 注销(不能与选项 -m 一起使用)
-s 关闭此计算机
-r 关闭并重启动此计算机
-a 放弃系统关机
-m \\computername 远程计算机关机/重启动/放弃
-t xx 设置关闭的超时为 xx 秒
-c "comment" 关闭注释(最大 127 个字符)
-f 强制运行的应用程序关闭而没有警告
-d [u][p]:xx:yy 关闭原因代码
u 是用户代码
p 是一个计划的关闭代码
xx 是一个主要原因代码(小于 256 的正整数)
yy 是一个次要原因代码(小于 65536 的正整数)C:\Documents and Settings\Administrator>
startup一下即如果是:C:\Documents and Settings\Administrator>startup
'startup' 不是内部或外部命令,也不是可运行的程序
或批处理文件。C:\Documents and Settings\Administrator>
ORA-01033: ORACLE initialization or shutdown in progress
Cause: An attempt was made to log on while Oracle is being started up or shutdown.
Action: Wait a few minutes. Then retry the operation.
有时候有些报错,并不是很大的故障。比如,我的监听器无法启动,过会我再去重启,就好了。所以,等等未必不好。如果还是这种状况没有解决,请楼主务必告知!
sql>conn sys/sys as sysdba;
sql>shutdown immediate;
sql>startup;
1、在9i中是没有svrmgrl 命令的,要用sqlplus。
2、先在windows下运行cmd,进入DOS环境。
3、以DBA用户登录,具体命令是
sqlplus /NOLOG
SQL>connect sys/change_on_install as sysdba
提示:已成功SQL>shutdown normal
提示:数据库已经关闭
已经卸载数据库
ORACLE 例程已经关闭SQL>startup mount
提示:ORACLE例程已经启动
Total System Global Area 118255568 bytes
Fixed Size 282576 bytes
Variable Size 82886080 bytes
Database Buffers 33554432 bytes
Redo Buffers 532480 bytes
数据库装载完毕SQL>alter database open;
提示:
第 1 行出现错误:
ORA-01157: 无法标识/锁定数据文件 19 - 请参阅 DBWR 跟踪文件
ORA-01110: 数据文件 19: ''''C:\oracle\oradata\oradb\FYGL.ORA''
这个提示文件部分根据每个人不同情况有点差别。继续输入
SQL>alter database datafile 19 offline drop;
提示:数据库已更改。循环使用最后两步,直到alter database open;后不再提示错误,出现“数据库已更改”。
然后接着输入即可
SQL>shutdown normal
提示:数据库已经关闭
已经卸载数据库
ORACLE 例程已经关闭SQL>startup
提示:ORACLE例程已经启动
Total System Global Area 118255568 bytes
Fixed Size 282576 bytes
Variable Size 82886080 bytes
Database Buffers 33554432 bytes
Redo Buffers 532480 bytes
数据库装载完毕
就可以解决了。