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 -> Re: How to trace sql comes from middleware in production environment?

Re: How to trace sql comes from middleware in production environment?

From: Ban Spam <ban-spam_at_operamail.com>
Date: Fri, 03 May 2002 02:26:06 GMT
Message-ID: <Xns9202C5B4D51D4SunnySD@68.6.19.6>


wangbin_at_start.com.au (wangbin) wrote in news:2d15bd69.0204291828.719f8ba8_at_posting.google.com:

> Our application has N-tie structure: Browser+corba server + DB. Many
> times I am asked what happens in the db when clicking this button.
> It's quite easy to identify a active query, if it lasts for a while. I
> have the problem if it finishes in a second.

I just solved a similar problem for my company. The good news is that we control the source code, so the fix was easy.
1) create a PL/SQL procedure which does ALTER SESSION SET EVENT ......
[I forget the specific value 1046, value 8 or something like that] 2) have another procedure where turns off the trace. 3) modify the application so a user can manually turnon/turn-off tracing.

Now the problem is solved
I can be contacted for more detail at oracledba at operamail dot com Received on Thu May 02 2002 - 21:26:06 CDT

Original text of this message

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