oracle登入錯誤(ORA-01033:ORACLE initialization or shutdown in progress __oracle

來源:互聯網
上載者:User

oracle登入錯誤(ORA-01033:ORACLE initialization or shutdown in progress

上面說到了建立表分區的例子,所以建立資料表空間的時候建立了好幾個資料表空間物理檔案,之後感覺建立的有誤,想刪掉它們,可是刪不掉(因為資料庫進程啟動著),所以把資料庫服務給關了,直接Shift+Del把檔案給刪掉了。

問題出來了:我再次啟動oracle相關服務後,登入不了了。

出現了ORA-01033:ORACLE initialization or shutdown in progress

 

原因就是因為我把介質檔案給刪掉了

解決步驟:

以DBA(通常有好幾個sys或system)使用者sqlplus登入

請輸入使用者名稱: system/sys as sysdba

然後(卸載資料)輸入:

SQL> shutdown normal

會出現:
ORA-01109: 資料庫未開啟

 

已經卸載資料庫。
ORACLE 常式已經關閉。

 

然後(裝載資料)輸入:

SQL> startup mount

 

ORACLE 常式已經啟動。

資料庫裝載完畢。

 

之後:

SQL>alter database open;

第 1 行出現錯誤:
ORA-01157: 無法標識/鎖定資料檔案 6 - 請參閱 DBWR 追蹤檔案
ORA-01110: 資料檔案 6: 'D:/ORACLE/PRODUCT/10.1.0/ORADATA/RAILWAY/2008_1.DAT'

 

SQL> alter database create datafile 6;

資料庫已更改。

SQL>alter database open;

第 1 行出現錯誤:
ORA-01113: 檔案 6 需要介質恢複
ORA-01110: 資料檔案 6: 'D:/ORACLE/PRODUCT/10.1.0/ORADATA/RAILWAY/2008_1.DAT'

 

SQL> alter database datafile 6 offline drop;

資料庫已更改。

 

繼續

SQL>alter database open;

如果出現以上錯誤,繼續執行相關操作,上面的6要和create和drop對應。

 

如果

SQL> alter database open;

出現了:

資料庫已更改。

則成功了。

這時可以再用PL/SQL等用戶端工具,登入操作資料庫了。

  

A-01033:ORACLE initialization or shutdown in progress )

 

http://hi.baidu.com/bolg_riree/blog/item/6fc38e1e3b7fe91a4134179e.html

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.