码迷,mamicode.com
首页 > 数据库 > 详细

oracle之报错:ORA-00054: 资源正忙,要求指定 NOWAIT

时间:2014-05-15 16:33:54      阅读:332      评论:0      收藏:0      [点我收藏+]

标签:c   strong   a   name   os   table   

SQL> conn scott/tiger@vm_database
Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.6.0
Connected as scott

。。。。。。

SQL> drop table student2;

drop table student2

ORA-00054: 资源正忙, 但指定以 NOWAIT 方式获取资源, 或者超时失效
=========================================================

解决方法如下:

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

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 ‘142,38‘;

System altered

SQL> conn scott/tiger@vm_database
Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.6.0
Connected as scott

SQL> drop table student2;

Table dropped

 

oracle之报错:ORA-00054: 资源正忙,要求指定 NOWAIT,布布扣,bubuko.com

oracle之报错:ORA-00054: 资源正忙,要求指定 NOWAIT

标签:c   strong   a   name   os   table   

原文地址:http://www.cnblogs.com/tina-smile/p/3726567.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!