查询锁表语句 select * from v$sessions where trx_id in (select trx_id from V$LOCK) and user_name = '用户名称' order by create_time desc; 关闭会话 sp_close_session(上面语句查询到的sess_id);