1.若是函數被鎖住,那麼確定是有進程在使用這個函數session
Select b.SID,b.SERIAL# From dba_ddl_locks a, v$session b Where a.session_id = b.SID And a.name = '函數名或者表名';oracle
2.在oracle使用命令殺死進程函數
alter system kill session 'SID,SERIAL#';進程
3.遇到在oracle中沒法殺死的狀況,則在OS層殺死該進程io
select spid, osuser, s.program from v$session s,v$process p where s.paddr=p.addr and s.sid=1715select
kill -9 piddb