昨天電腦死機了,我就強制關機。今天開了電腦之後,發現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>
至此,已經完成,重新登入,已經可以正常登入了。