ORACLE操作表时”资源正忙,需指定nowait"的解锁方法
1、 通过此语句查询正在锁定的SESSION_ID:
SELECT SESSION_ID
FROM V$LOCKED_OBJECT,USER_OBJECTS
WHERE V$LOCKED_OBJECT.OBJECT_ID = USER_OBJECTS.OBJECT_ID
2、 通过第一步查询到的SESSION_ID查询SERIAL#
SELECT SERIAL# FROM V$SESSION WHERE SID='SESSION_ID'(此处为上面查询到的'SESSION_ID)
3、根据1,2步查询到的SESSION_ID和SERIAL#执行
ALTER SYSTEM KILL SESSION '48,2476'(48为SESSION_ID的值, 2476为SERIAL#的值)