Oracle资源正忙,ORA-00054错误处理
一、(查看被锁住的session_id)
select session_id from v$locked_object;
例如找到的结果为192
二、(通过session_id找到serial#)
语法:SELECT sid, serial#, username, osuser FROM v$session where sid = ?;
举例:SELECT sid, serial#, username, osuser FROM v$session where sid = 192;
例如找到的结果为192,89654
三、杀死改锁住的会话
语法:alter system kill session 'sid,serial#';
举例:alter system kill session '192,89654';