History of deadlocks in Oracle?
问题 Does oracle keeps any history about deadlocks? e.g. Can i know which sqls were executed when the deadlock was detected, and oracle exception ORA-00060 (deadlock detected while waiting for resource) is thrown? Thanks in advance. 回答1: There's no history built-in to the database, however, when a deadlock occurs, a couple of things happen. First, it gets logged to the alert.log. Second, a trace file is written. So, there's some history recorded there. The tracefile will contain many useful bits