Many a times we need to trace a user session.
For this oracle has supplied a package called DBMS_TRACE.
To Trace a user session we can start Sql Tracing by using -
exec dbms_support.start_trace_in_session(sid,serial#,binds=>true,waits=>true);
Since we are setting waits=> true this will capture wait information of Sqls.
And Binds=> true will capture bind values.
To stop tracing -
exec dbms_support.stop_trace_in_session(sid,serial#)
No comments:
Post a Comment