DFS lock handle in RAC

RAC环境中非常频繁的使用序列(sequence)。则'DFS lock handle'等待事件经常会出现。

通常的办法是增大序列缓存,且不使用排序选项即NOORDER。

  • 创建序列时 默认的cache是20, 非排序NOORDER.

通过如下语句更新序列缓存:

  • alter sequence SEQ_name  cache 200;

 

 

RAC and sequences [ID 853652.1]中的一段话:

 

When caching + ordering is used and RAC is enabled (cluster_database = true),
then the session wanting to get the NEXTVAL of a sequence need to get
an exclusive instance SV lock before inserting or updating the sequence values
in the the shared pool. When multiple sessions want the nextval of the same sequence,
then some sessions will wait on 'DFS lock handle' waitevent with id1 equal to
the sequence number.

 

参考文档:
http://twit88.com/blog/2009/08/28/oracle-performance-dfs-lock-handle-and-oracle-sequence/

 

2011-03-03

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值