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 ----- Original Message ----- To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]> Sent: 30 March 2003 02:48 > 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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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).