Oracle Autonomy-Autonomous transaction

Source: Internet
Author: User

One use rule: before begin, affirm: PRAGMA autonomous_transaction;

Two-use understanding:Autonomous Transaction is an independent transaction, which is understood autonomous transaction

The key, though called by the main transaction. Let's use an example to deepen your understanding. creates a test table, inserts two records into it, does not commit, declares an autonomous transaction, continues to insert records into the table, and commits the inserted record on the autonomous transaction. We can tell from the outputthat the control of maintransaction and autonomous transaction is independent. Autonomous transaction commits will not be submitted to main transaction, and the rollback of main transaction will not affect autonomous transaction.

Oracle Autonomy-Autonomous transaction

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.