客户库,AWR报告采样间隔8小时,ARCH wait on SENDREQ等待事件平均等待时间较长,约3秒。


恰巧告警日志中提示无法分配日志,虽然archive_lag_target参数设置较小(为900),但是数据库有5个重做日志组,按理说应该不会出现无法分配日志组的情况出现。由于这个等待事件的出现,故猜想 主备库之间的网络可能较差,导致主库的归档无法及时归档到备库上,从而引发cannot allocate new log。
Tue Jul 19 22:19:33 2011 Thread 1 cannot allocate new log, sequence 26887 Private strand flush not complete
从Metalink(MOS)上可查到如下关于ARCH wait on SENDREQ等待事件的信息
《Data Guard Wait Events》
《Troubleshooting 9i Data Guard Network Issues》
The ‘ARCH wait on SENDREQ’ wait event increases during a log switch period. This event’s average wait time also increases as the network round trip time (RTT) increases. If this wait event is in the top 5, then it may be indicative of a saturated network or a poorly configured network. Also, make sure that enough redo log groups are configured so that any delay in remote archiving does not result in a hung database due to no available online redo logs.
在log switch阶段会出现ARCH wait on SENDREQ等待事件,如果此事件出现在Top5等待事件中,说明网络满负载或网络配置问题(总之,网络较差)
还有一篇,说是metalink上的,不过没找到原文:
1)It means that there is a slow network between primary and standby database.
2)It also means that there is a chance of slow performance on disk where remote archiving is happening.
Solution:
1.Please get in touch with your network admin and check the network response.
2.If the remote destination is slow and archiver is taking longer to archive to that destination, then the user needs to allocate more redo log groups so that there is a logfile available for a logswitch to switch into, and not wait for the archiver to finish archiving to the destination.
3.One more workaround you can use is to set below parameter in primary site:
_LOG_ARCHIVE_CALLOUT=’LOCAL_FIRST=TRUE’
第三种解决方案提示修改隐含参数:_LOG_ARCHIVE_CALLOUT
_LOG_ARCHIVE_CALLOUT=’LOCAL_FIRST=TRUE’
If the above parameter is set then the ARCH process will begin archiving to the local destination first. Once the redo log has been completely and successfully archived to at least one localdestination, it will then be transmitted to the remote destination. This is the default behavior. beginning with Oracle Database 10g Release 1.
Starting in 9.2.0.7 patchsets, one ARCH process will begin acting as a ‘dedicated’ archiver, handling only local archival duties. It will not perform. remote log shipping or service FAL requests. This is a backport of behavior. from 10gR1 to 9iR2.
我对上文This is the default behavior. beginning with Oracle Database 10g Release 1.表示质疑,因为从我本地11.2.0.1的库来看,此隐含参数默认还是空。
尝试在非生产库上修改此隐含参数做测试:
SQL> set linesize 132 SQL> column name format a30 SQL> column value format a25 SQL> select 2 x.ksppinm name, 3 y.ksppstvl value, 4 y.ksppstdf isdefault, 5 decode(bitand(y.ksppstvf,7),1,’MODIFIED’,4,’SYSTEM_MOD’,’FALSE’) ismod, 6 decode(bitand(y.ksppstvf,2),2,’TRUE’,’FALSE’) isadj 7 from 8 sys.x$ksppi x, 9 sys.x$ksppcv y 10 where 11 x.inst_id = userenv(‘Instance’) and 12 y.inst_id = userenv(‘Instance’) and 13 x.indx = y.indx and 14 x.ksppinm like ‘%_&par%’ 15 order by 16 translate(x.ksppinm, ‘ _’, ‘ ‘) 17 / 输入 par 的值: callout 原值 14: x.ksppinm like ‘%_&par%’ 新值 14: x.ksppinm like ‘%_callout%’
NAME VALUE ISDEFAULT ISMOD ISADJ —————————— ————————- ——— ———- —– _log_archive_callout TRUE FALSE FALSE
SQL> alter system set “_log_archive_callout”=’LOCAL_FIRST=TRUE';
系统已更改。
SQL> set linesize 132 SQL> column name format a30 SQL> column value format a25 SQL> select 2 x.ksppinm name, 3 y.ksppstvl value, 4 y.ksppstdf isdefault, 5 decode(bitand(y.ksppstvf,7),1,’MODIFIED’,4,’SYSTEM_MOD’,’FALSE’) ismod, 6 decode(bitand(y.ksppstvf,2),2,’TRUE’,’FALSE’) isadj 7 from 8 sys.x$ksppi x, 9 sys.x$ksppcv y 10 where 11 x.inst_id = userenv(‘Instance’) and 12 y.inst_id = userenv(‘Instance’) and 13 x.indx = y.indx and 14 x.ksppinm like ‘%_&par%’ 15 order by 16 translate(x.ksppinm, ‘ _’, ‘ ‘) 17 / 输入 par 的值: callout 原值 14: x.ksppinm like ‘%_&par%’ 新值 14: x.ksppinm like ‘%_callout%’
NAME VALUE ISDEFAULT ISMOD ISADJ —————————— ————————- ——— ———- —– _log_archive_callout LOCAL_FIRST=TRUE TRUE SYSTEM_MOD FALSE
综上:我认为应该仔细检查一下用户主备库网络情况,检查客户备库磁盘IO。
编辑推荐:
相关推荐
-
雷神推出 MIX PRO II 迷你主机:基于 Ultra 200H,玻璃上盖 + ARGB 灯效
2 月 9 日消息,雷神 (THUNDEROBOT) 现已宣布推出基于英
-
制造商 Musnap 推出彩色墨水屏电纸书 Ocean C:支持手写笔、第三方安卓应用
2 月 10 日消息,制造商 Musnap 现已在海外推出一款 Oce
热文推荐
- ARCH wait on SENDREQ等待事件
ARCH wait on SENDREQ等待事件
26-03-03 - Oracle EBS中分类账和法人实体 的关系(有sql语句实例)
Oracle EBS中分类账和法人实体 的关系(有sql语句实例)
26-03-03 - 《DNS攻击防范科普系列1》—你的DNS服务器真的安全么?
《DNS攻击防范科普系列1》—你的DNS服务器真的安全么?
26-03-03 - 微信经常延迟,收不到消息怎么办?赶紧自查这3个功能是不是开启
微信经常延迟,收不到消息怎么办?赶紧自查这3个功能是不是开启
26-03-03 - oracle 查询
oracle 查询
26-03-03 - 《DNS攻击防范科普系列3》 -如何保障 DNS 操作安全
《DNS攻击防范科普系列3》 -如何保障 DNS 操作安全
26-03-03 - Oracle数据库SQL注入模拟与恢复
Oracle数据库SQL注入模拟与恢复
26-03-03 - 记一次客户DB CPU短时间内冲高至99%处理
记一次客户DB CPU短时间内冲高至99%处理
26-03-03 - 智能语音,交互入口的新未来
智能语音,交互入口的新未来
26-03-03 - 低效sql语句执行缓慢引起的大量占用服务器的CPU问题处理 (优化心得)
低效sql语句执行缓慢引起的大量占用服务器的CPU问题处理 (优化心得)
26-03-03
