SQL Tuning Advisor in OEM
We had a strange incident a couple of nights ago where an application job running an insert statement failed with an 'ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired' error. No other jobs were running so I was asked to try and determine what was holding locks on the table.
The only thing I have come up with is the same statement but with a comment before it as follows '/* SQL Analyze(252,1) */'. The time of the failure was just after the opening of the Maintenance Window and Automatic SQL Tuning is enabled. I am not familiar with this functionality but it appears to run the actual statements it is analysing. Is this correct?