溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

怎么解決數(shù)據(jù)庫alert報錯ORA-00202

發(fā)布時間:2021-11-09 10:44:59 來源:億速云 閱讀:331 作者:iii 欄目:關(guān)系型數(shù)據(jù)庫

本篇內(nèi)容主要講解“怎么解決數(shù)據(jù)庫alert報錯ORA-00202”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強(qiáng)。下面就讓小編來帶大家學(xué)習(xí)“怎么解決數(shù)據(jù)庫alert報錯ORA-00202”吧!

思路分析:

1、發(fā)現(xiàn)數(shù)據(jù)庫宕機(jī),檢查alert日志發(fā)現(xiàn)如下出現(xiàn)控制文件:I/O錯誤

Thu Apr 11 06:40:14 2019
WARNING: Read Failed. group:2 disk:1 AU:675 offset:16384 size:16384
WARNING: failed to read mirror side 1 of virtual extent 0 logical extent 0 of file 260 in group [2.3852408873] from disk DATA_0001 allocation unit 675 reason error; if possible, will try another mirror side
Errors in file /u01/app/oracle/diag/rdbms/jsswgsjk/jsswgsjk1/trace/jsswgsjk1_ckpt_93628.trc:
ORA-00202: control file: '+DATA/jsswgsjk/controlfile/current.260.998936297'
ORA-15081: failed to submit an I/O operation to a disk
ORA-27072: File I/O error
Linux-x86_64 Error: 5: Input/output error
Additional information: 4
Additional information: 1382432
Additional information: -1
Thu Apr 11 06:40:15 2019
WARNING: Read Failed. group:2 disk:1 AU:675 offset:65536 size:16384

2、檢查ASM日志

-------發(fā)生磁盤超時,開始dimountOCR

Thu Apr 11 06:39:29 2019

NOTE: process _b000_+asm1 (31654636) initiating offline of disk 0.3671375779 (OCR_0000) with mask 0x7e in group 3

NOTE: process _b000_+asm1 (31654636) initiating offline of disk 1.3671375780 (OCR_0001) with mask 0x7e in group 3

NOTE: process _b000_+asm1 (31654636) initiating offline of disk 2.3671375781 (OCR_0002) with mask 0x7e in group 3

NOTE: checking PST: grp = 3

GMON checking disk modes for group 3 at 13 for pid 67, osid 31654636

ERROR: no read quorum in group: required 2, found 0 disks

NOTE: checking PST for grp 3 done.

NOTE: initiating PST update: grp = 3, dsk = 0/0xdad4bfa3, mask = 0x6a, op = clear

NOTE: initiating PST update: grp = 3, dsk = 1/0xdad4bfa4, mask = 0x6a, op = clear

NOTE: initiating PST update: grp = 3, dsk = 2/0xdad4bfa5, mask = 0x6a, op = clear

GMON updating disk modes for group 3 at 14 for pid 67, osid 31654636

ERROR: no read quorum in group: required 2, found 0 disks  <<<< 0個磁盤可訪問。

Thu Apr 11 06:39:29 2019 

解決方案:

1、綜合以上信息分析,故障分析總結(jié)如下:

Oracle RAC ASM管理磁盤組有一種特有的心跳磁盤監(jiān)控’ASM PST heartbeat’,這個監(jiān)控是在oracle 11.2.0.3之后出現(xiàn),系統(tǒng)默認(rèn)設(shè)至是15s,到12.1.0.2之后oracle把默認(rèn)值改為了120s。

這個PST heartbeat:往往發(fā)生在IO閃斷/繁忙/CPU繁忙時,PST檢測到同步延遲超過"_asm_hbeatiowait"值時,會通知ORACLE ASM INSTANCE dismount disk group,造成ASM instance disk group offline。一般Normal Redundancy或者High Redundancy策略下,超過半數(shù)的disk group offline就會造成Rack腦裂。

我們?nèi)魏蔚纳壴阪溌非袚Q中,PP一般會hold住 IO 15秒鐘左右再恢復(fù),很大可能性會引起上述timeout問題,在升級之前強(qiáng)烈建議更改此參數(shù)值到120。

具體的檢查這個參數(shù)的辦法如下,修改為120s后,為確保設(shè)置生效,需要重啟CRS服務(wù)。

2、檢查參數(shù) “_asm_hbeatiowait” 的值:(檢查為:15)

select ksppinm as "hidden parameter", ksppstvl as "value"

  from x$ksppi

  join x$ksppcv

 using (indx)

 where ksppinm like '\_%' escape '\'

   and ksppinm like '%asm_hb%'

 order by ksppinm;

3、修改方案,在ASM實例下調(diào)整

alter system set "_asm_hbeatiowait"=120 scope=spfile;

注意重啟ASM或者CRS

到此,相信大家對“怎么解決數(shù)據(jù)庫alert報錯ORA-00202”有了更深的了解,不妨來實際操作一番吧!這里是億速云網(wǎng)站,更多相關(guān)內(nèi)容可以進(jìn)入相關(guān)頻道進(jìn)行查詢,關(guān)注我們,繼續(xù)學(xué)習(xí)!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI