ORA-00054: Resource busy, requirement to specify nowai

Source: Internet
Author: User

The problem is as follows:

SQL> sqlplus

.....

SQL> conn sys/sys@192.168.15.8: 1521/orcl as sysdba
Connected to Oracle Database 11g Enterprise Edition Release
11.1.0.6.0

SQL> drop table student2;

Drop table student2

ORA-00054:
The resource is busy, but it is specified to get the resource in Nowait mode, or the timeout expires.
========================================================== ========================

The solution is as follows:

========================================================== ========================

SQL> select session_id from
V $ locked_object;

Session_id
----------

142

SQL> select Sid, serial #, username, osuser from
V $ session where Sid = 142;


Sid serial #
Username
Osuser
--------------------------------------------------
------------------------------

142
38
Scott
Lilwen

SQL> alter system kill session '2017, 38 ';

System altered

SQL> conn sys/sys@192.168.15.8: 1521/orcl as sysdba
Connected to Oracle Database 11g Enterprise Edition Release
11.1.0.6.0
Connected as Scott

SQL> drop table student2;

Table dropped

 

===================== Reference Materials ================================== ==============

Http://blog.sina.com.cn/s/blog_54eeb5d90100ntgc.html

 

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.