2.1 检查数据库日志
发现实例异常重启都发生在 Media Recovery 节点,且日志信息基本相同。
即 ORA-04031 发生,LMS 进程被终止,实例因此 crash。
2023-12-30T00:34:27.339420+08:00
Errors in file u01/app/oracle/diag/rdbms/XXX_a/XXX5/trace/XXX5_lmse_112014_112041.trc:
ORA-04031: unable to allocate 168 bytes of shared memory ("shared pool","unknown object","sga heap(2,0)","gcs dynamic shadows lms")
2023-12-30T00:34:28.136580+08:00
opidrv aborting process LMSE ospid (112014_112041) as a result of ORA-4031
2023-12-30T00:34:28.136676+08:00
Errors in file u01/app/oracle/diag/rdbms/XXX_a/XXX5/trace/XXX5_lmse_112014_112041.trc:
ORA-04031: unable to allocate 168 bytes of shared memory ("shared pool","unknown object","sga heap(2,0)","gcs dynamic shadows lms")
2023-12-30T00:34:28.157891+08:00
System state dump requested by (instance=5, osid=111863 (PMON)), summary=[abnormal instance termination]. error - 'Instance is terminating.
'
System State dumped to trace file /u01/app/oracle/diag/rdbms/XXX_a/XXX5/trace/XXX5_diag_111930.trc
2023-12-30T00:34:28.180572+08:00
PMON (ospid: 111863): terminating the instance due to ORA error 12752
2023-12-30T00:34:28.180698+08:00
Cause - 'Instance is being terminated due to fatal process death (pid: 52, ospid: 112014_112041, LMSE)'
2023-12-30T00:34:29.028197+08:00
ORA-1092 : opitsk aborting process
2023-12-30T00:34:29.290269+08:00
Non critical error ORA-48913 caught while writing to trace file "/u01/app/oracle/diag/rdbms/XXX_a/XXX5/trace/XXX5_diag_111930.trc"
Error message: ORA-48913: Writing into trace file failed, file size limit [10485760] reached
Writing to the above trace file is disabled for now...
2023-12-30T00:34:29.554757+08:00
ORA-1092 : opitsk aborting process
2023-12-30T00:34:30.227296+08:00
License high water mark = 143
2023-12-30T00:34:34.205214+08:00
Instance terminated by PMON, pid = 111863
2023-12-30T00:34:34.763673+08:00
Warning: 2 processes are still attacheded to shmid 341147706:
(size: 94208 bytes, creator pid: 111091, last attach/detach pid: 111927)
2023-12-30T00:34:35.228955+08:00
USER(prelim) (ospid: 294282): terminating the instance
2023-12-30T00:34:35.231483+08:00
Instance terminated by USER(prelim), pid = 294282
2023-12-30T00:34:37.267130+08:00
Starting ORACLE instance (normal) (OS id: 294729)
==============================================
TOP 10 MEMORY USES FOR SGA HEAP SUB POOL 2
----------------------------------------------
"gcs dynamic shadows lms " 8331 MB 51%
"free memory " 4126 MB 25%
"gcs resources " 1010 MB 6%
"gcs dynamic resources " 893 MB 5%
"gcs resources " 1010 MB 6%
"gcs dynamic resources " 893 MB 5%
"gcs shadows " 551 MB 3%
"gcs resv res hash bucket " 356 MB 2%
"gcs dynamic resources for " 326 MB 2%
"db_block_hash_buckets " 144 MB 1%
"gc name table " 128 MB 1%
"file queue buckets " 86 MB 1%
-----------------------------------------
free memory 4126 MB
memory alloc. 12 GB
Sub total 16 GB
==============================================
TOP 10 MAXIMUM MEMORY USES FOR SGA HEAP SUB POOL 2
----------------------------------------------
"gcs dynamic shadows lms " 8331 MB
"free memory " 4484 MB
"gcs resources " 1010 MB
"gcs dynamic resources " 893 MB
"gcs shadows " 551 MB
"gcs resv res hash bucket " 356 MB
"gcs dynamic resources for " 326 MB
"db_block_hash_buckets " 144 MB
"gc name table " 128 MB
"file queue buckets " 86 MB
==============================================
INST_ID RESOURCE_NAME CURRENT_UTILIZATION MAX_UTILIZATION INITIAL_ALLOCATION LIMIT_VALUE
---------- ------------------------- -------------------- -------------------- -------------------- -----------
1 gcs_resources 650 8,892,902 28128315 UNLIMITED
1 gcs_shadows 821 10,811,451 28128315 UNLIMITED
2 gcs_resources 518 8,713,305 28128315 UNLIMITED
2 gcs_shadows 815 12,490,772 28128315 UNLIMITED
3 gcs_resources 588 8,842,600 28128315 UNLIMITED
3 gcs_shadows 878 12,587,568 28128315 UNLIMITED
4 gcs_resources 1,040 1,040 28128315 UNLIMITED
4 gcs_shadows 1,040 1,040 28128315 UNLIMITED
5 gcs_resources 585 63,813,068 28128315 UNLIMITED
5 gcs_shadows 841 80,459,548 28128315 UNLIMITED
6 gcs_resources 52,055,988 55,164,600 28128315 UNLIMITED
6 gcs_shadows 49,333,039 50,507,220 28128315 UNLIMITED
3.1 问题总结

本文作者:任我行(上海新炬中北团队)
本文来源:“IT那活儿”公众号





