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: How to determine the values for database events that have been set

Re: How to determine the values for database events that have been set

From: Kaing, Leng <Leng.Kaing_at_team.telstra.com>
Date: Thu, 4 Mar 2004 18:45:56 +1100
Message-ID: <778AA0998E7BD411879D0008C7246DF40FB05525@ntmsg0093.corpmail.telstra.com.au>


Hi Mladen,

Sorry to have taken so long to reply. Have been busy at work.

Yes, query works like a charm. You've come through with the goods once again. Thanks! How did u find out about it? I trolled all day through metalink with different subjects along the lines of "event" and it came up with nothing.

L         



Date: Mon, 1 Mar 2004 01:39:39 -0500
From: Mladen Gogala <mgogala_at_adelphia.net> Subject: Re: How to determine the values for database events that have been set

Here is a litle something that might help:

declare
event_level number;
begin
for i in 10000..10999 loop
sys.dbms_system.read_ev(i,event_level);
if (event_level > 0) then
dbms_output.put_line('Event '||to_char(i)||' set at level '|| to_char(event_level));
end if;
end loop;
end;
/
SQL> alter session set events='10046 trace name context forever, level 10';  

Session altered.  

SQL> @read_events
Event 10046 set at level 10  

PL/SQL procedure successfully completed.  

This, of course, reads events for the current session, but if events are set on a database level, that means that they're set for each session. Needless to say, you need to be able to execute sys.dbms_system, which means the DBA role.



Leng Kaing
Email: leng.kaing_at_team.telstra.com
Phone: +61-3-9203-7589
Mobile: +61-417-371-348

Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org 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
Received on Thu Mar 04 2004 - 01:42:58 CST

Original text of this message

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