节点1:

Wed Feb 13 16:08:06 2019

Errors in file /u01/app/oracle/diag/rdbms/testdb/testdb1/trace/testdb1_dia0_9267.trc (incident=1248083):

ORA-32701: Possible hangs up to hang ID=4 detected

Incident details in: /u01/app/oracle/diag/rdbms/testdb/testdb1/incident/incdir_1248083/testdb1_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/testdb/testdb1/trace/testdb1_dia0_9267.trc (incident=1248084):

ORA-32701: Possible hangs up to hang ID=4 detected

Incident details in: /u01/app/oracle/diag/rdbms/testdb/testdb1/incident/incdir_1248084/testdb1_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@testdb1 trace]$ more /u01/app/oracle/diag/rdbms/testdb/testdb1/trace/testdb1_dia0_9267.trc

Trace file /u01/app/oracle/diag/rdbms/testdb/testdb1/trace/testdb1_dia0_9267.trc

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

Incident 1248083 created, dump file: /u01/app/oracle/diag/rdbms/testdb/testdb1/incident/incdir_1248083/testdb1_dia0_9267_i1248083.trc

ORA-32701: Possible hangs up to hang ID=4 detected

Incident 1248084 created, dump file: /u01/app/oracle/diag/rdbms/testdb/testdb1/incident/incdir_1248084/testdb1_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/testdb/testdb2/trace/testdb2_dia0_7404.trc (incident=1008107):

ORA-32701: Possible hangs up to hang ID=4 detected

Incident details in: /u01/app/oracle/diag/rdbms/testdb/testdb2/incident/incdir_1008107/testdb2_dia0_7404_i1008107.trc

