Actual execution process of Oracle delete

Source: Internet
Author: User

Today, we will mainly introduce the actual execution process of Oracle delete. First, we will explain the detailed operation procedures of Oracle Delete and Commit. The following describes the specific content, I hope this will help you in your future studies.

1) Delete) Process

Oracle read Block (data Block) to Buffer Cache Buffer (if the Block does not exist in Buffer );

Record the details of Oracle Delete operations in Redo Log Buffer;

Create an Undo rollback entry in the transaction table of the corresponding rollback segment header;

Store the image before the record is created in the Undo Block rollback Block;

Delete records on the corresponding data blocks in the Buffer Cache, and mark the corresponding data blocks as Dirty ).

2) Commit Process

Oracle generates an SCN;

Mark the transaction status as Commited in the rollback segment transaction table;

LGWR Log read/write process) Flush Log Buffer to Log files;

If the data Block is still in the Buffer Cache, the SCN will be recorded on the Block Header, which is called fast commit;

If the Dirty Block has been written back to the disk, the next process accessing the Block will obtain the state of the transaction from the rollback segment and confirm that the transaction is committed. Then the process obtains the committed SCN and writes it back to the Block Header, which is called the delay Block clearing.

The above content describes the process analysis of Oracle Delete and Commit operations, hoping to help you in this regard.

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.