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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[APPException
- iOS-程式錯誤導致App閃退了怎麼辦?Terminating app due to uncaught exception...iOSAPPException
- 升級pip報錯ERROR: Could not install packages due to an OSError: [WinError 5]ErrorPackage
- cassandra啟動報錯:Exiting due to error while processing commit log during initialization.ErrorWhileMIT
- Namespoace Terminating 解決辦法
- vertx instance
- GPU InstanceGPU
- Oracle 的Lgwr Worker的工作原理Oracle
- SpokenEnglish01_ When's it due?
- 3.2.1 Mounting a Database to an InstanceDatabase
- 3.1.5.6 Forcing an Instance to Start
- Message from debugger: Terminated due to signal 13
- 【Azure API 管理】解決API Management新增AAD Group時遇見的 Failed to query Azure Active Directory graph due to error 錯誤APIAIError
- WebThread:signal SIGABRT 和 libc++abi.dylib:terminating with uncaughtWebthreadC++
- C++ instance的使用C++
- RMAN Duplicate RAC to Single Instance
- pip install 提示:Could not install packages due to an EnvironmentErrorPackageError
- 聊聊 Kubernetes Pod or Namespace 卡在 Terminating 狀態的場景namespace
- 3.1.5.2 Starting an Instance, and Mounting and Opening a DatabaseDatabase
- Property [title] does not exist on this collection instance
- Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.APPContextPackage
- LGWR寫操作會導致效能全域性卡頓案例分析
- RxSwift '_lock' is inaccessible due to 'private' protection level in DisposeBag問題Swift
- LOGSTDBY status: ORA-16227: DDL skipped due to missing objectObject
- Ruby class_eval and instance_eval notes
- NSCFType unrecognized selector sent to instance等問題Zed
- TypeError: The ‘compilation‘ argument must be an instance of Compilation 報錯Error
- Batch containing 11 record(s) expired due to timeout while requesting metadataBATAIWhile
- 前端每日一問--談談instance的原理前端
- ORA-15055 Unable to Connect to ASM When Starting an InstanceASM
- 【EmbedMask】《EmbedMask:Embedding Coupling for One-stage Instance Segmentation》Segmentation
- Oracle 19c Concepts(13):Oracle Database InstanceOracleDatabase
- Kubernetes怎麼處理一直在Terminating狀態的namespacenamespace
- ERROR 2026 (HY000): SSL connection error: unknown error numberError
- mount error(5): Input/output errorError
- 【ERROR】OPatch failed with error code 73ErrorAI
- Original error: Error: socket hang upError
- How to Increase CSS Misscount in single instance ASM installations [ID 729878.1]CSSASM