PL/SQL Developer settings for autocommit transactions

Source: Internet
Author: User


Before updating the table with update on a test machine, there is no commit, and there is no PL/SQL Developer.

The next day, view the table on your own computer and find that the record is not updated

I want to update it with the SQL statement, the execution of more than 10 minutes has not finished.

To re-update manually, prompt:


At this point, the table has been found to be locked, because the previous use of the test machine update but did not commit (COMMIT)!!

DML operations such as Insert,delete,Update,select...for update, and so on, will touch the post-level and row-level locks,

After the DML operation, the table is locked before the commit operation, and other transactions cannot manipulate the table!

Therefore, after the DML operation, remember to add a statement: commit; or click Commit manually.


In addition, PL/SQL developer provides auto-commit settings:

A. Auto-commit after transaction execution: Preferences Windows Types, Tools---SQL window: tick "autocommit SQL" to automate the commit operation.

B. Exit Login Auto-commit: Log off with open transaction, Connection, Tools--Preferences--select "Commit".


PL/SQL Developer settings for autocommit transactions

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.