RE: Why does a job loose its context?

  • From: "Mercadante, Thomas F (LABOR)" <Thomas.Mercadante@xxxxxxxxxxxxxxxxx>
  • To: <post.ethan@xxxxxxxxx>, <oracle-l@xxxxxxxxxxxxx>
  • Date: Thu, 2 Mar 2006 11:22:53 -0500

Ethan

According to the docs,

SERVERERROR

Specify SERVERERROR to fire the trigger whenever a server error message
is logged.

The following errors do not cause a SERVERERROR trigger to fire:

    * ORA-01403: data not found
    * ORA-01422: exact fetch returns more than requested number of rows
    * ORA-01423: error encountered while checking for extra rows in
exact fetch
    * ORA-01034: ORACLE not available
    * ORA-04030: out of process memory


So in your case, sql errors would not fire the trigger.  I always
thought that this trigger would only fire for things that appear in the
alert log.  But sql processing errors would not show up.

Hope this helps.

Tom

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Ethan Post
Sent: Thursday, March 02, 2006 11:14 AM
To: oracle-l@xxxxxxxxxxxxx
Cc: mcdonald.connor@xxxxxxxxx
Subject: Re: Why does a job loose its context?

Speaking of triggers not firing, anyone seen an example of where a
SERVERERROR trigger does not fire?

I was looking an an issue this week where a log file in an app is
reporting a ORA- error (no data found), so we added some logging to
the code and turned on SERVERERROR trigger. I was hoping to get
something like this in my log file.

..entering proc foo...
..ORA- error
...

However, I never got the ORA- error in my log (the application log
still reports it, but it is possible some developer has hard coded
this particular error string someplace where the error is not really
occurring, strange but possible).

The only other option is that the trigger is not firing, I see errors
for plenty of other sessions in the database. At first I thought it
was because I had the EVENT level elevated for this error and the dump
of a trace file was causing this, but we removed that and still
getting nothing.
--
//www.freelists.org/webpage/oracle-l


--
//www.freelists.org/webpage/oracle-l


Other related posts: