Resolve Oracle Database Ora-00054:resource busy and acquire with NOWAIT specified error

Source: Internet
Author: User

Resolve Oracle Database Ora-00054:resource busy and acquire with NOWAIT specified error

When I use the PL/SQL Developer client call stored procedure to find a halfway card machine and then force termination of PL/SQL developer, Oracle has been locked out of the lock-related error.
It was analyzed that a pessimistic blockade was caused when a DDL statement was manipulated on a table when the stored procedure was called. After the client card machine, Oracle has not released the lock and has never completed the release resulting in an error.

This session needs to be forced to kill:
1. Querying objects that are currently locked

Select T2.username, T2.sid, t2.serial#, T2.logon_time        from v$locked_object T1, v$session T2      where = T2.sid      Order  by T2.logon_time

2. Query session Information
Sql> Select v.sid,v.serial#,v.username,v.action from V$session v WHERE v.sid in (SELECT session_id from V$locked_object WHERE oracle_username= ' ATHENA ') and v.machine= ' nbcb\kjb-080701n ';

3. Kill a Conversation
Grammar:
ALTER SYSTEM KILL SESSION ' sid,serial# ';
For example:
ALTER SYSTEM KILL SESSION ' 436,62365 ';

After killing the query, found that the SID corresponding data is gone, so you can! Not really. Only restart the database

Resolve Oracle Database Ora-00054:resource busy and acquire with NOWAIT specified error

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.