Wait event on the segment enq: HW

Source: Internet
Author: User
As we all know, the Oracle high water level line marks that all blocks below this line are in Oracle format. In other words, all blocks below this line are used by Oracle. Usually

As we all know, the Oracle high water level line marks that all blocks below this line are in Oracle format. In other words, all blocks below this line are used by Oracle. Usually

The HW lock is provided to prevent multiple processes from simultaneously modifying HWM. The process to move HWM must obtain the HW lock. If a contention occurs during the acquisition of the HW lock, the system waits for the enq: HW-contention event. HW lock contention is mostly caused by a large number of insert operations.

As we all know, the Oracle high water level line marks that all blocks below this line are in Oracle format. In other words, all blocks below this line are used by Oracle. Generally, when the insert operation is executed, Oracle will push forward the high waterline when the blocks below the high waterline are insufficient. Furthermore, when multiple processes perform the insert operation at the same time, it is easy to cause high water level contention, mainly manifested as enq: HW-contention.

How to find the event: 'enq: HW-contention 'hotspot object:

Check v $ session_wait. The following wait events should be displayed:

7 rows selected use P3 to convert DBMS_UTILITY to obtain the files and blocks in which contention occurs. Then, use file # And block # To locate the object:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.