Oracle 错误:ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired

select b.owner,b.object_name,a.session_id,a.locked_mode from v$locked_object a,dba_objects b where b.object_id = a.object_id;  --查找被锁的表

select b.username,b.sid,b.serial#,logon_time from v$locked_object a,v$session b where a.session_id = b.sid order by b.logon_time;

select * from v$locked_object a,v$session b where a.session_id = b.sid order by b.logon_time;

SELECT s.sid, s.serial#, s.username, s.schemaname, s.osuser, s.process, s.machine,
s.terminal, s.logon_time, l.type
FROM v$session s, v$lock l
WHERE s.sid = l.sid
AND s.username IS NOT NULL
and  s.sid='4125'
ORDER BY sid

;


--杀掉进程

alter system kill session'210,11562';

https://www.cnblogs.com/XQiu/p/5212787.html


猜你喜欢

转载自blog.csdn.net/weixin_39730950/article/details/79569654