ORA-01033:ORACLE initialization or shutdown in progress錯誤解決

tonywi888發表於2007-05-22

01033, 00000, "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.

所以在就有網友建議重啟,效果如何.我不知道,有興趣可以自己去試.下面是我的解決的步驟.其實主要參考自下面的文章.

當然我的電腦沒有斷電,起因是我在做表空間練習的時候刪除了我所建立的資料檔案,

以sys登入為sysdba
sqlplus /NOLOG
SQL>connect sys/使用者口令as sysdba
SQL>shutdown normal
SQL>startup mount
SQL>alter database open
SQL>shutdown normal
SQL>startup

結果出現
SQL> alter database open
2 ;
alter database open
*
第 1 行出現錯誤:
ORA-01157: 無法標識/鎖定資料檔案 5 - 請參閱 DBWR 跟蹤檔案
ORA-01110: 資料檔案 5: 'F:ORACLETEST01.DBF'

由此可得出是我剛才的資料檔案刪除操作引起的,怎麼辦呢?

下面是我的命令列的貼圖,希望不是太亂.

ORA-01157: 無法標識/鎖定資料檔案 5 - 請參閱 DBWR 跟蹤檔案
ORA-01110: 資料檔案 5: 'F:ORACLETEST01.DBF'


SQL> alter database create datafile 5;

資料庫已更改。

SQL> conn scott/tiger
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress


警告: 您不再連線到 ORACLE。
SQL> alter database datafile 5 offline drop;
SP2-0640: 未連線
SQL> conn sys/oracle
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress


SQL> conn sys/oracle as sysdba;
已連線。
SQL> alter database datafile 5 offline drop;

資料庫已更改。

SQL> conn scott/tiger
ERROR:
ORA-01033: ORACLE initialization or shutdown in progres

怎麼還回出現相同的錯誤呢?重複上面的步驟,你會發現

ORA-01157: 無法標識/鎖定資料檔案 6- 請參閱 DBWR 跟蹤檔案
ORA-01110: 資料檔案 6: 'F:ORACLETEST01.DBF'

和上面出現同一個錯誤,不過,看清楚哦,, 是資料檔案6 而不是資料檔案5,

那麼的話,繼續吧SQL> alter database create datafile 6;

知道你重複上面的步驟,發現能用scott登陸為止,其實你刪除了幾個資料檔案,你就要重複刪除幾次.

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8570952/viewspace-915880/,如需轉載,請註明出處,否則將追究法律責任。

相關文章