1、 查看當(dāng)前被解鎖的對象 示例: 將表aa加鎖 執(zhí)行 select * from aa for update; 方式一:通過SQL查詢 select 'alter system kill session ',''''||trim(t2.sid)||','||trim(t2.serial#)||''';' from v$locked_object t1,v$session t2 where t1.session_id=t2.sid order by t2.logon_time; 執(zhí)行結(jié)果