不能插入記錄,pl/sql一直在執行,解決

查出哪些對象被鎖:

select a.,b. from v$locked_object a,dba_objects b where b.object_id = a.object_id
查出鎖住對象的session ID 和serial#:

select t2.username,t2.sid,t2.serial#,t2.logon_time
from vlockedobjectt1,vsession t2
where t1.session_id=t2.sid order by t2.logon_time
殺死session:
alter system kill session ‘ID,Serial#’

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章