Académique Documents
Professionnel Documents
Culture Documents
Copyright © Epsilon 2015 Epsilon Data Management, LLC. All rights reserved.
data locked by each other, resulting in all the sessions being
blocked. Oracle automatically detects and resolves deadlocks
by rolling back the statement associated with the transaction
that detects the deadlock. Typically, deadlocks are caused by
poorly implemented locking in application code.
2 2
Copyright © Epsilon 2015 Epsilon Data Management, LLC. All rights reserved.
3
Example for a Deadlock
situation
3
Types of Deadlock.
TM deadlock
LB deadlock
BREIFING
ITL contention, eg: INITRANS setting for the object is too small, it can not handle the
number of concurrent transactions.
The solution is to increase INITRANS setting for the object involved in the deadlock using
“ alter table" or "alter index" command
The SQL involved in the deadlock can be found in lmd0 or client trace. The object involved
in the SQL should be checked including table and its associated index.
If the object involved has a bitmap index, then the bitmap index should be dropped to
accommodate concurrent DML.
6
TM deadlock
LB lock type refers to library cache lock. This type of deadlock is usually caused by a bug.
10
Copyright © Epsilon 2015 Epsilon Data Management, LLC. All rights reserved.
11
11