LGWR (ospid: 29534): terminating the instance due to error 4021
LGWR (ospid: 29534): terminating the instance due to error 4021
ksuitm: waiting up to [5] seconds before killing DIAG(29522)
公司備庫ADG意外當機,alert日誌顯示LGWR程式終止了DB instance
Errors in file /app/oracle_11g/diag/rdbms/hkadg/hkadg/trace/hkadg_lgwr_29534.trc:
ORA-04021: timeout occurred while waiting to lock object
Sun Mar 24 05:53:27 2019
System state dump requested by (instance=1, osid=29534 (LGWR)), summary=[abnormal instance termination].
LGWR (ospid: 29534): terminating the instance due to error 4021
System State dumped to trace file /app/oracle_11g/diag/rdbms/hkadg/hkadg/trace/hkadg_diag_29522_20190324055327.trc
Dumping diagnostic data in directory=[cdmp_20190324055327], requested by (instance=1, osid=29534 (LGWR)), summary=[abnormal instance termination].
Instance terminated by LGWR, pid = 29534
錯誤原因:
1、發生ORA-4021 錯誤的原因
獲取library cache lock/pin 超時
2、為什麼是 LGWR 終止了db instance
根據 《Bug 18242740 : ACTIVE STANDBY DATABASE CRASHED WITH ORA-4021》整理:
LGWR 需要獲取到解析鎖(parse lock)才能重新整理,可能這個會話話費了大量時間解析。超過了設定時間,依然沒有獲取到解析鎖,就發生了ORA-4021崩潰。
解決辦法:
MOS上找到了相同案例的解決方案《LGWR (ospid: Xxx): Terminating The Instance Due To Error 4021 (文件 ID 2177473.1)》,BUG導致ADG當機。設定隱含引數 _adg_parselock_timeout 可解決該bug,
ALTER SYSTEM set "_adg_parselock_timeout"=550 scope=both;
參考資料
LGWR (ospid: Xxx): Terminating The Instance Due To Error 4021 (文件 ID 2177473.1)
CAUSE
Bug 18242740 ACTIVE STANDBY DATABASE CRASHED WITH ORA-4021 closed as duplicate of Bug 17018214 – ORA-600 [KRDRSB_END_QSCN_2]
SOLUTION
Fix is already included in 11.2.0.4 but the fix is DISABLED by default.
To enable the fix set “_adg_parselock_timeout” to the number of centi-seconds LGWR should wait before backing off and retrying the request.
Set the parameter “_adg_parselock_timeout”
On the Active Data Guard Standby set below parameter and restart standby:
ALTER SYSTEM set “_adg_parselock_timeout”=550 scope=both;
-----------------------------------End By 2019-03-28--------------------------------------------------------
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24930246/viewspace-2639573/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Fails to Start: PMON (ospid: nnnn): terminating the instance due to error 481AIError
- 【RAC】PMON: terminating the instance due to error 481Error
- LMON: terminating instance due to error 29702 -- ORA-29702Error
- [總結]9i RAC LMON: terminating instance due to error 29702Error
- [總結]9i RAC LMON: terminating instance due to error 29702Error
- terminating the instance due to error481導致ASM無法啟動故障ErrorASM
- Oracle9.2.0.4 RAC 升級到Oracle9.2.0.7 ,LMON: terminating instance due to error 29702OracleError
- 系統記憶體不足導致oracle程式被誤殺terminating the instance due to error 822記憶體OracleError
- RAC Instance Crashes During Startup Due To Error 495Error
- Close the Database by Terminating the Instance (304)Database
- DB error due to HP-UX Error:23ErrorUX
- *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[APPException
- error: Exited sync due to fetch errorsError
- Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to deq...APPException
- ORA-16198: LGWR received timedout error from KSRError
- iOS-程式錯誤導致App閃退了怎麼辦?Terminating app due to uncaught exception...iOSAPPException
- RESTORE DATABASE is terminating abnormally. (Microsoft SQL Server, Error: 3154)RESTDatabaseORMROSSQLServerError
- Oracle LGWR程式Oracle
- 升級pip報錯ERROR: Could not install packages due to an OSError: [WinError 5]ErrorPackage
- Error 945 Database cannot be opened due to inaccessible files or insufficient memory or disk spaceErrorDatabase
- Agent Install Fails with Error 'OUI-25031' Due to Environment Settings_380507.1AIErrorUI
- 【Oracle】-【體系結構-LGWR】-LGWR的一些理解Oracle
- DBWn,CKPT,LGWR程式
- LGWR,Log Switches, and Checkpoints
- Counld not connect to ASM due to following error,ora-12547:TNS:lost comactASMErrorMac
- LGWR group commits(原)MIT
- cassandra啟動報錯:Exiting due to error while processing commit log during initialization.ErrorWhileMIT
- IPC Send timeout detected. Receiver ospid 25822
- LGWR writes redo log (117)
- PRKP-1002 : Error stopping instance ,CRS-0233Error
- wmi provider error 0x800742a2 :: MSSQL instance can not startIDEErrorSQL
- Oracle 的Lgwr Worker的工作原理Oracle
- LGWR DBWR SMON 等程式說明
- Log Writer Process (LGWR) (115)
- SpokenEnglish01_ When's it due?
- Namespoace Terminating 解決辦法
- Unable to connect to any hosts due to exceptionException
- Oracle DBWR,LGWR,CKPT,ARCH 觸發條件Oracle