1、报错原因
创建或修改表结构时,提示 ORA-00054: resource busy and acquire with NOWAIT specified
是因为操作的表资源被占用
2、解决方法
执行以下sql
select t2.username,t2.sid,t2.serial#,t2.logon_time
from v$locked_object t1,v$session t2
where t1.session_id=t2.sid order by t2.logon_time;
执行结果
image.png
杀死占用会话命令:
alter system kill session '#{SID},#{SERIAL#}';