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

Home -> Community -> Usenet -> c.d.o.server -> Tracing in Multi-Threaded Server

Tracing in Multi-Threaded Server

From: Martin Haltmayer <Martin.Haltmayer_at_0800-einwahl.de>
Date: Wed, 29 Dec 1999 01:53:56 +0200
Message-ID: <38694D94.3DB4726E@0800-einwahl.de>


Hello all,

we use multi-threaded server, Net8, Oracle 8.1.5 on Sun Solaris 2.6

We can easily switch on and off tracing by sys.dbms_system.set_sql_trace_in_session of an already running session. As you all may know tracing is fun with shared servers as your traced statements are spread across the trace files which are related to the server processes, not the sessions.

However, switching tracing off does not release the file (detected by /etc/fuser). It only stops writing to that trace files.

Removing the trace files after switching off the tracing (or terminating the traced sessions) is possible in Unix, but if you start another trace session the deleted trace files will not be recreated (as the shared servers think they are still there - for their process they in fact are).

But the problem is that starting a new trace session does not write a new header. Without it tkprof will not recognise commands in the trace file.

Any help appreciated. How do you handle this situation without restarting the instance?

Martin Received on Tue Dec 28 1999 - 17:53:56 CST

Original text of this message

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