Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1 Page 1 of 2
How to correct performance issues with enq: US - contention related to undo segments
(Doc ID 1332738.1)
Modified: May 29, 2014 Type: TROUBLESHOOTING
In this Document
Purpose
Troubleshooting Steps
References
APPLIES TO:
PURPOSE
You have many offline undo segments and the workload starts to online many undo segments over a short
period of time. This can lead to high 'latch: row cache objects' contention may be seen on
DC_ROLLBACK_SEGMENTS together with high 'enq: US - contention' waits when using system managed undo
with an auto tuned undo retention period.
Sessions attempting to online undo segments should show ktusmous_online_undoseg() in their call stack.
Another aspect of the problem can be due to long running queries which can raise tuned_undoretention to very
high values and exhausts the undo tablespace resulting in ORA-1628.
A real world example: a query is being executed and some rows are fetched from the cursor and then the user
stops working on that query (e.g. does not press the "next" button on the application screen) and works on
something else (e.g. in a different window). After some time the user continues working on the query ... auto-
tune starts tracking the query from this point and the maxquerylen is quite large now, hence also the
tuned_undoretention (that depends directly on the maxquerylen).
Note: The Siebel application can allow for this problem to happen.
TROUBLESHOOTING STEPS
The wait event "enq: US Contention" is associated with contention on the latch in the row cache
(dc_rollback_seg). Enqueue US - Contention can become a bottle-neck for performance if workload dictates that
a lot of offlined undo segments must be onlined over a short period of time. The latch on the row cache can be
unable to keep up with the workload.
This can happen for a number of reasons and some scenarios are legitimate workload demands.
Solution: ensure that peaks in onlined undo segments do not happen (see workaround #2). That is not always
feasible.
https://support.oracle.com/epmos/faces/DocContentDisplay?_adf.ctrl-state=yu8pgc808_114... 5/9/2015
Document 1332738.1 Page 2 of 2
Workarounds:
Note: In databases with high query activity, particularly parallel query and a high setting for
_ROLLBACK_SEGMENT_COUNT, you can expect to see wait contention on the row cache for
DC_ROLLBACK_SEGS. It is highly recommended in these environments where setting
_ROLLBACK_SEGMENT_COUNT to a high value (10s of thousands and higher) apply the patch for
Bug:14226599. This will increase the hash buckets on the DC_ROLLBACK_SEGS row cache to help
alleviate latch contention.
Note: Simply using _SMU_DEBUG_MODE=33554432 may not be enough to stop the problem, but
valid fix for Bug:5387030.
REFERENCES
https://support.oracle.com/epmos/faces/DocContentDisplay?_adf.ctrl-state=yu8pgc808_114... 5/9/2015