oracle--Control Transactions

Source: Internet
Author: User

One, roll back to the retention point
    • Use the savepoint statement to create a savepoint in the current transaction.
    • Use the ROLLBACK to savepoint statement to roll back to the saved point that was created.
Second, the data state before committing or rolling back
    • The state of the data before the change can be restored.
    • Other users cannot see changes made by the current user until the current user ends the transaction.
    • The rows involved in the DML statement are locked and cannot be manipulated by other users.
Third, the status of the data after submission
    • Changes to the data have been saved in the database.
    • The data before the change has been lost.
    • All users can see the results.
    • The lock is released and other users can manipulate the data involved.
    • All save points are freed.
Iv. Examples of transactions
    1. Scott user updates the Employees table without committing (commit)
    2. Then the system user wants to query for updates to get the Employees table
Select *  from for update; --but the database is not responding at this time
    • You must wait until the Scott user commits the Employees table, and this SQL statement executes.

oracle--Control Transactions

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.