最近用户在match PO时,其中一张AP INVOICE不管进行何种更新操作,总是报:APP-SQLAP-10771:Could not reserve record 错误.
参考metalink,多半讲与lock有关,
后使用如下SQL 查询,然后kill session解决.
===============================================
SELECT substr(A.SESSION_ID,1,5) SID,
substr(C.SERIAL#,1,5) SERIAL#,
substr(B.OBJECT_NAME,1,25) OBJ_NAME,
C.STATUS,
C.USERNAME, c.action, C.USER#, A.LOCKED_MODE
,c.*
FROM DBA_OBJECTS B, V$SESSION C, V$LOCKED_OBJECT A
WHERE A.OBJECT_ID = B.OBJECT_ID
AND B.OBJECT_NAME like 'AP_%'
AND c.client_info like 'OU_ID%' --OU_ID:就是指所在企业的OU的ID
AND C.SID = A.SESSION_ID;
待查询有LOCK后,
alter system kill session 'sid,serial#'; 来杀掉会话。
阅读(4554) | 评论(0) | 转发(0) |