RE: To set events or not set events, that is the question

Niall,
        There's a bug(3124081)in 9 that can cause dumps and abends when you
get an error that doesn't refer to any text like 1017 etc.
        I opened a TAR for 9.2.0.4 and Oracle responded with
15-JUN-04 16:45:32 GMT
The bug was updated with information that a backport request was filed
against it. The backport request that was filed for both 9.2.0.4 and 9.2.0.5
was approved for 9.2.0.5. An approval was made for 9.2.0.5. However, a new
backport exception request will have to be filed for 9.2.0.4. I will keep
you posted on progress


        Until we get backport our workaround was to use an IN list like:
if dbms_standard.server_error(1) in
    (900
    ,1400
    ,1401
    ,1722
    )
or dbms_standard.server_error(1) between 900 and 985
 then
   n:= ora_sql_txt(sql_text);
   for i in 1..n loop
   var_sqltext:=var_sqltext||sql_text(i);
   end loop;
end if;

From Tom Kyte:
Sent: Saturday, June 12, 2004 8:43 AM
To: lawrence.wolfson@xxxxxxxxxx
Subject: trigger issue see <Note:258495.1>
if you wanted you could contact support, reference bug 3124081 which is 
fixed in 10g and request a backport. At that point in time, the 
ora_sql_txt function will return a "numeric/value error" (something you 
can catch)
-- 
Thanks
-- 
Thomas Kyte tkyte@xxxxxxxxxx
-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx]On Behalf Of Niall Litchfield
Sent: Tuesday, June 15, 2004 3:16 AM
To: oracle-l@xxxxxxxxxxxxx
Subject: Re: To set events or not set events, that is the question


comments as always
On Mon, 14 Jun 2004 16:06:33 -0600, Daniel Fink <daniel.fink@xxxxxxx> wrote:
> 
> I can't speak for Oracle (nor Sun), but my take is that often these events
are set for a specific purpose, then the reason for
> setting them disappears into the mist of time. I love the ones that
reference a TAR that you can no longer view and Support can't
> tell you why. Anytime a new version (even a bug fix) is installed, the
event may cause new problems.

I agree entirely. 

> 
> If there is any other way to deal with a problem, I would definitely do
it.

And there is.... 

You can log the errors and associated statements, plus lots of other
goodies if you want to a table using a trigger and the system events
that are (I think) new in 9. It also has the advantage that you can
change what events you monitor, or enable/disable monitoring without
bouncing the database.

I have an example set of scripts on my site (utility for trapping
arbitrary server errors or some such wording) . Naturally since I
wrote the script we haven't had a single 1652 (which we were looking
for) but you'll get the idea.



-- 
Niall Litchfield
Oracle DBA
http://www.niall.litchfield.dial.pipex.com

P.S. Dan - you might like to check out the creative commons licensing
for your intellectual property questions.
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@xxxxxxxxxxxxx
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------


**********************************************************************
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.

----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@xxxxxxxxxxxxx
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

Other related posts: