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

Home -> Community -> Usenet -> c.d.o.server -> Re: Tracing Question

Re: Tracing Question

From: Sybrand Bakker <gooiditweg_at_sybrandb.verwijderdit.demon.nl>
Date: Mon, 13 Dec 2004 21:39:41 +0100
Message-ID: <ecvrr09mahduuk5vn90r07v4knqpmvvqon@4ax.com>


On 13 Dec 2004 12:09:12 -0800, amerar_at_iwc.net wrote:

>
>Hi All,
>
>I'm not sure this is really a tracing question, but here is the
>problem:
>
>We have a department that runs Oracle 8.1.7.3. The application is 400+
>Microfocus COBOL programs, poorly written. Anyhow, when an error
>occurs, the program spits out a unique error message so you know where
>in the program it went down, but you have no idea on which record was
>being processed at that time.
>
>My company does not want to change the programs, as when new relases
>come out, we would have to retrofit.
>
>I'm looking for a creative was to basically trap the error when it
>happens, and log all the info on the SQL statement, including bind
>variable values.....
>I am at a loss now and I'm looking for some help.
>
>Thanks,
>
>Arthur

alter session set event = '<error number> errorstack context forever, level 3' will accomplish this. You can also set this in init.ora and using alter system.
You'll need to set an event for every individual error.

--
Sybrand Bakker, Senior Oracle DBA
Received on Mon Dec 13 2004 - 14:39:41 CST

Original text of this message

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