how to use dbms_system.set_sql_trace_in_session with 10046 level 12 [message #211297] |
Wed, 27 December 2006 19:47 |
kumarsz
Messages: 180 Registered: March 2005 Location: canada
|
Senior Member |
|
|
Hi,
Oracle 9i on Linux (RAC)
i am tracing session for Oracle job where i could found the trace file in bdump.
however, i am using following method which is not giving me wait related information
exec dbms_system.set_sql_trace_in_session(sid,serial#,true/false);
Later in Orafaq only i found the following information
Behind the scenes, it actually just calls DBMS_SYSTEM.SET_EV to set event 10046 at level 1.
DBMS_SYSTEM.SET_EV (
si IN BINARY_INTEGER,
se IN BINARY_INTEGER,
ev IN BINARY_INTEGER,
le IN BINARY_INTEGER,
nm IN BINARY_INTEGER);
My question is can i use DBMS_SYSTEM.SET_EV as a replacement to exec dbms_system.set_sql_trace_in_session so that i can use event 10046 with level 12?
or
DBMS_SYSTEM.SET_EV is to be followed again with dbms_system.set_sql_trace_in_session?
Else can i use dbms_system.set_sql_trace_in_session with 10046 level 12?
Thanks and Regards,
Pratap
|
|
|
|
|