Oracle Lock Wait Analysis processing

Source: Internet
Author: User

1. The function and influence of the lock

Locks are one of the core mechanisms for Oracle to manage concurrent access to shared database resources and to prevent "mutual interference" between concurrent database transactions.

When the application system is complex and the volume of traffic is large, the lock wait phenomenon before the application process often occurs, which affects the normal operation of the system. Quickly locate the blocking process and analyze the blocking reason when the database has a lock wait.

2. Positioning lock Type

There are several types of database locks, each of which has a different impact on the business, and can be grouped into the following three categories:

DML lock

DDL lock

Internal lock and Latch lock

The following is an analysis of the positioning of each of the different types of locks, with various locking processes as follows:

2.1, DML Lock

Referencing a diagram in DSI405

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.