问题
truncate table test;
drop tabel test;
oerr ora 00054
00054, 00000, "resource busy and acquire with NOWAIT specified or timeout expired"
// *Cause: Interested resource is busy.
// *Action: Retry if necessary or increase timeout.
步骤1 – 查看锁
select session_id from v$locked_object;
步骤2 – 查看会话
SELECT sid, serial#, username, osuser FROM v$session where sid = &sid;
步骤3 – Kill
ALTER SYSTEM KILL SESSION 'sid,serial#';