Transactional processing in Oracle

Source: Internet
Author: User

Transactions are used to guarantee data consistency, which consists of a set of related DML statements that either all succeed or fail altogether.

Transactions and Locks

When performing transactional operations (DML statements), Oracle locks on the table to prevent other users from changing the structure of the table, which is very important to our users.

Commit a transaction

When the commit statement can commit a transaction, when the commit statement is executed, the transaction changes, the end of the transaction, the deletion of the savepoint, the release of the lock, and when the commit statement ends the transaction, the other session will be able to view the new data after the transaction has changed.

Fallback transaction

Before introducing a fallback transaction, let's introduce the concept and function of the savepoint (SavePoint), which is a point in the transaction that cancels a partial transaction and automatically deletes all the savepoint-defined save points when the transaction is ended. When rollback is executed, the specified point can be rolled back by specifying a savepoint.

Transactional processing in Oracle

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.