ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

Streams AQ: qmn coordinator waiting for slave to start等待事件

2021-04-10 16:52:19  阅读:220  来源: 互联网

标签:aq processes slave AQ start waiting tm qmn



         Streams AQ: qmn coordinator waiting for slave to start  等待事件很少见到,今天在查看一个客户的AWR报告中发现了这个等待事件,AWR报告的TOP如下:  
                        

Event

Waits

Time(s)

Avg wait (ms)

% DB time

Wait Class

DB CPU

 

308

 

62.85

 

db file sequential read

92,033

96

1

19.60

User I/O

db file scattered read

44,852

90

2

18.39

User I/O

Streams AQ: qmn coordinator waiting for slave to start

3

16

5269

3.23

Other

gc cr grant 2-way

60,943

11

0

2.27

Cluster

      Streams AQ: qmn coordinator waiting for slave to start等待事件等待的次数非常少,在一个小时的AWR报告中就出现了3次,但是每次的等待时间却非常长,平均达5秒以上。在10g版本中  ,QMON(  Queue Monitor Processes  )  自动协调  slave经常的分配,  aq_tm_processes无需在手动设置  ,slave进程会在需要的时候自动分配。  
    查看了用户的    aq_tm_processes参数为0,数据库版本为10.2.0.5(oracle是不建议将aq_tm_processes设置为0的),那说明此时oracle在自动分配slave进程时时存在问题的,效率过低,所以如果出现    Streams AQ: qmn coordinator waiting for slave to start等待事件,还是建议  将  aq_tm_processes  参数设置为非零值,让oracle预先分配几个slave进程,  该参数的取值范围是0~10,或者取消  aq_tm_processes  参数的设置,让oracle自动分配  。  
    可以通过下面的代码查看  QMON自动调整是否启用,同时    aq_tm_processes参数是否被设置为0:

  1. connect / as sysdba

  2. set serveroutput on

  3. declare
  4. mycheck number;
  5. begin
  6. select 1 into mycheck from v$parameter where name = 'aq_tm_processes' and value = '0' and (ismodified != 'FALSE' OR isdefault = 'FALSE');
  7. if mycheck = 1 then
  8. dbms_output.put_line('The parameter ''aq_tm_processes'' is explicitly set to 0!');
  9. end if;
  10. exception when no_data_found then
  11. dbms_output.put_line('The parameter ''aq_tm_processes'' is not explicitly set to 0.');
  12. end;
  13. /

     取消  aq_tm_processes参数的设置:

  1. connect / as sysdba
  2. alter system reset aq_tm_processes scope=spfile sid=\'*\';

    补充:从11.2.0.3以后  的版本中,  aq_tm_processes默认值又调整为1.    


标签:aq,processes,slave,AQ,start,waiting,tm,qmn
来源: https://blog.51cto.com/lhrbest/2697858

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有