Internal Implementation of DML Oracle operations

Source: Internet
Author: User
DML is implemented internally to operate Oracle in the following order:

DML is implemented internally to operate Oracle in the following order:

Perform Oracle operations with DML in the following internal order:
1. The corresponding transaction is allocated a rollback segment (undo segment ).
2. After a rollback segment is allocated, create the transaction table slot (transaction table slot) on the rollback segment header ).
3. After the transaction table is created, TXID (TransactionID) is generated, and then TXID is allocated to the current transaction. This value points to the exact location of the transaction table that exists in the rollback segment of the transaction.
4. The data block of the transaction object is loaded into the high-speed buffer, and transaction entries are registered on the ITL (Intersted transaction list) block header.
If there is no required space on the itl, it will wait for enq: TX-allocate ITL entry.
5. Store the modification information of the block to be modified to PGA. The storage method is change vector. Then, the process copies the change vector in PGA to the redo record to the redo buffer.
6. Record the previous image information to the Undo block, modify the data block, and change the modified data block to a dirty state. In addition, the CR block of the data block to be modified is created in the high-speed buffer.
7. Execute commit and allocate SCN to the transaction. commit information is stored in the redo buffer.
8. The transaction table of the rollback segment header stores information that has been successfully submitted and ends possession of all resources including the TX lock.
9. Redo buffer content is recorded in the redo log file.
The following describes the process through dump:

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.