等待事件:wait for unread message on broadcast channel

某客户在使用expdp导出数据时遇到wait for unread message on broadcast channel等待事件,查找mos文档

WAITEVENT: "wait for unread message on broadcast channel" Reference Note (文档 ID 170464.1)

The Oracle process is waiting for a message on a broadcast channel. This is normally an idle wait - the process is waiting for an AQ message on a subscribed queue.

This event is classed as an "idle" wait so should be ignored when looking at systemwide timings. See <<61998.1>> for more information about "IDLE" waits.

该等待事件是由于oracle进程在请求message时出现等待,该等待是空闲(idle)等待,并且可以忽略
测试过程:
一、不使用并行
1、查询表的行数
JZH@jzh>select count(*) from t;

  COUNT(*)
----------
   9202528

JZH@jzh>quit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
2、使用expdp导出
[oracle@jzh5 ~]$ expdp jzh/jzh directory=dmp dumpfile=jzh.dmp logfile=jzh.log

Export: Release 11.2.0.3.0 - Production on Wed Jun 24 04:25:50 2015

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "JZH"."SYS_EXPORT_SCHEMA_01":  jzh/******** directory=dmp dumpfile=jzh.dmp logfile=jzh.log 
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 1.063 GB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "JZH"."T"                                   888.5 MB 9202528 rows
. . exported "JZH"."TEST1"                               46.45 MB 4096000 rows
. . exported "JZH"."TEST"                                122.3 KB   10000 rows
. . exported "JZH"."JZH1"                                5.460 KB       4 rows
. . exported "JZH"."TEST2"                               5.007 KB       1 rows
Master table "JZH"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for JZH.SYS_EXPORT_SCHEMA_01 is:
  /home/oracle/jzh.dmp
Job "JZH"."SYS_EXPORT_SCHEMA_01" successfully completed at 04:28:12

3、查询等待事件
SYS@jzh>select sid from v$session where username='JZH';

      SID
----------
        35
        42
        44
SYS@jzh>select event from v$session_wait where sid in (35,42,44);
EVENT
--------------------------------------------------
direct path read
wait for unread message on broadcast channel
wait for unread message on broadcast channel

二、使用并行,dumpfile与paralle一致
1、使用expdp导出
[oracle@jzh5 ~]$ expdp jzh/jzh directory=dmp dumpfile=jzh_%u.dmp logfile=jzh.log parallel=2
Export: Release 11.2.0.3.0 - Production on Wed Jun 24 06:04:28 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "JZH"."SYS_EXPORT_SCHEMA_01":  jzh/******** directory=dmp dumpfile=jzh_%u.dmp logfile=jzh.log parallel=2 
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 1.063 GB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "JZH"."TEST1"                               46.45 MB 4096000 rows
. . exported "JZH"."TEST"                                122.3 KB   10000 rows
. . exported "JZH"."JZH1"                                5.460 KB       4 rows
. . exported "JZH"."TEST2"                               5.007 KB       1 rows
. . exported "JZH"."T"                                   888.5 MB 9202528 rows
Master table "JZH"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for JZH.SYS_EXPORT_SCHEMA_01 is:
  /home/oracle/jzh_01.dmp
  /home/oracle/jzh_02.dmp
Job "JZH"."SYS_EXPORT_SCHEMA_01" successfully completed at 06:06:10
2、查询等待事件
SYS@jzh>select sid from v$session where username='JZH';
       SID
----------
        17
        27
        45
        50
SYS@jzh>select event from v$session_wait where sid in (17,27,45,50);
EVENT
--------------------------------------------------
direct path read
wait for unread message on broadcast channel
wait for unread message on broadcast channel
wait for unread message on broadcast channel

三、使用并行,parallel与dumpfile不一致
1、使用expdp导出
[oracle@jzh5 ~]$ expdp jzh/jzh directory=dmp dumpfile=jzh.dmp logfile=jzh.log parallel=2

Export: Release 11.2.0.3.0 - Production on Wed Jun 24 06:09:06 2015

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "JZH"."SYS_EXPORT_SCHEMA_01":  jzh/******** directory=dmp dumpfile=jzh.dmp logfile=jzh.log parallel=2 
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 1.063 GB
Processing object type SCHEMA_EXPORT/USER
. . exported "JZH"."T"                                   888.5 MB 9202528 rows
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "JZH"."TEST1"                               46.45 MB 4096000 rows
. . exported "JZH"."TEST"                                122.3 KB   10000 rows
. . exported "JZH"."JZH1"                                5.460 KB       4 rows
. . exported "JZH"."TEST2"                               5.007 KB       1 rows
Master table "JZH"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for JZH.SYS_EXPORT_SCHEMA_01 is:
  /home/oracle/jzh.dmp
Job "JZH"."SYS_EXPORT_SCHEMA_01" successfully completed at 06:11:12
2、查询等待事件
SYS@jzh>select sid from v$session where username='JZH';

       SID
----------
        40
        42
        45
        50

SYS@jzh>select event from v$session_wait where sid in (40,42,45,50);

EVENT
--------------------------------------------------
direct path read
wait for unread message on broadcast channel
wait for unread message on broadcast channel
wait for unread message on broadcast channel

总结:1、使用expdp/impdp是尽量少用parallel,不但影响性能,而且会遭遇bug
       2、如果使用parallel,parallel与dumpfile数最好一致。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10271187/viewspace-1710678/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10271187/viewspace-1710678/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在 Oracle 数据库中,impdp 是一个用于导入数据的实用程序。当你使用 impdp 导入数据时,可能会遇到 "wait for unread message on broadcast channel" 的等待问题。这种问题通常发生在使用网络链接方式时,因为在网络链接模式下,不同的进程必须协调以确保数据的一致性。 当 impdp 程序需要等待其他进程上的数据更改时,它会使用 "wait for unread message on broadcast channel" 命令来等待其他进程上的广播消息。如果等待时间很长,可能是由于以下原因: 1. 网络延迟。如果网络延迟很高,那么 impdp 程序等待其他进程上的广播消息的时间就会变长。 2. 数据库负载过高。如果其他进程正在同时执行大量的数据更改操作,那么 impdp 程序需要等待的广播消息数量就会增加。 3. 硬件资源不足。如果进程所在的服务器硬件资源不足,那么它们就不能及时处理广播消息,从而导致等待时间变长。 为了解决 impdp 等待 "wait for unread message on broadcast channel" 的问题,你可以尝试以下措施: 1. 优化网络连接。确保网络带宽和连接稳定,可以缩短等待时间。 2. 优化数据库性能。检查数据库的负载和性能瓶颈,如果需要可以进行优化。 3. 增加硬件资源。如果硬件资源不足,可以考虑增加 CPU、内存、硬盘等资源。 总之,"wait for unread message on broadcast channel" 问题通常是由于网络、数据库性能或硬件资源不足引起的。通过优化这些方面,可以缩短等待时间,提高 impdp 导入数据的效率。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值