ORACLE ENQUEUE WAITS & CAUSES WITH POSSIBLE ACTIONS TO BE CHECKED OR VERFIED
REQUEST = 3 VALIDATE STRUCTURE or
due to command "LOCK
TABLE ... IN EXCLUSIVE
MODE [NOWAIT]"
If LMODE = 4, the locking session currently executes an operation such as an index rebuild or a consistency
check using VALIDATE STRUCTURE without an ONLINE flag. Terminate this operation, so other
transactions can access the object again.
If LMODE = 3, the session that holds the lock is not the main problem, since several sessions can use a TM
lock with mode 3 at the same time and in the same table (for instance, if two transactions change different
records in the same table at the same time). Instead, you must analyze whether there is another waiter that
requires a TM enqueue with REQUEST = 4 (for example, REBUILD INDEX ONLINE, see below) and which
therefore blocks all requests in the queue lined up behind it.
enq: TM – contention TYPE = TM,
REQUEST = 4
REBUILD INDEX ONLINE or
SHRINK waits due to an active
TX enqueue on the
corresponding table.
As described in Note 682926, a REBUILD INDEX ONLINE is only online-enabled to a limited extent. You
must therefore make sure that an online rebuild is only started if no long-running transactions are working in
the relevant table. See Note 910389 for information about Segment Shrinking
enq: US – contention
US-enqueues occur in relation
to the automatic online or
offline setting of undo
segments by the SMON-
process or by other undo
segment activities.
To reduce US enqueues, you can set the following event. Among other things, this event suppresses the
automatic offline setting of undo segments that are no longer required.
event="10511 trace name context forever, level 2"
If US enqueues are responsible for performance problems in the Real Application Cluster, import the latest
Oracle patch set. If this does not solve the problem, create an SAP customer message to initiate further
analysis.
enq: CI – contention
The CI enqueue is allocated
when a session executes a
cross instance call, in other
words, when a background
process is triggered in the
Oracle instance to carry out a
certain task
When a session has allocated the CI enqueue successfully, it waits for the Wait Event "rdbms ipc reply" until
the background process issues a response. Other sessions that also require the CI enqueue must wait for
it.this means that the optimization of CI enqueues corresponds to the optimization of "rdbms ipc reply" waits.
Therefore, refer to the "rdbms ipc reply" section in Note 619188.
enq: RO - fast object
reuse
The reuse object enqueue is
used in exactly the same way
as the CI enqueue in
TRUNCATEs and DROPs.
refer to the details described above
enq: TT - contention
The TT enqueue is used to
avoid deadlocks in parallel
tablespace operations (deleting
and creating tablespaces,
creating data files, tablespace
point-in-time recovery, creating
undo segments in the
tablespace, ALTER
If an ALTER DATABASE TEMPFILE DROP hangs due to a TT enqueue that is retained by the SMON
process in Oracle 9.2.0.6 or lower, Oracle bug 3833893 is responsible. This problem has been solved in
Oracle 9.2.0.7. For more information, see Note 867681.
Longer waits for the TT enqueue are generally caused by Oracle bugs. If you experience problems with this
enqueue type, you should therefore first import the latest Oracle patchset.
http://sureshgandhi.wordpress.com
相关文档
评论