ORA-00600 [2662]錯誤解決

來源:互聯網
上載者:User

客戶報修,用戶端軟體無法串連伺服器,查看資料庫日誌資訊發下如下錯誤資訊:

Tue Jun 25 12:02:52 CST 2013

Errors in file /home/Oracle/orabase/admin/ORACLE/bdump/oracle_q000_3529.trc:

ORA-00600: internal error code, arguments: [2662], [0], [91108808], [0], [91133612], [12605758], [], []

Tue Jun 25 12:02:55 CST 2013

Errors in file /home/oracle/orabase/admin/ORACLE/bdump/oracle_q000_3529.trc:

ORA-00600: internal error code, arguments: [2662], [0], [91108810], [0], [91133612], [12605758], [], []

ORA-00600: internal error code, arguments: [2662], [0], [91108808], [0], [91133612], [12605758], [], []

Tue Jun 25 12:02:56 CST 2013

Errors in file /home/oracle/orabase/admin/ORACLE/bdump/oracle_q000_3529.trc:

ORA-00600: internal error code, arguments: [2662], [0], [91108811], [0], [91133612], [12605758], [], []

ORA-00600: internal error code, arguments: [2662], [0], [91108810], [0], [91133612], [12605758], [], []

ORA-00600: internal error code, arguments: [2662], [0], [91108808], [0], [91133612], [12605758], [], []

Tue Jun 25 12:02:57 CST 2013

Errors in file /home/oracle/orabase/admin/ORACLE/bdump/oracle_q000_3529.trc:

ORA-00600: internal error code, arguments: [2662], [0], [91108812], [0], [91133612], [12605758], [], []

ORA-00600: internal error code, arguments: [2662], [0], [91108811], [0], [91133612], [12605758], [], []

ORA-00600: internal error code, arguments: [2662], [0], [91108810], [0], [91133612], [12605758], [], []

ORA-00600: internal error code, arguments: [2662], [0], [91108808], [0], [91133612], [12605758], [], []


根據網路資料擷取到如下資訊:

ORA-600 [2662] "Block SCN is ahead of Current SCN",說明當前資料庫的資料區塊的SCN早於當前的SCN,主要是和儲存在UGA變數中的dependent SCN進行比較,如果當前的SCN小於它,資料庫就會產生這個ORA-600 [2662]的錯誤了。這個錯誤一共有五個參數,分別代表不同的含義,

ORA-600 [2662] [a] [b] [c] [d] [e]

Arg [a] Current SCN WRAP

Arg [b] Current SCN BASE

Arg [c] dependent SCN WRAP

Arg [d] dependent SCN BASE

Arg [e] Where present this is the DBA where the dependent SCN came from.

通過查閱文檔,發現這個錯誤的產生原因主要有以下幾條:

1.使用隱含參數_ALLOW_RESETLOGS_CORRUPTION後resetlogs開啟資料庫

2.硬體錯誤引起資料庫沒法寫控制檔案和重做記錄檔

3.錯誤的部分恢複資料庫

4.恢複了控制檔案但是沒有使用recover database using backup controlfile進行恢複

5.資料庫crash後設定了_DISABLE_LOGGING隱含參數

6.在並行伺服器環境中DLM存在問題

根據錯誤中的提示,它的參數b=91108811,d=91133612,表明當前的SCN確實是小於dependent SCN,所以產生了這個600的錯誤。於是使用ADJUST_SCN事件來調整當前的SCN,使其大於dependent SCN,然後保證資料庫可以全庫的匯出,然後重建資料庫匯入資料。調整SCN有兩種方法:

增進SCN有兩種常用方法:

1.通過immediate trace name方式(在資料庫Open狀態下)

alter session set events 'IMMEDIATE trace name ADJUST_SCN level x';

2.通過10015事件(在資料庫無法開啟,mount狀態下)

alter session set events '10015 trace name adjust_scn level x';

注:level 1為增進SCN 10億 (1 billion) (1024*1024*1024),通常Level 1已經足夠。也可以根據實際情況適當調整。


經詢問當班負責人,懷疑為硬體錯誤引起資料庫沒法寫控制檔案和重做記錄檔,於是執行如下操作進行恢複開啟:

SQL> startup mount

ORACLE instance started.

Total System Global Area  97588504 bytes

Fixed Size                  451864 bytes

Variable Size              33554432 bytes

Database Buffers          62914560 bytes

Redo Buffers                667648 bytes

Database mounted.

SQL> alter session set events '10015 trace name adjust_scn level 1';

Session altered.

SQL> alter database open;

Database altered.

SQL>


然後分別業務賬戶登入資料庫庫匯出業務資料,重建新庫匯入業務資料恢複業務。

聯繫我們

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