手动kill session的方法:1.SELECT * FROM V$DB_OBJECT_CACHE WHERE NAME=upper(‘PROCEDURE_NAME‘) AND LOCKS!=‘0‘;
注意: PROCEDURE_NAME为存储过程的名称。2.SELECT SID FROM V$ACCESS WHERE OBJECT=‘PROCEDURE_NAME‘;3.SELECT SID,SERIAL#,PADDR FROM V$SESSION WHERE SID=‘SID‘;4.ALTER SYSTEM KILL SESSION ‘SID,SERIAL#‘ IMMEDIATE;或者
select vs.SID,
vs.SERIAL#,
vs.PADDR,
‘ALTER SYSTEM KILL SESSION ‘‘‘ || vs.SID || ‘,‘ || vs.SERIAL# ||
‘‘‘ IMMEDIATE;‘
from V$ACCESS va, V$SESSION vs
where 1 = 1
and va.SID = vs.SID
and va.OBJECT = upper(‘SZA_PA_BGT_ADJ_COMMON_PUB‘)
本文出自 “11768293” 博客,谢绝转载!
Oracle包编译,调用或调试Package时卡死问题
标签:plsql
本条技术文章来源于互联网,如果无意侵犯您的权益请点击此处反馈版权投诉 本文系统来源:http://11778293.blog.51cto.com/11768293/1792705
TAG标签: plsql