DIA0 terminating blocker (ospid: 180727 sid: 5190 ser#: 42237) of hang with ID = 4

[oracle@testdb2 trace]$ more /u01/app/oracle/diag/rdbms/testdb/testdb2/trace/testdb2_dia0_7404.trc

Trace file /u01/app/oracle/diag/rdbms/testdb/testdb2/trace/testdb2_dia0_7404.trc

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

Incident 1008106 created, dump file: /u01/app/oracle/diag/rdbms/testdb/testdb2/incident/incdir_1008106/testdb2_dia0_7404_i1008106.trc

ORA-32701: Possible hangs up to hang ID=4 detected

Incident 1008107 created, dump file: /u01/app/oracle/diag/rdbms/testdb/testdb2/incident/incdir_1008107/testdb2_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');

--立马生效

exec dbms_stats.gather_table_stats(ownname => 'SYS',tabname => 'X$KEWRATTRNEW',no_invalidate => FALSE);

exec dbms_stats.gather_table_stats(ownname => 'SYS',tabname => 'X$KEWRSQLIDTAB',no_invalidate => FALSE);

---定时任务

# flush shared_pool 每个月执行一次

33 02 15 * * /bin/sh /home/oracle/flush_shared_pool/flush_shared_pool.sh &> /dev/null

[oracle@testdb2 ~]$ 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 <

set timing on;

@/home/oracle/flush_shared_pool/flush_shared_pool.sql

EOF

[oracle@testdb2 ~]$ cat /home/oracle/flush_shared_pool/flush_shared_pool.sql

alter system flush shared_pool;

---还有可能是死锁引起的故障

1.业务查询程序死锁问题

2.执行刷新shared_pool--两个节点都需要执行

EXEC DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;

EXEC DBMS_STATS.GATHER_SCHEMA_STATS ('SYS');

alter system flush shared_pool;

--查询2个节点基表信息

select count(*) from x$ksmsp;

exec dbms_stats.gather_table_stats(ownname => 'SYS',tabname => 'X$KEWRATTRNEW',no_invalidate => FALSE);

exec dbms_stats.gather_table_stats(ownname => 'SYS',tabname => 'X$KEWRSQLIDTAB',no_invalidate => FALSE);

--绝招

alter system set "_awr_disabled_flush_tables" = 'wrh$_sql_bind_metadata';

标签:testdb1,11G,testdb2,stats,RAC,32701,oracle,shared,pool

来源: https://www.cnblogs.com/daizhengyang/p/13396709.html

oracle 11203 ora32701,11G RAC ORA-32701 参考学习相关推荐

  1. oracle之 安装 11G RAC 报 NTP failed

    问题描述: 使用 NTP 同步集群节点时间,安装 11G RAC 报 NTP 过不去. 解决过程: -- 查看 /etc/sysconfig/ntpd 文件配置 root@hbdw1:/root$ca ...

  2. Oracle性能误区--MTS,RAC,分区,并行查询

    Oracle性能误区--MTS,RAC,分区,并行查询 学习一项新的东西前需要理解其目的,下面这篇文章侧面介绍了ORACLE中RAC等4个组件的优缺点,以供日后参考.下面为文章全文: 为了提高性能,我 ...

  3. [转帖]Oracle 11G RAC For Windows 2008 R2部署手册

    Oracle 11G RAC For Windows 2008 R2部署手册(亲测,成功实施多次) https://www.cnblogs.com/yhfssp/p/7821593.html 总体规划 ...

  4. Oracle 11g RAC 修改服务器各类ip地址【转载】

    此文转载自"架构君" ,地址:https://javajgs.com/archives/72358 此文说明较为详细,所以留作参考,详细内容如下. Oracle 11g RAC 修 ...

  5. Oracle 11g RAC CRS-4535/ORA-15077

    分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow 也欢迎大家转载本篇文章.分享知识,造福人民,实现我们中华民族伟大复兴! 新安装了 ...

  6. VMware下Oracle 11g RAC环境搭建

    主机操作系统:windows 10  虚拟机VMware12:两台Oracle Linux R6 U3 x86_64  Oracle Database software: Oracle11gR2  C ...

  7. oracle 11g rac adg 搭建实施

    oracle 11g rac adg 搭建实施 一.环境说明 1.基础环境 二.ADG配置 1.配置域名解析文件 2.主库开启归档.开启附加日志 3.主库配置归档删除策略 4.主库配置 Standby ...

  8. oracle 11g rac to rac adg 搭建

    oracle 11g rac to rac adg 搭建实施 一.环境说明 1.基础环境 二.ADG配置 1.配置域名解析文件 2.主库开启归档.开启附加日志 3.主库配置归档删除策略 4.主库配置 ...

  9. Oracle 11g RAC搭建(VMware环境)

    Oracle 11g RAC搭建(VMware环境) Oracle 11g RAC搭建(VMware环境) 安装环境与网络规划 安装环境 网络规划 环境配置 1. 通过SecureCRT建立命令行连接 ...

最新文章

  1. 要不要读博?机器学习博五学生和强化学习博士展开了一场battle
  2. a*算法流程图_学好流程控制结构轻松应对高考数学程序算法题
  3. Windows共享Linux打印机,linux – 如何为cups客户端构建windows共享打印机的url
  4. linux 上plsql命令_在 Linux 上压缩文件:zip 命令的各种变体及用法 | Linux 中国
  5. java二进制 字节数组 字符 十六进制 BCD编码转换
  6. 河南科技学院计算机专业是几本,河南科技学院是几本
  7. 我的数据分析入门整理(一)
  8. 不同类别游戏音效的特点
  9. 二维平面中二维向量的叉乘 得到的向量,x、y方向上的分量必定为0
  10. 排序数据图-R/python
  11. 你应该知道的八款国产操作系统
  12. 推荐几个值得关注的微信公众号
  13. CVPR 2022 | 百变发型!中科大/微软/港城大提出HairCLIP:基于文本和参考图像的头发编辑方法...
  14. 视频转图像序列工具FreeVideoToJPGConverter(5.0.101.201版)下载安装及使用(Windows)
  15. SeeDAO专访:11 个月 4 次低谷,一个 DAO 如何从停滞中重生?
  16. 【深度学习基础知识 - 28】三维重建中的点云、体素、mesh
  17. 华硕uefi不识别linux安装u盘启动,华硕主板uefi bios u盘启动不了怎么办?
  18. 数据库基础知识(二)数据库分表技术
  19. 使用BRVAH遇:ViewHolder views must not be attached when created. Ensure that you are not passing 'true'
  20. 适配动态 | 3月份巨杉数据库与6款产品完成互认证

热门文章

  1. python饼状图教程_Python数据可视化:饼状图的实例讲解
  2. android jpush json,发送了正确的JPush json却报1002
  3. 话筒好坏测试软件,如何简单地判断麦克风的质量好坏?
  4. java表达式1 29的计算结果是,java表达式陷阱 - Funcy1122的个人空间 - OSCHINA - 中文开源技术交流社区...
  5. 微信限量纪念版code封面来啦,速看领取方式
  6. vue学习路线图,学习vue就是那么清晰。
  7. 购买阿里云ECS服务器忘记终端管理密码或者没有设置
  8. linux数据包注释,关于 linux中TCP数据包(SKB)序列号的小笔记
  9. sass 基础——回顾
  10. 移动端页面字体在微信被放大,导致排版错乱