11G RAC ORA-32701

节点1:

Wed Feb 13 16:08:06 2019
Errors in file /u01/app/oracle/diag/rdbms/sesdb/sesdb1/trace/sesdb1_dia0_9267.trc (incident=1248083):
ORA-32701: Possible hangs up to hang ID=4 detected
Incident details in: /u01/app/oracle/diag/rdbms/sesdb/sesdb1/incident/incdir_1248083/sesdb1_dia0_9267_i1248083.trc
DIA0 requesting termination of session sid:5190 with serial # 42237 (ospid:180727) on instance 2
due to a GLOBAL, HIGH confidence hang with ID=4.
Hang Resolution Reason: Although the number of affected sessions did not
justify automatic hang resolution initially, this previously ignored
hang was automatically resolved.
DIA0: Examine the alert log on instance 2 for session termination status of hang with ID=4.
Wed Feb 13 16:08:08 2019
Sweep [inc][1248083]: completed
Sweep [inc2][1248083]: completed
Wed Feb 13 16:09:41 2019
Errors in file /u01/app/oracle/diag/rdbms/sesdb/sesdb1/trace/sesdb1_dia0_9267.trc (incident=1248084):
ORA-32701: Possible hangs up to hang ID=4 detected
Incident details in: /u01/app/oracle/diag/rdbms/sesdb/sesdb1/incident/incdir_1248084/sesdb1_dia0_9267_i1248084.trc
DIA0 requesting termination of process sid:5190 with serial # 42237 (ospid:180727) on instance 2
due to a GLOBAL, HIGH confidence hang with ID=4.
Previous SESSION termination failed.
Hang Resolution Reason: Although the number of affected sessions did not
justify automatic hang resolution initially, this previously ignored
hang was automatically resolved.
DIA0: Examine the alert log on instance 2 for process termination status of hang with ID=4.

[oracle@sesdb1 trace]$ more /u01/app/oracle/diag/rdbms/sesdb/sesdb1/trace/sesdb1_dia0_9267.trc
Trace file /u01/app/oracle/diag/rdbms/sesdb/sesdb1/trace/sesdb1_dia0_9267.trc

*** TRACE FILE RECREATED AFTER BEING REMOVED ***

Incident 1248083 created, dump file: /u01/app/oracle/diag/rdbms/sesdb/sesdb1/incident/incdir_1248083/sesdb1_dia0_9267_i1248083.trc
ORA-32701: Possible hangs up to hang ID=4 detected

Incident 1248084 created, dump file: /u01/app/oracle/diag/rdbms/sesdb/sesdb1/incident/incdir_1248084/sesdb1_dia0_9267_i1248084.trc
ORA-32701: Possible hangs up to hang ID=4 detected

节点2:

Wed Feb 13 16:09:41 2019
Errors in file /u01/app/oracle/diag/rdbms/sesdb/sesdb2/trace/sesdb2_dia0_7404.trc (incident=1008107):
ORA-32701: Possible hangs up to hang ID=4 detected
Incident details in: /u01/app/oracle/diag/rdbms/sesdb/sesdb2/incident/incdir_1008107/sesdb2_dia0_7404_i1008107.trc
DIA0 terminating blocker (ospid: 180727 sid: 5190 ser#: 42237) of hang with ID = 4

 

[oracle@sesdb2 trace]$ more /u01/app/oracle/diag/rdbms/sesdb/sesdb2/trace/sesdb2_dia0_7404.trc
Trace file /u01/app/oracle/diag/rdbms/sesdb/sesdb2/trace/sesdb2_dia0_7404.trc

*** TRACE FILE RECREATED AFTER BEING REMOVED ***

Incident 1008106 created, dump file: /u01/app/oracle/diag/rdbms/sesdb/sesdb2/incident/incdir_1008106/sesdb2_dia0_7404_i1008106.trc
ORA-32701: Possible hangs up to hang ID=4 detected

Incident 1008107 created, dump file: /u01/app/oracle/diag/rdbms/sesdb/sesdb2/incident/incdir_1008107/sesdb2_dia0_7404_i1008107.trc
ORA-32701: Possible hangs up to hang ID=4 detected

 

等待事件

inst# SessId Ser# OSPID PrcNm Event
----- ------ ----- --------- ----- -----
1 6746 23425 37352 M000 enq: WF - contention
2 5190 42237 180727 M000 not in wait


inst# SessId Ser# OSPID PrcNm Event
----- ------ ----- --------- ----- -----
1 6746 23425 37352 M000 enq: WF - contention
2 5190 42237 180727 M000 not in wait

 

---解决办法

-----MOS 上文章 2226216.1
1. Collect statistics on following fixed table:

SQL> exec dbms_stats.gather_table_stats('SYS', 'X$KEWRATTRNEW');

PL/SQL procedure successfully completed.

SQL> exec dbms_stats.gather_table_stats('SYS', 'X$KEWRSQLIDTAB');

PL/SQL procedure successfully completed.

Or

2. Restarting the database will release of X$KQLFBC table data

Or

3. Flush shared_pool on a regular basis


*** 2019-02-14 06:25:08.352
current sql: insert into wrh$_sql_bind_metadata (snap_id, dbid, sql_id, name, position, dup_position, datatype, datatype_string, characte
r_sid, precision, scale, max_length) SELECT /*+ ordered use_nl(bnd) index(bnd sql_id) */ :lah_snap_id, :dbid, bnd.sql_id, name, position,
dup_position, datatype, dataty

---处理方法

exec dbms_stats.gather_table_stats('SYS', 'X$KEWRATTRNEW');

exec dbms_stats.gather_table_stats('SYS', 'X$KEWRSQLIDTAB');

---定时任务

# flush shared_pool 每个月执行一次
33 02 15 * * /bin/sh /home/oracle/flush_shared_pool/flush_shared_pool.sh &> /dev/null

[oracle@sesdb2 ~]$ cat /home/oracle/flush_shared_pool/flush_shared_pool.sh
#!/bin/bash
source /home/oracle/.bash_profile

sqlplus / as sysdba >> /home/oracle/flush_shared_pool/exec_shared_pool.log <<EOF
set timing on;
@/home/oracle/flush_shared_pool/flush_shared_pool.sql
EOF

[oracle@sesdb2 ~]$ cat /home/oracle/flush_shared_pool/flush_shared_pool.sql
alter system flush shared_pool;

 

转载于:https://www.cnblogs.com/ss-33/p/10394037.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值