昨天电脑死机了,我就强制关机。今天开了电脑之后,发现Oracle无法登录,用SQL Plus登录时(主机字符串中输入其中的一个SID:gzlss,用另外一个SID时,可以正常登录),出现这样的错误提示:ORA-01033 ORACLE initialization or shutdown in progress。
上网找了很多资料,最后综合了一下,终于找到解决方法,具体如下:
进入命令行提示符窗口,具体的命令及结果如下:
C:/Documents and Settings/Administrator>set oracle_sid=gzlss
C:/Documents and Settings/Administrator>sqlplus
SQL*Plus: Release 9.2.0.1.0 - Production on 星期六 11月 29 11:23:37 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
请输入用户名: /as sysdba
连接到:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL> alter database backup controlfile to trace;
数据库已更改。
SQL> startup nomount
ORA-01081: 无法启动已在运行的 ORACLE --- 请首先关闭
SQL> shutdown abort
ORACLE 例程已经关闭。
SQL> startup
ORACLE 例程已经启动。
Total System Global Area 135338868 bytes
Fixed Size 453492 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
数据库装载完毕。
ORA-00600: 内部错误代码,参数: [kcratr1_lostwrt], [], [], [], [], [], [], []
SQL> shutdown immediate
ORA-01109: 数据库未打开
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup mount
ORACLE 例程已经启动。
Total System Global Area 135338868 bytes
Fixed Size 453492 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
数据库装载完毕。
SQL> recover database;
完成介质恢复。
SQL> alter database open;
数据库已更改。
SQL> exit;
从Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production中断开
C:/Documents and Settings/Administrator>
至此,已经完成,重新登录,已经可以正常登录了。
Oracle无法登录的解决方法
最新推荐文章于 2022-12-13 21:28:11 发布