- 最后登录
- 2018-8-16
- 在线时间
- 100 小时
- 威望
- 45
- 金钱
- 292
- 注册时间
- 2012-4-24
- 阅读权限
- 10
- 帖子
- 53
- 精华
- 0
- 积分
- 45
- UID
- 385
|
6#
发表于 2012-6-12 09:55:17
从AWR的等待事件来看:- Top 5 Timed Foreground Events
- Event Waits Time(s) Avg wait (ms) % DB time Wait Class
- enq: TX - row lock contention 25 1,922 76876 89.85 Application
- DB CPU 137 6.42
- db file sequential read 12,458 54 4 2.54 User I/O
- log file sync 2,649 10 4 0.45 Commit
- SQL*Net more data from client 607 6 10 0.27 Network
复制代码 "enq: TX - row lock contention"是主要问题。
ADDM中能看到对于这个等待事件作出的分析:- Finding 2: Row Lock Waits
- Impact is .27 active sessions, 89.85% of total activity.
- --------------------------------------------------------
- SQL statements were found waiting for row lock waits.
- Recommendation 1: Application Analysis
- Estimated benefit is .27 active sessions, 89.85% of total activity.
- -------------------------------------------------------------------
- Action
- Significant row contention was detected in the TABLE
- "WZSB.SYNC_BTBL_GLO_DATA" with object ID 77997. Trace the cause of row
- contention in the application logic using the given blocked SQL.
- Related Object
- Database object with ID 77997.
- Rationale
- The SQL statement with SQL_ID "70c5u0b6t1tdy" was blocked on row locks.
- Related Object
- SQL statement with SQL_ID 70c5u0b6t1tdy.
- UPDATE WZSB.SYNC_BTBL_GLO_DATA SET BEE_ISUPDATE = '1',BEE_ISSYNC =
- '0',BEE_UPDATETIME = :B1 WHERE TABLE_NAME = 'SBDS_LOG'
- Rationale
- The session with ID 255 and serial number 49615 in instance number 1 was
- the blocking session responsible for 100% of this recommendation's
- benefit.
复制代码 |
|