Oracle 11g中想修改表名:session
rename ASSETPORJECT to ASSETPROJECT;
結果提示:ORA-00054: 資源正忙, 但指定以 NOWAIT 方式獲取資源, 或者超時失效。spa
看來有鎖定該表的會話,因而,執行以下查詢:code
SELECT sid, serial#, username, osuser FROM v$session where sid in(select session_id from v$locked_object); --kill掉相關的會話 ALTER SYSTEM KILL SESSION '597,1171';
從新執行rename命令成功!blog