Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> How to trace sql comes from middleware in production environment?
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 don't want to trace the
whole database. I can trace one session, however, corba server set up
about 70 sessions to DB. God knows which one is used by this click. I
use the following way in the test environment.
1.restart DB and application;
2.run the following query before the click;
SELECT q.hash_value,
q.sql_text, q.first_load_time
It works in test environment, but I cannot use it in production. Is it any better way?
Regards,
Bin
Received on Mon Apr 29 2002 - 21:28:35 CDT