当前位置: 首页 > 图灵资讯 > 技术篇> oracle查看被锁的表和解锁

oracle查看被锁的表和解锁

来源:图灵教育
时间:2023-05-26 09:43:43

检查被锁表 select p.spid,a.serial#, c.object_name,b.session_id,b.oracle_username,b.os_user_name from v$process p,v$session a, v$locked_object b,all_objects c where p.addr=a.paddr and a.process=b.process and c.object_id=b.object_id 检查连接过程 SELECT sid, serial#, username, osuser FROM v$session; 杀掉进程 alter system kill session 'sid,serial#';