Ora-00054:resource busy and acquire with NOWAIT specified or timeout expired in Oracle

Source: Internet
Author: User

The following error occurs when inserting, updating, deleting data from a table, or adding a table's primary key or index to a database user:

Ora-00054:resource busy and acquire with NOWAIT specified or timeout expired

This is because a transaction is in progress or the transaction has been locked, resulting in an unsuccessful

1) with DBA Authority user queries What locks are in the database

Select T2.username,t2.sid,t2.serial#,t2.logon_time from V$locked_object t1,v$session T2 where T1.session_id=t2.sid Order BY T2.logon_time;


depending on the query results, you can see the user Ad,sid to 5185,serial# for 11357


2) According to SID queries specific SQL statements, and if SQL is not important, you can kill them directly .

Select Sql_text from v$session a,v$sqltext_with_newlines b where DECODE (A.sql_hash_value, 0, Prev_hash_value, sql_hash_ Value) =b.hash_value and a.sid=&sid order by piece;


3) Kill the transaction

Alter system kill session ' 5185,11357;

4) Then perform the actions you need to perform

Ora-00054:resource busy and acquire with NOWAIT specified or timeout expired in Oracle

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.