Re: Turning SQL tracing on for a Java application

From: Anony <anon_ymous_at_notahost.org>
Date: Thu, 29 May 2003 04:15:05 GMT
Message-ID: <dPfBa.780128$Zo.162530_at_sccrnsc03>


Are you using JDBC?

Have you looked at www.p6spy.com ?

> What is the best way to turn on Oracle sql tracing on for a specific
> application. I know you can set instance wide sql tracing on but that
> is not very convenient because it traces every application that uses
> that instance not just the one I am interested in. I could do
>
> EXECUTE SYS.dbms_system.set_sql_trace_in_session (sid, ...
>
> for a particular session but that means I have to do it session by
> session which is not practical since the application pools connections
> and new sessions get created and closed as the pool grows/shrinks.
>
> Is there any way to turn on tracing for all sessions of one specific
> application?
>
> Can the application itself invoke ALTER SESSION on every connection it
> creates to achieve this?
>
> Thanks!
Received on Thu May 29 2003 - 06:15:05 CEST

Original text of this message