下面sql分别查询当前oracle锁表操作用户,并进行解锁释放操作
--查看锁表人详情@b@@b@ select a.object_name,c.OSUSER,c.MACHINE,c.PROGRAM,b.session_id,c.serial#,c.program,c.username,c.command,c.machine,c.lockwait @b@from all_objects a,v$locked_object b,v$session c where a.object_id=b.object_id and c.sid=b.session_id;@b@@b@--解锁@b@alter system kill session'session_id,serial#';@b@@b@--例句@b@alter system kill session'453,10316';