- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
2#
发表于 2012-5-8 22:09:06
ODM DATA:
10.2.0.5 AIX
Open chains found:
Chain 1 : <cnode/sid/sess_srno/proc_ptr/ospid/wait_event> :
<0/161/34555/0xc822c590/8127396/SQL*Net message from client>
-- <0/119/3736/0xcb230408/14942880/enq: JD - contention>
cjq0 => sid 119 wait for enq: JD - contention ospid 14942880
blocker => sid 161 idel ospid 8127396
cjq0 errorstack 4
cjq0 的stack call 是 kslwait=》kskthbwt=》kslwaitns_timed=》ksliwat=》skgpwwait=》sskgpwwait
blocker 的信息
PROCESS 26:
----------------------------------------
SO: 7000000c822c590, type: 2, owner: 0, flag: INIT/-/-/0x00
(process) Oracle pid=26, calls cur/top: 0/7000000a9382568, flag: (0) -
int error: 0, call error: 0, sess error: 0, txn error 0
(post info) last post received: 110 0 4
last post received-location: kslpsr
last process to post me: 7000000cb22f428 1 6
last post sent: 0 0 24
last post sent-location: ksasnd
last process posted by me: 7000000cb22ec38 1 6
(latch info) wait_event=0 bits=0
Process Group: DEFAULT, pseudo proc: 7000000cb25fe78
O/S info: user: oracle, term: UNKNOWN, ospid: 8127396
SO: 7000000cb2d3880, type: 4, owner: 7000000c822c590, flag: INIT/-/-/0x00
(session) sid: 161 trans: 0, creator: 7000000c822c590, flag: (100041) USR/- -/-/-/-/-/-
DID: 0001-001A-03004F98, short-term DID: 0000-0000-00000000
txn branch: 0
oct: 0, prv: 0, sql: 0, psql: 7000000c9bc7e08, user: 58/APPUSER
service name: ECSAPP
O/S info: user: Bob, term: BOB-666, ospid: 8056:3864, machine: WORKGROUP\BOB-666
program: plsqldev.exe
application name: PL/SQL Developer, hash value=1190136663
action name: SQL Window - New, hash value=3399691616
blocker 是一个PL/SQL Developer 连接 , 来源于 WORKGROUP\BOB-666 用户名是 58/APPUSER
action name: Create / Modify object, hash value=555310690
==》这个PL/SQL Developer 连接 正在创建或修改某个对象
enq: JD - contention
CJQ0 以 X mode request JD-00000000-00000000 ,但是sid=161的 PL/SQL developer连接已经以S mode hold JD resource
JD Synchronizes dates between job queue coordinator and slave processes
SO: 7000000cb37f020, type: 5, owner: 7000000cb2b75a8, flag: INIT/-/-/0x00
(enqueue) JD-00000000-00000000 DID: 0001-000B-00000006
lv: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 res_flag: 0x2
req: X, lock_flag: 0x0, lock: 0x7000000cb37f040, res: 0x7000000c83a16a0
own: 0x7000000cb2b75a8, sess: 0x7000000cb2b75a8, proc: 0x7000000cb230408, prv: 0x7000000c83a16c0
SO: 7000000cb37fea8, type: 5, owner: 7000000cb2d3880, flag: INIT/-/-/0x00
(enqueue) JD-00000000-00000000 DID: 0001-001A-03004F4F
lv: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 res_flag: 0x2
mode: S, lock_flag: 0x0, lock: 0x7000000cb37fec8, res: 0x7000000c83a16a0
own: 0x7000000cb2d3880, sess: 0x7000000cb2d3880, proc: 0x7000000c822c590, prv: 0x7000000c83a16b0
name=SYS.DBMS_IJOB
name=UPDATE SYS.JOB$ SET NEXT_DATE = NVL( :B2 , TO_DATE('4000-01-01','YYYY-MM-DD')) WHERE JOB = :B1
hash=e950b92a8840f62043e7b3999dc63cb2 timestamp=05-04-2012 16:09:20
name=UPDATE SYS.JOB$ J SET J.INTERVAL# = NVL(:B3 ,'null') WHERE JOB = :B2 AND (:B1 = 'SYS' OR (J.POWNER != 'SYS' AND J.COWNER != 'SYS' AND J.LOWNER != 'SYS') OR SYS_CONTEXT('USERENV', 'SESSION_USER') = 'SYS')
hash=3441114841b5dbfd06001f44cb625f05 timestamp=05-04-2012 16:09:20
可能是 用户在使用 PL/SQL developer 修改 某个JOB 的时间后没有commit 导致 相关的JD enqueue一直被hold , 且没有 退出程序 。 导致CJQ0 hang住。
建议:
1. 退出 sid 161 的PL/SQL developer连接
2. KILL sid=161 的session |
|