Oracle错误ORA-00054:resource busy and acquire with NOWAIT specified or timeout expired

如需转载分享,请标明出处,且不用于盈利为目的,谢谢合作!

Oracle错误ORA-00054:resource busy and acquire with NOWAIT specified or timeout expired

问题:ORA-00054:resource busy and acquire with NOWAIT specified or timeout expired
解决:
select l.session_id,o.owner,o.object_name from v$locked_object l,dba_objects o where l.object_id=o.object_id;--查出占用的资源session_id
SELECT sid, serial#, username, oSUSEr, terminal,program ,action, prev_exec_start FROM v$session where sid IN(977,625,1186);--SID,SERIAL# 两个会话
 
 --杀掉占用资源的两个会话
 alter system kill session '977,29';
  alter system kill session '625,99';
         alter system kill session '1186,178';

你可能感兴趣的:(Oracle,oracle)