Just a quick note on how to use ORADEBUG in order to find events that are enabled on system or session level.
Starting from Oracle 10.2 you could use ORADEBUG EVENTDUMP in order to get all events enabled either on session or system level. (not sure if this is available in 10.1)
The synopsis is:
oradebug eventdump
SQL> oradebug doc event action eventdump
eventdump
- list events that are set in the group
Usage
-------
eventdump( group < system | process | session >)
SQL> alter session set events '10046 trace name context forever, level 8';
Session altered.
SQL> alter session set events '942 trace name errorstack';
Session altered.
SQL> alter system set events 'trace[px_control][sql:f54y11t3njdpj]';
System altered.
SQL> oradebug setmypid
SQL> oradebug eventdump session;
trace [RDBMS.PX_CONTROL] [sql:f54y11t3njdpj]
sql_trace level=8
942 trace name errorstack
SQL> oradebug eventdump system
trace [RDBMS.PX_CONTROL] [sql:f54y11t3njdpj]
This note was more for my own reference. I hope someone else finds it useful too.
No comments:
Post a Comment