查看有哪些表被锁住 如何杀死oracle死锁进程

2024-12-27 01:01:55
推荐回答(2个)
回答1:

查看被锁的表:
select p.spid,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
解锁:
alter system kill session '146';(其中146为锁住的进程号)

回答2:

select * from v$session

找到有问题的session

alter system kill session 'sid,serial#' ;