Lyall Barbour
2018-10-23 15:48:12 UTC
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hello,</div>
<div> Debugging Off-the-shelf applications. Best part of my job...</div>
<div> </div>
<div>Oracle 12.1.0.2 - Multitenant </div>
<div>SLES 11 SP4</div>
<div> </div>
<div> I have found that an INSERT is having to wait a ton on TX: Row Lock Contention from an intense Document Management application bought, installed and configured about a year and a half ago - Open Text.</div>
<div> Here's my lock/block query that's been the most useful to this point:</div>
<div> </div>
<div>SELECT o.object_name, t.start_time, sysdate, s.sid, s.status<br/>
, s.machine, s.sql_id<br/>
, to_char(s.logon_time,'DD/MON/YY HH24:MI:SS') logon_time<br/>
FROM v$transaction t, v$session s, v$locked_object l, dba_objects o, dba_blockers b<br/>
WHERE s.saddr = t.ses_addr<br/>
and s.sid = l.session_id<br/>
and l.object_id = o.object_id<br/>
and s.sid = b.holding_session<br/>
ORDER BY start_time;</div>
<div> </div>
<div>the results of the query find that one blocking session has an open Transaction for about 15 to 30 seconds, with locks on 15 tables. Other sessions are waiting to insert into one of those tables and really bogging down the system.</div>
<div> </div>
<div>How do i find the syntax/code that the blocking session ran to lock those 15 objects, in the first place?</div>
<div> </div>
<div>OBJECT_NAME START_TIME SYSDATE SID STATUS MACHINE SQL_ID LOGON_TIME <br/>
------------------------------ -------------------- --------------------- ---------- -------- ---------------------------------------------------------------- ------------- ---------------------------<br/>
DTREEACL 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
DTREECORE 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
LLATTRDATA 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
LLATTRBLOBDATA 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
DTREEMULTILINGUAL 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
DSUGGESTWORDSPENDING 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
NOTIFYEVENTS 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
WEBNODESMETA_EN_US 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
DBROWSEANCESTORSCORE 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
DTREEANCESTORS 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
DFACET_OWNER 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
DFACET_OBJECTTYPE 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
DFACET_MODIFYDATE 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
DFACET_ATTR_2V4D_R 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
DTREENOTIFY 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25</div>
<div> </div>
<div>TIA</div>
<div> </div>
<div>Lyall Barbour</div></div></body></html>
--
http://www.freelists.org/webpage/oracle-l
<div> Debugging Off-the-shelf applications. Best part of my job...</div>
<div> </div>
<div>Oracle 12.1.0.2 - Multitenant </div>
<div>SLES 11 SP4</div>
<div> </div>
<div> I have found that an INSERT is having to wait a ton on TX: Row Lock Contention from an intense Document Management application bought, installed and configured about a year and a half ago - Open Text.</div>
<div> Here's my lock/block query that's been the most useful to this point:</div>
<div> </div>
<div>SELECT o.object_name, t.start_time, sysdate, s.sid, s.status<br/>
, s.machine, s.sql_id<br/>
, to_char(s.logon_time,'DD/MON/YY HH24:MI:SS') logon_time<br/>
FROM v$transaction t, v$session s, v$locked_object l, dba_objects o, dba_blockers b<br/>
WHERE s.saddr = t.ses_addr<br/>
and s.sid = l.session_id<br/>
and l.object_id = o.object_id<br/>
and s.sid = b.holding_session<br/>
ORDER BY start_time;</div>
<div> </div>
<div>the results of the query find that one blocking session has an open Transaction for about 15 to 30 seconds, with locks on 15 tables. Other sessions are waiting to insert into one of those tables and really bogging down the system.</div>
<div> </div>
<div>How do i find the syntax/code that the blocking session ran to lock those 15 objects, in the first place?</div>
<div> </div>
<div>OBJECT_NAME START_TIME SYSDATE SID STATUS MACHINE SQL_ID LOGON_TIME <br/>
------------------------------ -------------------- --------------------- ---------- -------- ---------------------------------------------------------------- ------------- ---------------------------<br/>
DTREEACL 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
DTREECORE 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
LLATTRDATA 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
LLATTRBLOBDATA 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
DTREEMULTILINGUAL 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
DSUGGESTWORDSPENDING 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
NOTIFYEVENTS 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
WEBNODESMETA_EN_US 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
DBROWSEANCESTORSCORE 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
DTREEANCESTORS 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
DFACET_OWNER 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
DFACET_OBJECTTYPE 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
DFACET_MODIFYDATE 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
DFACET_ATTR_2V4D_R 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25 <br/>
DTREENOTIFY 10/23/18 11:34:56 23-OCT-18 11.35.23 AM 668 INACTIVE NGIC\xxxxxxxxxxx fppmu8hcw3y1d 18/OCT/18 22:41:25</div>
<div> </div>
<div>TIA</div>
<div> </div>
<div>Lyall Barbour</div></div></body></html>
--
http://www.freelists.org/webpage/oracle-l