How To Analyze the Wait Statistic: 'enq: HW - contention' (文件 ID 419348.1)
In this Document
Goal |
Fix |
Applies to:
Oracle Database - Enterprise Edition - Version 10.2.0.1 and laterInformation in this document applies to any platform.
Goal
***Checked for relevance on 02-Aug-2011***
The goal of this article is to explain how to determine which object the 'enq: HW - contention' wait statistic is reported on.
The HW enqueue is used to manage the allocation of space beyond the high water mark of a segment. The high water mark of a segment is the boundary between used and unused space in that segment. If contention is occurring for "enq: HW - contention" it is possible that automatic extension is occuring to allow the extra data to be stored since the High Water Mark has been reached. If this is the case then manual allocation of extents may resolve the issue
Fix
Given the following situation. This information can be retrieved from a statspack, ADDM, ASH report or v$session_wait query:
Event | % Wait Time | P1 Parameter | P1 Value | P2 Parameter | P2 Value | Parameter 3 | P3 Value |
---|---|---|---|---|---|---|---|
enq: HW - contention | 62,81 | name|mode | 1213661190 | table space | 4 | # block | 17005691 |
1. Determine the correct file and block number:
select DBMS_UTILITY.DATA_BLOCK_ADDRESS_FILE(17005691) FILE#,
DBMS_UTILITY.DATA_BLOCK_ADDRESS_BLOCK(17005691) BLOCK#
from dual;
FILE# BLOCK#
---------- ----------
4 228475
2. Determine the object to which this block belongs to
select owner, segment_type, segment_name
from dba_extents
where file_id = 4
and 228475 between block_id and block_id + blocks - 1;
OWNER SEGMENT_TYPE SEGMENT_NAME
--------------- --------------- ------------------------------
SCOTT LOBSEGMENT EMP_DATA_LOB
Additionally, if the lock contention is currrently observed, we can find out the underlying segment using the following query:
select DBMS_UTILITY.DATA_BLOCK_ADDRESS_FILE(ID2) FILE#,
DBMS_UTILITY.DATA_BLOCK_ADDRESS_BLOCK(ID2) BLOCK#
from v$lock
where type = 'HW';
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-773446/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- enq: HW - contentionENQ
- 'enq HW - contention' For Busy LOB Segment (文件 ID 740075.1)ENQ
- 等待事件之enq: HW - contention事件ENQ
- 如何診斷等待事件 enq: HW - contention事件ENQ
- enq: HW - contention 問題的處理ENQ
- 大量insert引起的enq: HW - contention等待ENQ
- enq: HW - contention診斷及解決過程ENQ
- ORACLE 如何診斷高水位爭用(enq: HW – contention)OracleENQ
- [20161208]等待事件enq: HW - contention事件ENQ
- [20140311]等待事件enq HW - contention事件ENQ
- Enq : HW-contention高水位線的擴充套件競爭ENQ套件
- 【MOS】Troubleshooting 'enq: TX - index contention' Waits (文件 ID 873243.1)ENQIndexAI
- Oracle Enqueues Wait Events 三 enq: TX - row lock contentionOracleENQAI
- 【MOS】12c RAC "enq: IV - contention" (文件 ID 2028503.1)ENQ
- Bug 6376915 - HW enqueue contention for ASSM LOB segments (文件 ID 6376915.8)ENQSSM
- enq: US - contentionENQ
- enq: TM - contentionENQ
- enq:TM contentionENQ
- enq: DX - contentionENQ
- enq: TS - contentionENQ
- zt_Oracle enq: TX contention 和 enq: TM contention 等待事件OracleENQ事件
- enq:TX - index contentionENQIndex
- enq: TX - index contentionENQIndex
- enq: TX - row lock contentionENQ
- 關於enq: US – contentionENQ
- enq: WF - contention等待事件ENQ事件
- enq: CF - contention 等待事件ENQ事件
- enq: TX - index contention等待ENQIndex
- enq: TS - contention 等待事件ENQ事件
- enq: SQ - contention" waits in RACENQAI
- 【故障解決】enq: PS - contentionENQ
- enq:TM-contention事件等待ENQ事件
- 消除 enq: DX - contention 等待事件ENQ事件
- 'enq: TX - index contention' Waits in a RAC Environment. [ID 873243.1]ENQIndexAI
- 【恩墨學院】經典故障分析 - ASSM引發的索引爭用與 enq HW -contention 等待事件SSM索引ENQ事件
- Oracle等待事件之enq: TM – contentionOracle事件ENQ
- 等待事件enq: TX - row lock contention事件ENQ
- oracle等待事件之enq: CF – contentionOracle事件ENQ