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

Home -> Community -> Mailing Lists -> Oracle-L -> Where's my trace file?

Where's my trace file?

From: Daniel W. Fink <optimaldba_at_yahoo.com>
Date: Sat, 29 Mar 2003 17:48:36 -0800
Message-ID: <F001.00575D8A.20030329174836@fatcity.com>


Tired of wading through the long list of trace files to find yours? Here is a quick script to find your sessions process id, which is part of the trace file name.

  select s.sid, s.serial#, s.username, s.osuser, p.spid   from v$session s, v$process p
  where s.sid = (select sid from v$mystat where rownum = 1)     and p.addr = s.paddr;

       SID    SERIAL# USERNAME                       
OSUSER                         SPID
---------- ---------- ------------------------------ 
------------------------------ ------------
         9         72 BCA                            dwfink        
                 2628

Now, go out to 'user_dump_dest' and you can find the file with '2628' in the name and there is your trace file.

--

Daniel W. Fink
http://www.optimaldba.com

IOUG-A Live! April 27 - May 1, 2003 Orlando, FL

   Sunday, April 27 8:30am - 4:30pm - Problem Solving with Oracle 9i SQL    Wednesday, May 1 1:00pm - 2:00pm - Automatic Undo Internals

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Daniel W. Fink
  INET: optimaldba_at_yahoo.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 Sat Mar 29 2003 - 19:48:36 CST

Original text of this message

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