Oracle COMMIT statement processing sequence

Source: Internet
Author: User

The Oracle COMMIT statement is expected to help you understand it. The following describes how to process the Oracle COMMIT statement.

Oracle COMMIT statement processing sequence
When a transaction is committed, Oracle assigns a unique sequence Number SCN (System Change Number) to the transaction. The database is always restored Based on the SCN number. The SCN number is recorded in the control file, data file, block header, and redo log file.

1. Oracle COMMIT statement processing steps:

Oracle submits transactions in the following cases:

L issue a COMMIT statement.

L when executing DDL statements.

L when leaving Oracle.

The order in which Oracle processes COMMIT is:

1) The server generates an SCN for each COMMIT. Make changes permanent.

2) The LGWR process writes the log buffer data with SCN to the redo log file.

3) The server releases table-level and row-level locks.

4) The user is prompted that the COMMIT is complete.

5) The server has completed the transaction.

The order in which Oracle processes ROLLBACK is:

Perform rollback when the following conditions occur:

L issue the ROLLBACK command.

L the server process is terminated unexpectedly.

L The session is terminated by the DBA.

ROLLBACK is used to undo database operations by performing the following steps:

1) the server process is not changed.

2) The server releases table-level and row-level locks.

3) The server has completed the transaction.
 

Complete Oracle File System Parsing

ORACLE system table and data dictionary View

In-depth analysis of Oracle ERP system module

Detailed explanation of four categories of Oracle index Scanning

Implementation of Oracle's fixed number of records

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.