- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
10#
发表于 2012-2-3 22:56:18
Resource Holder State
Enqueue DX-0000001A-00000000 ??? Blocker
Enqueue DX-00000018-00000000 24: waiting for 'SQL*Net message from dblink'
Enqueue DX-00000013-00000000 78: waiting for 'SQL*Net message from dblink'
Enqueue DX-0000001F-00000000 52: waiting for 'SQL*Net message from dblink'
Enqueue DX-0000001C-00000000 60: waiting for 'SQL*Net message from dblink'
Enqueue DX-00000112-00000000 241: waiting for 'SQL*Net message from dblink'
Enqueue DX-0000021F-00000000 16: waiting for 'SQL*Net message from dblink'
Enqueue DX-00000028-00000000 51: waiting for 'SQL*Net message from dblink'
Enqueue DX-00000028-00000000 378: waiting for 'SQL*Net more data to client'
分析 PID=24
SO: 70000020888f008, type: 2, owner: 0, flag: INIT/-/-/0x00
(process) Oracle pid=24, calls cur/top: 700000208fdac60/700000208fdac60, flag: (0) -
int error: 0, call error: 0, sess error: 0, txn error 0
(post info) last post received: 109 0 4
last post received-location: kslpsr
last process to post me: 70000020f888e18 1 6
last post sent: 0 0 33
last post sent-location: ksrpublish
last process posted by me: 70000020a8ca5e0 1 22
(latch info) wait_event=0 bits=0
Process Group: DEFAULT, pseudo proc: 70000020f9f9990
O/S info: user: oracle, term: UNKNOWN, ospid: 1487648
OSD pid info: Unix process pid: 1487648, image: oracle@cpmisdb
Short stack dump:
ksdxfstk+002c<-ksdxcb+04e4<-sspuser+0074<-000047B8<-nttrd+0120<-nsprecv+07a0<-nsrdr+0114<-nsdo+1710<-nsbrecv+0040<-nioqrc+04a8<-opikndf2+0688<-npixfc+08b4<-k2rbeg+0180
<-npibeg+0924<-npixfc+04c0<-psdrpc+0448<-prirpc+0234<-pevm_RCAL+0200<-pfrinstr_RCAL+0074<-pfrrun_no_tool+005c<-pfrrun+1014<-plsql_run+06b4<-peicnt+0224<-kkxuexe+0360<-
kkxmpsexe+029c<-kgmexwi+056c<-kgmexec+0bcc<-evapls+054c<-evaopn2+07cc<-evalik+0164<-expepr+01b4<-expeal+0024<-qerhjWalkHashBucket+0144<-qerhjInnerProbeHashTable+02e0<-
qerhjWalkHashBucket+0238<-qerhjInnerProbeHashTable+02e0<-qerrmPFR+0208<-qerrmOpfr+0208<-qerrmOdcb+0014<-ttcfour+12e4<-ttcdrv+2e40<-nioqwa+0058<-upirtrc+0520<-kpurcsc+0
06c<-IPRA.$kpufch0+0ff0<-kpufch+0bb8<-OCIStmtFetch+001c<-qerrmOFBu+01fc<-qerrmFBu+0398<-qerrmFetch+00ec<-rwsfcd+0054<-qerhjFetch+0664<-rwsfcd+0054<-qerhjFetch+0664<-qe
rgsFetch+0278<-kpofrws+019c<-opifch2+13dc<-opifch+003c<-opiodr+0ae0<-ttcpip+1020<-opitsk+1124<-opiino+0990<-opiodr+0ae0<-opidrv+0484<-sou2o+0090<-opimai_real+01bc<-mai
n+0098<-__start+0070
SO: 700000209de5a78, type: 4, owner: 70000020888f008, flag: INIT/-/-/0x00
(session) sid: 2844 trans: 70000020398a600, creator: 70000020888f008, flag: (100041) USR/- BSY/-/-/-/-/-
DID: 0001-0018-03D6D884, short-term DID: 0000-0000-00000000
txn branch: 700000201224d00
oct: 3, prv: 0, sql: 7000001cd658918, psql: 7000001e725fb50, user: 59/MATERIAL_HB
service name: SYS$USERS
O/S info: user: root, term: , ospid: 1234, machine: hbcpmis.hubeitel.com
program:
waiting for 'SQL*Net message from dblink' blocking sess=0x0 seq=59149 wait_time=0 seconds since wait started=9194312
driver id=54435000, #bytes=1, =0
Dumping Session Wait History
for 'SQL*Net message to dblink' count=1 wait_time=1
driver id=54435000, #bytes=1, =0
for 'SQL*Net message from dblink' count=1 wait_time=490
PID 24 执行 SQL 7000001cd658918 频繁等待事件SQL*Net message from dblink
SQL 7000001cd658918 如下
SO: 7000000cc25ac20, type: 53, owner: 700000209de5a78, flag: INIT/-/-/0x00
LIBRARY OBJECT LOCK: lock=7000000cc25ac20 handle=7000001cd658918 mode=N
call pin=0 session pin=0 hpc=0000 hlc=0000
htl=7000000cc25aca0[7000001bfbc33c0,7000000cc34df50] htb=7000000cad75510 ssga=7000000cad74ef8
user=700000209de5a78 session=700000209de5a78 count=1 flags=[0000] savepoint=0x4e9f90b8
LIBRARY OBJECT HANDLE: handle=7000001cd658918 mtx=7000001cd658a48(1) cdp=1
name=select count(*) from (select * from vw_contract where 1=1 and areacode in (590,717) and projname like '%èy??·-°ó???ù1??·?íμàCí??2??1¤3ì %')
hash=63477761beca9b3652068ef437153f50 timestamp=10-20-2011 11:08:40
namespace=CRSR flags=RON/KGHP/TIM/PN0/MED/KST/DBN/MTX/[500100d0]
kkkk-dddd-llll=0000-0001-0001 lock=N pin=0 latch#=9 hpc=0002 hlc=0002
lwt=7000001cd6589c0[7000001cd6589c0,7000001cd6589c0] ltm=7000001cd6589d0[7000001cd6589d0,7000001cd6589d0]
pwt=7000001cd658988[7000001cd658988,7000001cd658988] ptm=7000001cd658998[7000001cd658998,7000001cd658998]
ref=7000001cd6589f0[7000001cd6589f0,7000001cd6589f0] lnd=7000001cd658a08[7000001cd658a08,7000001cd658a08]
LIBRARY OBJECT: object=7000000ed8b60f0
type=CRSR flags=EXS[0001] pflags=[0000] status=VALD load=0
CHILDREN: size=16
child# table reference handle
------ -------- --------- --------
0 7000000b9dcd2e8 7000000b9dccf58 7000001c776a130
DATA BLOCKS:
data# heap pointer status pins change whr
----- -------- -------- --------- ---- ------ ---
0 70000020b5492c0 7000000ed8b6208 I/P/A/-/- 0 NONE 00
select count(*) from (select * from vw_contract where 1=1 and areacode in (590,717) and projname like '%èy??·-°ó???ù1??·?íμàCí??2??1¤3ì %')
vw_contract =>
SO: 7000000ccb5cb30, type: 53, owner: 70000020fdbbbb8, flag: INIT/-/-/0x00
LIBRARY OBJECT LOCK: lock=7000000ccb5cb30 handle=7000001a1839ca8 mode=N
call pin=0 session pin=0 hpc=0000 hlc=0000
htl=7000000ccb5cbb0[7000001f84d5540,7000001f84d5540] htb=7000001f84d5540 ssga=7000001f84d44a8
user=70000020fdbbbb8 session=70000020fdbbbb8 count=0 flags=LRU/[4000] savepoint=0x19418a5
LIBRARY OBJECT HANDLE: handle=7000001a1839ca8 mtx=7000001a1839dd8(0) cdp=0
name=MATERIAL_HB.VW_CONTRACT
hash=3db98cbbc0c7f5773b19da88b7cb79f8 timestamp=10-17-2011 22:44:43
namespace=TABL flags=KGHP/TIM/SML/[02000000]
kkkk-dddd-llll=0000-0000-0000 lock=N pin=0 latch#=4 hpc=08b8 hlc=08b8
lwt=7000001a1839d50[7000001a1839d50,7000001a1839d50] ltm=7000001a1839d60[7000001a1839d60,7000001a1839d60]
pwt=7000001a1839d18[7000001a1839d18,7000001a1839d18] ptm=7000001a1839d28[7000001a1839d28,7000001a1839d28]
ref=7000001a1839d80[7000001a1839d80,7000001a1839d80] lnd=7000001a1839d98[70000020c29c518,7000001a14fe9f8]
LIBRARY OBJECT last freed from HPD addn data CBK
namespace=TABL = > TABL table/view/sequence/synonym
MATERIAL_HB.VW_CONTRACT 可能是表 视图 序列 或同义词
另一PID =78
SO: 7000002098c0a70, type: 2, owner: 0, flag: INIT/-/-/0x00
(process) Oracle pid=78, calls cur/top: 7000001f9800538/7000001f9800538, flag: (0) -
int error: 0, call error: 0, sess error: 0, txn error 0
(post info) last post received: 109 0 4
last post received-location: kslpsr
last process to post me: 70000020f888e18 1 6
last post sent: 0 0 24
last post sent-location: ksasnd
last process posted by me: 70000020f888e18 1 6
(latch info) wait_event=0 bits=0
Process Group: DEFAULT, pseudo proc: 70000020f9f9990
O/S info: user: oracle, term: UNKNOWN, ospid: 1368374
OSD pid info: Unix process pid: 1368374, image: oracle@cpmisdb
Short stack dump:
ksdxfstk+002c<-ksdxcb+04e4<-sspuser+0074<-000047B8<-nttrd+0120<-nsprecv+07a0<-nsrdr+0114<-nsdo+1710<-nsbrecv+0040<-nioqrc+04a8<-opikndf2+0688<-npixfc+08b4<-k2rbeg+0180<
-npibeg+0924<-npixfc+04c0<-psdrpc+0448<-prirpc+0234<-pevm_RCAL+0200<-pfrinstr_RCAL+0074<-pfrrun_no_tool+005c<-pfrrun+1014<-plsql_run+06b4<-peicnt+0224<-kkxuexe+0360<-kk
xmpsexe+029c<-kgmexwi+056c<-kgmexec+0bcc<-evapls+054c<-evaopn2+07cc<-evalik+0164<-expepr+01b4<-expeal+0024<-qerhjWalkHashBucket+0144<-qerhjInnerProbeHashTable+02e0<-qer
hjInnerProbeHashTable+0218<-qerrmPFR+0208<-qerrmOpfr+0208<-qerrmOdcb+0014<-ttcfour+12e4<-ttcdrv+2e40<-nioqwa+0058<-upirtrc+0520<-kpurcsc+006c<-IPRA.$kpufch0+0ff0<-kpufc
h+0bb8<-OCIStmtFetch+001c<-qerrmOFBu+01fc<-qerrmFBu+0398<-qerrmFetch+00ec<-rwsfcd+0054<-qerhjFetch+0664<-rwsfcd+0054<-qerhjFetch+0664<-qergsFetch+0278<-opifch2+141c<-op
ifch+003c<-opiodr+0ae0<-ttcpip+1020<-opitsk+1124<-opiino+0990<-opiodr+0ae0<-opidrv+0484<-sou2o+0090<-opimai_real+01bc<-main+0098<-__start+0070
SO: 70000020fe357b0, type: 4, owner: 7000002098c0a70, flag: INIT/-/-/0x00
(session) sid: 3217 trans: 7000002011d3070, creator: 7000002098c0a70, flag: (100041) USR/- BSY/-/-/-/-/-
DID: 0001-004E-03073148, short-term DID: 0000-0000-00000000
txn branch: 700000201224e40
oct: 3, prv: 0, sql: 7000001e416b0a0, psql: 7000001e725fb50, user: 59/MATERIAL_HB
service name: SYS$USERS
O/S info: user: root, term: , ospid: 1234, machine: hbcpmis.hubeitel.com
program:
waiting for 'SQL*Net message from dblink' blocking sess=0x0 seq=16009 wait_time=0 seconds since wait started=7613514
driver id=54435000, #bytes=1, =0
Dumping Session Wait History
for 'SQL*Net message to dblink' count=1 wait_time=0
driver id=54435000, #bytes=1, =0
for 'SQL*Net message from dblink' count=1 wait_time=485
driver id=54435000, #bytes=1, =0
for 'SQL*Net message to dblink' count=1 wait_time=1
driver id=54435000, #bytes=1, =0
for 'SQL*Net message from dblink' count=1 wait_time=101
driver id=54435000, #bytes=1, =0
for 'SQL*Net message to dblink' count=1 wait_time=1
driver id=54435000, #bytes=1, =0
for 'SQL*Net message from dblink' count=1 wait_time=2598
driver id=54435000, #bytes=1, =0
也在等 SQL*Net message to dblink' ,SQL 7000001e416b0a0 如下
SO: 7000000cd07a6b0, type: 53, owner: 70000020ae02648, flag: INIT/-/-/0x00
LIBRARY OBJECT LOCK: lock=7000000cd07a6b0 handle=7000001e416b0a0 mode=N
call pin=0 session pin=0 hpc=0000 hlc=0000
htl=7000000cd07a730[7000000cd1cb4b0,7000000cd09c738] htb=7000001f84c0bc0 ssga=7000001f84c07f8
user=70000020ae02648 session=70000020ae02648 count=1 flags=[0000] savepoint=0x4eb7af6a
LIBRARY OBJECT HANDLE: handle=7000001e416b0a0 mtx=7000001e416b1d0(1) cdp=1
name=select count(*) from (select * from vw_contract where 1=1 and areacode in (590,728) and contractcode like '%1001%' and projname like '%ÏÉÌÒ¿±ö˹¾ÆµêÊÒÄÚ·Ö²
¼ÏµÍ³¹¤³Ì£¨RRU£©%')
hash=d67d07ea76676e6505443d01573c452b timestamp=11-07-2011 18:14:04
namespace=CRSR flags=RON/KGHP/TIM/PN0/MED/KST/DBN/MTX/[500100d0]
kkkk-dddd-llll=0000-0001-0001 lock=N pin=0 latch#=7 hpc=0004 hlc=0004
lwt=7000001e416b148[7000001e416b148,7000001e416b148] ltm=7000001e416b158[7000001e416b158,7000001e416b158]
pwt=7000001e416b110[7000001e416b110,7000001e416b110] ptm=7000001e416b120[7000001e416b120,7000001e416b120]
ref=7000001e416b178[7000001e416b178,7000001e416b178] lnd=7000001e416b190[7000001e416b190,7000001e416b190]
LIBRARY OBJECT: object=7000001d4ed6948
同样在查询 vw_contract
PID=105 等待 enq: DX - contention
105:waiting for 'enq: DX - contention' [Enqueue DX-00000018-00000000] wait
----------------------------------------
SO: 70000020a8d62e0, type: 2, owner: 0, flag: INIT/-/-/0x00
(process) Oracle pid=105, calls cur/top: 7000001f8872580/7000001f8872580, flag: (0) -
int error: 0, call error: 0, sess error: 0, txn error 0
(post info) last post received: 0 0 0
last post received-location: No post
last process to post me: none
last post sent: 0 0 0
last post sent-location: No post
last process posted by me: none
(latch info) wait_event=0 bits=0
Process Group: DEFAULT, pseudo proc: 70000020f9f9990
O/S info: user: oracle, term: UNKNOWN, ospid: 877082
OSD pid info: Unix process pid: 877082, image: oracle@cpmisdb
Short stack dump:
Short stack dump:
ksdxfstk+002c<-ksdxcb+04e4<-sspuser+0074<-000047B8<-sskgpwwait+0034<-skgpwwait+00bc<-ksliwat+06c0<-kslwaitns_timed+0024<-kskthbwt+022c<-kslwait+00f4<-ksqcmi+2124<-ksqgt
lctx+0db0<-ksqgelctx+0338<-K2GTElock+0268<-k2gins+0444<-k2lbeg+04a8<-k2sbeg+0154<-k2serv+0184<-opiodr+0ae0<-ttcpip+1020<-opitsk+1124<-opiino+0990<-opiodr+0ae0<-opidrv+0
484<-sou2o+0090<-opimai_real+01bc<-main+0098<-__start+0070
SO: 700000209e6f750, type: 4, owner: 70000020a8d62e0, flag: INIT/-/-/0x00
(session) sid: 3256 trans: 0, creator: 70000020a8d62e0, flag: (c0000041) USR/- BSY/-/-/-/-/-
DID: 0000-0000-00000000, short-term DID: 0000-0000-00000000
txn branch: 700000201228ad0
oct: 0, prv: 0, sql: 0, psql: 0, user: 58/PROJECT_HB
service name: SYS$USERS
O/S info: user: oracle, term: , ospid: 1487648, machine: cpmisdb
program: oracle@cpmisdb (TNS V1-V3)
application name: oracle@cpmisdb (TNS V1-V3), hash value=759291196
waiting for 'enq: DX - contention' blocking sess=0x700000209e60bd8 seq=6236 wait_time=0 seconds since wait started=3
name|mode=44580006, transaction entry #=18, 0=0
Dumping Session Wait History
for 'enq: DX - contention' count=1 wait_time=1962984
name|mode=44580006, transaction entry #=18, 0=0
for 'inactive transaction branch' count=1 wait_time=976590
branch#=0, waited=0, =0
for 'enq: DX - contention' count=1 wait_time=2929717
name|mode=44580006, transaction entry #=18, 0=0
for 'enq: DX - contention' count=1 wait_time=2929711
name|mode=44580006, transaction entry #=18, 0=0
for 'inactive transaction branch' count=1 wait_time=976583
branch#=0, waited=0, =0
for 'enq: DX - contention' count=1 wait_time=2929712
name|mode=44580006, transaction entry #=18, 0=0
for 'enq: DX - contention' count=1 wait_time=2929708
PID 105 等待enq: DX - contention 大量时间 |
|