Beruflich Dokumente
Kultur Dokumente
1 de 7
http://www.expodba.com/notas/initrans-y-el-evento-enq-tx-row-lock-c...
12/10/2015 10:58
2 de 7
http://www.expodba.com/notas/initrans-y-el-evento-enq-tx-row-lock-c...
12/10/2015 10:58
select w.event,count(9)
from gv$session s, gv$session_wait w
3 dewhere
7
s.sid=w.sid
http://www.expodba.com/notas/initrans-y-el-evento-enq-tx-row-lock-c...
12/10/2015 10:58
http://www.expodba.com/notas/initrans-y-el-evento-enq-tx-row-lock-c...
select w.event,count(9)
from gv$session s, gv$session_wait w
where s.sid=w.sid
group by w.event
order by 2;
1
2
3
4
5
6
7
8
9
10
11
12
EVENT
COUNT(9)
---------------------------------------- ---------....
....
rdbms ipc message
12
buffer busy waits
29
cursor: pin S
53
latch: redo allocation
79
log file sync
92
db file sequential read
103
enq: TX - row lock contention
140
SQL*Net message from client
1174
?
SELECT object_name,
b.username, b.program, count(9)
from v$session b, dba_objects o
where o.object_id=ROW_WAIT_OBJ#
and event = 'enq: TX - row lock contention'
group by object_name, b.username, b.program, ROW_WAIT_FILE#,ROW_WAIT_BLOCK#,ROW_
order by 4;
4 de 7
1
2
3
OBJECT_NAME
USERNAME
PROGRAM
------------------------------ -------------------- ----------------------TABLA_1
USUER1
cargador@hadoopds (TNS
12/10/2015 10:58
http://www.expodba.com/notas/initrans-y-el-evento-enq-tx-row-lock-c...
?
SELECT object_name,
ROW_WAIT_FILE#,ROW_WAIT_BLOCK#,ROW_WAIT_ROW#,
from v$session b, dba_objects o
where o.object_id=ROW_WAIT_OBJ#
and event = 'enq: TX - row lock contention'
group by object_name,
ROW_WAIT_FILE#,ROW_WAIT_BLOCK#,ROW_WAIT_ROW#
order by 1,5;
OBJECT_NAME
ROW_WAIT_FILE# ROW_WAIT_BLOCK# ?ROW_WAIT_ROW#
------------------------------ -------------- --------------- ------------- ----TABLA_1
2828
1724614
0
TABLA_1
2959
984830
0
5 de 7
12/10/2015 10:58
6 de 7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
http://www.expodba.com/notas/initrans-y-el-evento-enq-tx-row-lock-c...
Xid
0x021a.012.0002e47a
0x032d.025.000041d0
0x01a6.01f.0004b8d1
0x0179.006.00069802
0x02e9.01f.00005ff3
0x0307.00e.00004c1d
0x014f.02c.00089c62
0x000c.012.0011aed0
0x02de.02b.00006d0c
0x014c.004.0008f8c3
Uba
0x3642f70c.f48c.01
0x42c21955.9b94.3d
0xfa818848.d413.15
0xfa839921.b87b.06
0xe085d1fc.d11d.2e
0xe086b38e.b2f1.14
0x3647d47a.6ef8.14
0xf90600aa.7d0e.3f
0xfa078e5b.e503.04
0x36479461.004f.11
flg: E
Flag
CB----C------------------------
typ: 2 -
Lck
0
1
0
1
1
3
3
1
3
3
scn
fsc
scn
fsc
fsc
fsc
fsc
fsc
fsc
fsc
Scn/Fsc
0x06cc.c61d
0x0001.0000
0x06cc.c66f
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
12/10/2015 10:58
7 de 7
http://www.expodba.com/notas/initrans-y-el-evento-enq-tx-row-lock-c...
12/10/2015 10:58