![]() | ![]() | WAITEVENT: "enq: TX - row lock contention" Reference Note (文档 ID 1966048.1) | ![]() | ![]() |
"enq: TX - row lock contention" Reference NoteThis is a reference note for the wait event "enq: TX - row lock contention" which includes the following subsections:
Definition:Versions: 10.1 - 12.1 This wait indicates time spent waiting for a TX lock, typically due to waiting to gain access to a row in a table that is currently locked by that transaction. The TX lock waited on is "TX- Individual Waits:Parameters:
Wait Time:Oracle waits for the TX lock until it is either granted or the request times out, as can occur if a "WAIT" clause is included in the current SQL. Deadlock detection occurs for TX locks. Finding Blockers:Details of the object / block / row that caused the wait can usually be found in the ROW_WAIT_* columns of V$SESSION for the waiting session. eg:SELECT row_wait_obj#, row_wait_file#, row_wait_block#, row_wait_row# FROM v$session WHERE event='enq: TX - row lock contention' AND state='WAITING' ;If the OBJ# is -1 then the object could not be determined. Systemwide Waits:"enq: TX - row lock contention" waits are generally related to the application code being executed and do not indicate a problem with the DB itself. Reducing Waits / Wait times:Reducing waits typically involves altering application code to avoid the contention scenario/s. TroubleshootingSee the following documents for help troubleshooting "enq: TX - row lock contention" waits: Known Issues / Bugs:You can restrict the list below to issues likely to affect one of the following versions by clicking the relevant button:
Related:
|
转载于:https://blog.51cto.com/369day/1953062