Solve the problem when oracle executes update

Source: Internet
Author: User


When oracle executes the update statement, the problem is solved. During project development today, in order to test the SQL Execution effect in the project, PLSQL Developer executes the statement. Without commit, the code will continue to be typed, when PLSQL Developer is re-used, it may be due to network reasons. If PLSQL Developer is disconnected from the database and becomes stuck, it is forced to end. After the code is knocked out, the test will be conducted. After the project is executed, there will be no effect and no response. After debugging, I find that jdbc does not respond when executing the SQL statement. I asked Miss Gu to find the reason. Since there is no commit when PLSQL Developer executes update, oracle locks this record. Www.2cto.com can be solved through the following method: first query the lock record SQL code SELECT s. sid, s. serial # FROM v $ locked_object lo, dba_objects ao, v $ session s WHERE ao. object_id = lo. object_id AND lo. session_id = s. sid; then delete the lock record SQL code ALTER system KILL session 'sid, serial #';

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.