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: Why does a job loose its context?

RE: Why does a job loose its context?

From: Mercadante, Thomas F (LABOR) <Thomas.Mercadante_at_labor.state.ny.us>
Date: Thu, 2 Mar 2006 11:22:53 -0500
Message-ID: <ABB9D76E187C5146AB5683F5A07336FF681025@EXCNYSM0A1AJ.nysemail.nyenet>


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:

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_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Ethan Post Sent: Thursday, March 02, 2006 11:14 AM
To: oracle-l_at_freelists.org
Cc: mcdonald.connor_at_gmail.com
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.

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


--
http://www.freelists.org/webpage/oracle-l
Received on Thu Mar 02 2006 - 10:22:53 CST

Original text of this message

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