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

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

Re: Where's my trace file?

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Sun, 30 Mar 2003 00:28:35 -0800
Message-ID: <F001.00575DC5.20030330002835@fatcity.com>

Another option (from about 8.1.6) is to

    alter session set tracefile_identifier = 'my_text';

The trace file name will then hold 'my_text'. Moreover, every time you issue the command with a new bit of text, the session will open a new text file (and the last line of the old text file will also reference it)

The current 'traceid' appears in v$process - though there seem to be a couple of bugs with it in earlier versions.

This doesn't work for multi-threaded server, unfortunately, although trying it on a 9.2. system I found that the s000 trace migrated from the bdump directory to the udump directory as a side-effect.

Regards

Jonathan Lewis
http://www.jlcomp.demon.co.uk

  The educated person is not the person
  who can answer the questions, but the
  person who can question the answers -- T. Schick Jr

One-day tutorials:
http://www.jlcomp.demon.co.uk/tutorial.html

____UK_______April 8th
____UK_______April 22nd
____Denmark__May 21-23rd
____USA_(FL)_May 2nd

Three-day seminar:
see http://www.jlcomp.demon.co.uk/seminar.html

____UK_(Manchester)_May
____Estonia___June (provisional)
____USA_(CA, TX)_August

The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html

> 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
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jonathan Lewis
  INET: jonathan_at_jlcomp.demon.co.uk

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 Sun Mar 30 2003 - 02:28:35 CST

Original text of this message

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