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

  • From: "Kaing, Leng" <Leng.Kaing@xxxxxxxxxxxxxxxx>
  • To: <mgogala@xxxxxxxxxxxx>
  • Date: Thu, 4 Mar 2004 18:45:56 +1100

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@xxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxx
put 'unsubscribe' in the subject line.
--
Archives are at //www.freelists.org/archives/oracle-l/
FAQ is at //www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

Other related posts: