Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Capture SQL stmt from ORA-54
On 07/02/2005 11:40:37 PM, Herring Dave - dherri wrote:
> Is there any way to capture the SQL statement that generates an ORA-54?
The command is:
alter system set events='54 trace name errorstack forever, level 10'
It will generate a trace file which will contain the SQL statement that the session was executing when it encountered the error. Have a good holiday. Dave, my idea of the 4th of July weekend doesn't include databases.
The trace file looks like this:
/oracle/product/10g/admin/oracle/udump/10g_ora_5461.trc
Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Production
With the Partitioning, OLAP and Data Mining options
ORACLE_HOME = /oracle/product/10g
System name: Linux
Node name: medo.noip.com Release: 2.6.11-1.35_FC3 Version: #1 Mon Jun 13 00:52:08 EDT 2005 Machine: i686
-- Mladen Gogala Oracle DBA -- http://www.freelists.org/webpage/oracle-lReceived on Sat Jul 02 2005 - 23:02:36 CDT
![]() |
![]() |