ITPub博客

首页 > Linux操作系统 > Linux操作系统 > resource busy and acquire with NOWAIT specified 解决方法

resource busy and acquire with NOWAIT specified 解决方法

原创 Linux操作系统 作者:terryhyx 时间:2010-09-18 13:42:36 0 删除 编辑
1. 通过dba_objects 查到锁掉的对象的object_id.
     select object_nameobject_id from dba_objects
where object_name like '*****';
2.在v$_locked_object中找到锁掉的session_id
select session_id,object_id from v$locked_object
where object_id=***;
3.在v$_session 找到锁掉的session的sid及serial#
select username,sid,serial# frin v$session
where sid=****;
4.根据SID查找对应的sql
select sql_text from v$session a,v$sql_text_with_newlines b
where DECODE(a.sql_hash_value,0,prev_hash_value,sql_hash_value)=b.hash_value
and a.sid=***;
5.如果确认了sid是sql是不重要的,则kill对应的session即可
alter system kill session 'SID,SERIAL#';
   

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2361091/viewspace-674352/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-03-09

  • 博文量
    9
  • 访问量
    20926