Detailed Oracle commit usage

Source: Internet
Author: User
Commit Process
  • Before commit
Oracle generates a revocation record in the SGA undo segment buffer. The revocation record contains the old values for updating and deleting table rows.
Oracle generates redo log records in the SGA redo log Buffer
Modify the buffer in the SGA database in Oracle
  • When a commit is submitted
The transaction in the redo record is marked as the unique SCN log of the committed transaction. The program will redo the transaction log information and the transaction SCN, release the Oracle lock from the redo log file written from the redo log buffer to the disk and mark the transaction as completed Commit Parameters  Commit_wait initialization parameter commit_wait = {Nowait | wait | force_wait} Oracle uses the commit method by default as the wait function: controls the write mode of redo logs. Remarks: Nowait applicable scenarios (A, there are a large number of transaction redo, information needs to be written into the redo log; B, to tolerate part of the data loss; C, waiting for lgwr to write can not be tolerated by the application ). Force_wait: Oracle will be applied by default to submit commit_logging initialization parameter commit_logging = {immediat | batch} immediat: lgwr to write redo information to the redo log file immediately batch: The redo information will be buffer, that is, redo logs are not immediately written to the redo log file. Commit usageCommit commit write wait; Commit write Nowait commit write batch; Commit write immediate; wait and Nowait control when redo information is written to redo logsimmediat and batch control how redo information is written to redo logs. Remarks: PL/SQL default batch Nowait

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.