简体   繁体   中英

Oracle 11g log file for finding details of an error occured in the past (ORA-00054)

An error 'ORA-00054: resource busy and acquire with NOWAIT specified' occurred last night in a TRUNCATE TABLE statement in one of our scheduled jobs. I need to find out which process and DML statement was holding the lock at that time. I know that we can check for any existing sessions which lock the object, but can we figure out the details for a past error from any oracle trace files?

Theoretically you can do it by looking into v$active_session_history for queries that might potentially to lock your table in exclusive mode. Another theoretical way is to take a look into traces generated in bdump/udump directories of your server. The best way is to be prepared for the next time by event setup, that will generate trace in case this specific error will appear.

您可能想阅读有关使用ASH诊断锁定问题的博客。那里有很好的信息和演示。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM