Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How to trace other session?

Re: How to trace other session?

From: Tim Lange <tim.lange_at_abbott.com>
Date: Tue, 13 Jul 1999 11:46:52 -0500
Message-ID: <378B6D7B.8DB99207@abbott.com>


If the session already exists, go to v$session and get the sid and the serial# of the session you are interested in. .
Then, using sqlplus, as "sys" unless you granted additional authority,

       execute dbms_system.set_sql_trace_in_session(sid, ser, TRUE);

when finished

       execute dbms_system.set_sql_trace_in_session(sid, ser, FALSE);

Then run tkprof on the resulting ".trc" file.

Tim

Doug Cowles wrote:

> How can I turn on trace for someone else's already
> running session? I'm pretty sure there is a way to do
> this..
>
> - Dc.
Received on Tue Jul 13 1999 - 11:46:52 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US