现在的位置: 首页 > 综合 > 正文

ORA-00054:resource busy and acquire with nowait specified

2014年09月28日 ⁄ 综合 ⁄ 共 409字 ⁄ 字号 评论关闭

1.

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;

 

2.

SELECT   sql_text
    FROM v$session a, v$sqltext_with_newlines b
   WHERE DECODE (a.sql_hash_value, 0, prev_hash_value, sql_hash_value) =
                                                                  b.hash_value
     AND a.SID = &sid
ORDER BY piece;

 

3.ALTER SYSTEM KILL SESSION 'SID, serial#';

抱歉!评论已关闭.