metalink关于latch free的介绍.doc

  1. 1、本文档共40页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
metalink关于latch free的介绍

文档 ID: 注释:34576.1 主题: WAITEVENT: latch free Reference Note 类型: REFERENCE 状态: PUBLISHED 内容类型: TEXT/X-HTML 创建日期: 27-FEB-1996 上次修订日期: 11-NOV-2002 latch free Reference Note This is a reference note for the wait event latch free which includes the following subsections: Brief definition Individual wait details (eg: For waits seen in View:V$SESSION_WAIT) Systemwide wait details (eg: For waits seen in View:V$SYSTEM_EVENT) Reducing waits / wait times See Note:61998.1 for an introduction to Wait Events. Definition: Versions:7.0 - 9.2 Documentation: 9.0 Latches are like short duration locks that protect critical bits of code. This wait indicates that the process is waiting for a latch that is currently busy (held by another process). Individual Waits: ?Parameters: P1 = Latch address P2 = Latch number P3 = Tries Latch address The address of the latch that the process is waiting for. The hexadecimal value of P1 (P1RAW) can be used to determine which latch is waited for thus: SELECT name, Child ||child#, gets, misses, sleeps FROM v$latch_children WHERE addr=P1RAW UNION SELECT name, null, gets, misses, sleeps FROM v$latch WHERE addr=P1RAW ; This will show Child N in the second column if the latch is a child latch. Latch number This is the latch number that indexes the V$LATCHNAME view: SELECT * FROM v$latchname WHERE latch# = P2 ; Note that the latch number for a given set of latches can vary between releases / platforms so it is best to avoid hard coding P2 or LATCH# in SQL scripts. Tries This is basically a counter that counts the number of times we tried to get the latch (slow with spinning) and the process had to sleep. See the Wait Time notes below. ?Wait Time: When a session waits on latch free it effectively sleeps for a short time then re-tests the latch to see if it is free . If it still cannot be acquired then P3 is incremented and the session waits again. The wait time increases exponentially and does not in

文档评论(0)

xcs88858 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档