- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
17#
发表于 2013-11-6 22:06:59
Top Sessions
'# Samples Active' shows the number of ASH samples in which the session was found waiting for that particular event. The percentage shown in this column is calculated with respect to wall clock time and not total database activity.
'XIDs' shows the number of distinct transaction IDs sampled in ASH when the session was waiting for that particular event
For sessions running Parallel Queries, this section will NOT aggregate the PQ slave activity into the session issuing the PQ. Refer to the 'Top Sessions running PQs' section for such statistics.
Sid, Serial# % Activity Event % Event User Program # Samples Active XIDs
2666, 799 15.41 SQL*Net message from dblink 12.25 LQSI 190/720 [ 26%] 2
enq: TX - row lock contention 3.09 48/720 [ 7%] 2
1713, 15 13.48 enq: TX - row lock contention 6.77 LQSI 105/720 [ 15%] 2
SQL*Net message from dblink 6.19 96/720 [ 13%] 1
2377, 1245 8.90 enq: TX - row lock contention 8.90 LQSI 138/720 [ 19%] 2
2474, 25 8.64 SQL*Net message from dblink 6.13 LQSI 95/720 [ 13%] 1
enq: TX - row lock contention 2.39 37/720 [ 5%] 1
953, 19 8.45 enq: TX - row lock contention 8.45 LQSI 131/720 [ 18%] 1
Back to Top Sessions
Back to Top
Top Blocking Sessions
Blocking session activity percentages are calculated with respect to waits on enqueues, latches and "buffer busy" only
'% Activity' represents the load on the database caused by a particular blocking session
'# Samples Active' shows the number of ASH samples in which the blocking session was found active.
'XIDs' shows the number of distinct transaction IDs sampled in ASH when the blocking session was found active.
Blocking Sid (Inst) % Activity Event Caused % Event User Program # Samples Active XIDs
2474, 25( 2) 33.59 enq: TX - row lock contention 33.59 LQSI 134/720 [ 19%] 1
1713, 15( 2) 14.89 enq: TX - row lock contention 14.89 LQSI 209/720 [ 29%] 6
1429, 67( 2) 8.96 enq: TX - row lock contention 8.96 LQSI 102/720 [ 14%] 2
2666, 799( 2) 6.38 enq: TX - row lock contention 6.38 LQSI 239/720 [ 33%] 4
上表可以看到
session 2474本身受到 SQL*Net message from dblink的影响,有以 enq: TX - row lock contention阻塞别人
同样的 session 2666、1713、1429均是如此的
你的SQL执行的顺序 可能是
update AC01 set
然后 INSERT INTO F_AC01_ERR@YLBXDB .
由于后者受到dblink影响 从而前者锁定的行没有很快释放 ,导致TX:row lock 作为第一等待事件。
你可以查看 下 SQL*Net message from dblink 等待时间的历史 等待情况, 具体脚本在我博客上有, 来确定该 SQL*Net message from dblink慢是否是偶发情况 |
|