打开sql plus
select session_id from v$locked_object;查询出oracle锁定的会话ID
SELECT sid, serial#, username, osuser FROM v$session where sid = 1; 查询出当前会话数的信息