Oracle中遇到“ORA-00054: 资源正忙, 但指定以 NOWAIT 方式获取资源, 或者超时失效”

存在锁定该表的会话,执行如下查询:

SELECT sid, serial#, username, osuser FROM v$session where sid 
in(select session_id from v$locked_object);
--kill掉相关的会话  597是SID值,  1171是SERIAL#值
ALTER SYSTEM KILL SESSION '597,1171';

报错ora-00030,执行

select spid from v$process where addr in (select paddr from v$session where sid in ('597'));

服务器查询,11733是上一个查询的结果

ps -ef | grep 11733| grep -v grep

结果为no,杀掉进程

kill -9 11733

你可能感兴趣的:(Oracle,docker,linux,centos)