打开sql plus
select session_id from v$locked_object;查询出oracle锁定的会话ID
SELECT sid, serial#, username, osuser FROM v$session where sid = 1; 查询出当前会话数的信息
ALTER SYSTEM KILL SESSION '200,2141'; 杀掉当前会话
注:'200,2141'是:SID和SERIAL字段进行拼接的
打开sql plus
select session_id from v$locked_object;查询出oracle锁定的会话ID
SELECT sid, serial#, username, osuser FROM v$session where sid = 1; 查询出当前会话数的信息