时间:2021-07-01 10:21:17 帮助过:4人阅读
--查看哪些对象锁死
select object_name,machine,s.OSUSER,s.sid,s.serial#
from v$locked_object l,dba_objects o,v$session s
where l.OBJECT_ID=o.OBJECT_ID and l.SESSION_ID=s.SID
--使用系统管理员删除死锁进程
alter system kill session ‘1052,26737‘
--查看指定的死锁信息
select spid,OSUSER,s.program from v$session s,v$process p
where s.paddr=p.ADDR and s.SID=1052
--查看哪些对象死锁
select object_name,machine,s.OSUSER,s.sid,s.SERIAL# from v$locked_object l, dba_objects o, v$session s where l.OBJECT_ID=o.OBJECT_ID and l.SESSION_ID=s.SID
--查看指定的死锁信息
select spid,s.OSUSER,s.PROGRAM from v$session s, v$process p where s.SADDR=p.ADDR and s.SID=125
--使用系统定理员删除死锁进程
alter system kill session ‘125,8575‘
关于死锁的一些SQL
标签:系统管理员 object file rom sum ase ble sid color