Oracle lock mechanism

Source: Internet
Author: User

Row Share (RS)
This lock, also called a subshare table lock (SS), indicates then the transaction holding the lock on the table have locked Rows in the table and intends to update them. A row share lock is the least restrictive mode of table lock, offering the highest degree of concurrency for a table.
Row Exclusive Table Lock (RX)
This lock, also called a subexclusive table lock (SX), generally indicates, the transaction holding the lock has Updat Ed table rows or issued SELECT ... For UPDATE. An SX lock allows other transactions to query, insert, UPDATE, delete, or lock rows concurrently in the same table. Therefore, SX locks allow multiple transactions to obtain simultaneous SX and Subshare table locks for the same table.
Share Table Lock (S)
A share table lock held by a transaction allows other transactions to query the table (without using SELECT ... For UPDATE), but updates is allowed only if a single transaction holds the share table lock. Because multiple transactions a share table lock concurrently, holding this lock are not sufficient to ensure A transaction can modify the table.
Share Row Exclusive Table Lock (SRX)
This lock, also called a share-subexclusive table lock (SSX), was more restrictive than a share table lock. Only one transaction at a time can acquire a SSX lock on a given table. An SSX lock held by a transaction allows other transactions to query the table (except for SELECT ... For update) and not to update the table.
Exclusive Table Lock (X)
This lock was the most restrictive, prohibiting and transactions from performing any type of DML statement or placing any Type of lock on the table.

Oracle lock mechanism

Related Article

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.