Oracle11g error ORA-00054: the resource is busy, require the specified NOWAIT how to solve ?, Oracle11gnowait

Source: Internet
Author: User

Oracle11g error ORA-00054: the resource is busy, require the specified NOWAIT how to solve ?, Oracle11gnowait

Oracle11g a table can only query, add, delete, modify are not allowed, can not drop, and truncate all fail will report the error ORA-00054: the resource is busy, require the specified NOWAIT

The procedure is as follows:

View the locked table and the session that causes the lock:

Select B. owner, B. object_name, a. session_id, a. locked_mode from v $ locked_object a, dba_objects B

Where B. object_id = a. object_id

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

Select xidusn, object_id, session_id, oracle_username, OS _user_name from v $ locked_object;

Select object_id, object_name from dba_objects where object_id = '2013'

Alter system kill session '25, 1 ';

Select a. spid, B. sid, B. serial #, B. username, B. status from v $ process a, v $ session B where a. addr = B. paddr

In windows cmd.exe cute line orakill oracle_instance spid

After the process is killed, it can truncate and solve the problem.

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.