forked from geekcomputers/Oracle-SQL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshow_events.sql
More file actions
24 lines (22 loc) · 616 Bytes
/
show_events.sql
File metadata and controls
24 lines (22 loc) · 616 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
REM Script Name : show_events.sql
REM Author : Craig Richards
REM Created : 11 April 2013
REM Last Modified :
REM Version : 1.0
REM
REM Modifications :
REM
REM Description : Shows what events are set in the database, this is for sessions mainly, but if they are set in the database they will exist in all sessions
SET SERVEROUTPUT ON;
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;
/