標籤:
今兒一直在測試伺服器的遷移問題,不斷地建立資料表空間、建立資料庫、建立使用者。後來感覺建立這麼多東西太佔用磁碟空間,心想刪除一下吧,於是,我們執行了dbca命令,將沒用的資料庫統統刪除,將dbf和dmp檔案也統統刪除了,再後來探索服務無法啟動了,串連時會提示oracle initialization or shutdown in progress,後來經過查詢發現,原來這些dbf和dmp不是說刪除就能刪除的(當時我們明明發現有的不允許刪除,我還是故意停停掉oracle服務,然後將其刪除滴),最終導致資料庫執行個體無法啟動。
我的解決過程如下:Microsoft Windows [版本 5.2.3790](C) 著作權 1985-2003 Microsoft Corp.
C:\Documents and Settings\Administrator>sqlplus /nolog SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 3月 4 18:40:13 2011 Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect system/hope;ERROR:ORA-01033: ORACLE initialization or shutdown in progress【就是這個錯誤】
【解決方案】
SQL> connect sys/hope as sysdba已串連。
SQL> shutdown normalORA-01109: 資料庫未開啟 已經卸載資料庫。ORACLE 常式已經關閉。
SQL> start mountSP2-0310: 無法開啟檔案 "mount.sql"SQL> startup mountORACLE 常式已經啟動。 Total System Global Area 612368384 bytesFixed Size 1332348 bytesVariable Size 183151492 bytesDatabase Buffers 423624704 bytesRedo Buffers 4259840 bytes資料庫裝載完畢。SQL> alter database open;alter database open*第 1 行出現錯誤:ORA-01157: 無法標識/鎖定資料檔案 5 - 請參閱 DBWR 追蹤檔案ORA-01110: 資料檔案 5: ‘C:\TYKM.DBF‘
SQL> alter database datafile 5 offline drop;【5是資料檔案中的5】 資料庫已更改。
SQL> alter database open;【我們一直迴圈這個語句,直至不再提示錯誤】 資料庫已更改。
SQL> shutdown normal資料庫已經關閉。已經卸載資料庫。ORACLE 常式已經關閉。
SQL> startupORACLE 常式已經啟動。 Total System Global Area 612368384 bytesFixed Size 1332348 bytesVariable Size 187345796 bytesDatabase Buffers 419430400 bytesRedo Buffers 4259840 bytes資料庫裝載完畢。資料庫已經開啟。這樣就解決啦~~~哈哈哈~~~~~~~~~~~~~~~~~~~~ 轉載:http://blog.sina.com.cn/s/blog_49f485700100s362.html
Oracle ORA-01033: ORACLE initialization or shutdown in progress 錯誤解決辦法