Oracle unlock stored procedure or method


Find which session the stored procedure OPERATIONDATA_IMP is locked and cannot compile
select * FROM dba_ddl_locks where name =upper('OPERATIONDATA_IMP');


To get session_id, then get sid and serial# by
selecting t.sid,t.serial# from v$session t 
where t.sid=&session_id;


Finally, use alter system kill session 'sid,serial#'; to kill the relevant session.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324537756&siteId=291194637