Skip to Main Content

Breadcrumb

Question and Answer

Chris Saxon

Thanks for the question.

Asked: August 30, 2016 - 8:37 am UTC

Last updated: August 30, 2016 - 12:43 pm UTC

Version: 11.2.0.3

Viewed 1000+ times

You Asked

Hi,

I need your help, I am new to oracle.

My question is ,How can i find the deadlock in my oracle database?

Your help will be appreciated,thanks in advance.

Regards.

DB:11.2.0.3
OS:RHEL6

and Chris said...

You don't need to "find" it. Oracle will tell you when it discovers a deadlock!

When it does it'll raise an ORA-00060. And write this to the alert log, e.g.:

ORA-00060: Deadlock detected. More info in file /ade/b/573371012/oracle/log/diag/rdbms/b11204n/b11204n/trace/b11204n_ora_24107_CHRIS.trc.


The tracefile will give you more information about the sessions and SQL involved. For more info on reading this, see:

https://asktom.oracle.com/pls/asktom/f?p=100:11:0::::p11_question_id:1528515465282
https://oracle-base.com/articles/misc/deadlocks

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

cross-post :(

A reader, August 30, 2016 - 11:19 am UTC

Just putting this link here as a cross-reference to the very likely cross-post of this same question

https://community.oracle.com/thread/3966519
Chris Saxon
August 30, 2016 - 12:43 pm UTC

Thanks for the head's up.