流水帳雜記
1. 先查詢是否被Lock
SELECT
b.SID,
b.USERNAME,
b.MACHINE,
b.SERIAL#
FROM
V$ACCESS a,
V$SESSION b
WHERE
a.SID = b.SID
AND a.OBJECT = '%PACKAGE_NAME%'
AND a.TYPE = 'PACKAGE';
2. 若是被Lock, 砍掉該筆session
alter system kill session 'sid,serial#'
張貼留言
沒有留言:
張貼留言