Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Where's my trace file?
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
![]() |
![]() |