Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: How to re-trace a session
If you are running a UNIX variant, then the Oracle server process which was
writing to the trace file probably still had a "file handle" open on it. On
some platforms, you can use the "fuser" command to verify this...
So, when you re-initiated tracing, it was still trying to use the existing file handle. If you performed "mv" on the file within the same file-system, then the newly-named file should have received the new output. If you "cp"d the file then deleted the original or performed "mv" across file-systems, then the file actually still exists (i.e. still occupies disk blocks) but the i-node has been blown away, so you cannot access the data...
> Hello,
>
> I successfully traced a long running session by using dbms_system.set_ev
> procedure, and moved the trace file to somewhere else. However, when
> I used the same command to re-trace the same session, I can't see the
> trace file again. There was no error message. I tried to use oradebug
> and dbms_system.set_sql_trace_in_session to trace the same session. No
> matter what method I used, I still can't see the trace file. Then, I
> tried to trace other sessions using all available methods, but all
> failed. Even though there was no error message, I can't see trace files.
>
> Can someone tell me what is wrong and how can I re-enable the
> sql trace?
>
> Tom
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Xie, Tom
> INET: TXie_at_taylorpub.com
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Tim Gorman INET: Tim_at_SageLogix.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Oct 08 2002 - 13:34:18 CDT
![]() |
![]() |