如何檢測被鎖住的Oracle存儲過程?
1.查看是哪一個存儲過程被鎖住查V$DB_OBJECT_CACHE視圖select * from V$DB_OBJECT_CACHE where owner='過程的所屬用戶' AND LOCKS!='0'2.查看是哪一個sid,通過sid可以知道是哪一個session查v$access視圖select * from v$access where owner='過程的所屬用戶' and name='剛才查到的過程名'3.查出sid和serial#查v$session視圖select sid,serial#,paddr from v$session where sid='剛才查到的sid';查v$process視圖select spid from v$process where addr='剛才查到的paddr';4.殺進程