ORA-01109:資料庫無法啟動問題__資料庫

來源:互聯網
上載者:User

資料庫無法啟動問題

登入資料庫時提示:ORA-12514: TNS: 監聽程式當前無法識別串連描述符中

解決辦法:

然後遠程登入資料庫伺服器(aix5 unix),轉到oracle使用者下(unix轉使用者命令:su - oracle),輸入sqlplus /nolog 斷行符號  conn /as sysdba 斷行符號 進入sql介面,作如下操作:

1、關閉執行個體

SQL> shutdown immediate;

ORA-01109: database not open

  Database dismounted.

  ORACLE instance shut down.

2、啟動執行個體

SQL> startup;

Total System Global Area 2466250752 bytes

Fixed Size                  2022864 bytes

Variable Size             536871472 bytes

Database Buffers         1912602624 bytes

Redo Buffers               14753792 bytes

Database mounted.

ORA-01157: cannot identify/lock data file 7 - see DBWR trace file

ORA-01110: data file 7: '/dbbak/rlv_gcomm_30G_02'

 

接來下可以登入資料庫了,但是卻沒法執行任何操作,提示:

ORA-01109: database not open

(在網上搜了下,也有人有這個問題,但是問題是人家的file是存在的,所以只要改下路徑,直接執行如下語句再執行1和2就可以了。

 SQL> alter database rename file '/dbbak/rlv_gcomm_30G_02' to '/var/rlv_gcomm_30G_02';)

 

但問題是我的這個資料庫rlv_gcomm_30G_02這個檔案根本就不存在,哪來的該路徑呢,經過網路和好心人的幫忙終於可以找到原因了

具 體原因分析如下:由於早上建立了一個資料表空間,但是後來直接去刪除資料表空間rlv_gcomm_30G_02檔案,但這麼刪是有問題的,資料表空間和資料檔案如果 沒有從資料庫中刪除,相應的資料檔案就不能直接在伺服器上刪除。所以導致在啟動資料庫的時候檢查資料有問題,最終導致資料庫無法啟動。解決辦法如下:

3、SQL>alter database datafile '/dbbak/rlv_gcomm_30G_02' offline drop;

然後在執行上述的1和2步驟就可以了,由於這這個資料庫還有一個資料庫資料表空間檔案被這麼刪除,所以還會出現同樣的問題,當然這回只要再執行3,然後執行1,2就可以了。

SQL> startup

ORACLE instance started.

Total System Global Area 2466250752 bytes

Fixed Size                  2022864 bytes

Variable Size             536871472 bytes

Database Buffers         1912602624 bytes

Redo Buffers               14753792 bytes

Database mounted.

Database opened. 終於成功了。

但是這個時候登入資料庫還是不行的,還要啟動

然後就可以登入資料庫將資料表空間drop掉。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.