1.查看被锁的表
select p.spid,a.serial#,a.sid,a.username,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;
2.杀死进程
alter system kill session 'sid,serial#';
其中:sid是session_id
orcale查看被锁定的表
最新推荐文章于 2024-04-12 17:42:21 发布