Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Is there an Event for Capturing Oracle Errors in a Trace File?

Re: Is there an Event for Capturing Oracle Errors in a Trace File?

From: biti_rainy <biti_rainy_at_itpub.net>
Date: Fri, 17 Sep 2004 11:03:04 +0800
Message-Id: <20040917030328.5A19172CF96@turing.freelists.org>


hi,Andrew V Zitelli

  the EVENT# like sqlcode ,for example

select count(*) from (select * from member order by member_level)

                                             *
ERROR at line 1:
ORA-01652: unable to extend temp segment by 128 in tablespace FCPTEST
################

sqlcode = 1652
you can set event 1652
##########################


ALTER SESSION SET EVENTS '1652 trace name errorstack level 1';

or
alter system set events '1652 trace name errorstack level 1'; alter system set events '1652 trace name errorstack off';

then generate the trace file

[oracle_at_oradev udump]$ more ocndev_ora_15452.trc /opt/oracle/admin/ocn/udump/ocndev_ora_15452.trc Oracle9i Enterprise Edition Release 9.2.0.3.0 - Production JServer Release 9.2.0.3.0 - Production
ORACLE_HOME = /opt/oracle/products/9.2.0 System name: Linux

Node name:      oradev
Release:        2.4.9-e.3
Version:        #1 Fri May 3 17:02:43 EDT 2002
Machine:        i686

Instance name: ocndev
Redo thread mounted by this instance: 1
Oracle process number: 15
Unix process pid: 15452, image: oracle_at_oradev (TNS V1-V3)

Best regards

msn: biti_rainy_at_hotmail.com
a dba from alibaba(china)

        


--
http://www.freelists.org/webpage/oracle-l
Received on Thu Sep 16 2004 - 21:59:06 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US