Oracle Plsql Troubleshooting When performing update or delete

Source: Internet
Author: User

Oracle Plsql has encountered a plsql when executing update or delete, or is causing the code to execute SQL when it dies.

When encountering this problem in development, the SQL was originally copied out, executed in Plsql, the SQL itself is spelled correctly, but there is the case that Plsql is dead,

In the code, where the execution of the SQL breaks the point debug, the discovery executes SQL, and still no response. After searching the information on the Internet, I guess the cause of this situation is

 there may be no commit,oracle to lock the record when Plsql developer executes the update.
Can be resolved by the following methods:search for locked records firstSQL codeSELECT 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;  and then delete the locked record .SQL code

ALTER System KILL Session ' sid,serial# ';

Through the above SQL, the problem finally solved!

Summed up the hope for everyone to develop a help!

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.