Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Activate SQL logging
MCArch wrote:
> "Mark A" <nobody_at_nowhere.com> wrote in message
> news:SIKdncZBvonVXZPfRVn-2A_at_comcast.com...
>
>>>>>How can I capture incoming SQL statements to a text file? >>>> >>>>AFAIK, there is no (simple?) way to do this. >>>> >>>>Why in the world do you even want to consider doing this? >>>> >>>>The contents of the "text file" would be subject to security/privacy >>>>compromises. >>> >>>Just trying to figure out what an application is doing to the database.
>>>thought there would be some way to activate a log, that would capture
>>>SQL. >>> >> >>This can easily be done in DB2, using either a statement monitor and >>snapshot (logs all SQL between when the monitor is turned on and then
>>off). Lots of information is provided such as number of executions,
>>execution time, average CPU time, etc. This can be done globally, or for a >>specific application. >> >>You can also use the Event Monitor to track specific SQL events and notify >>you when they occur. If a more powerful tool is needed, the DB2 Query >>Patroller can be used. >>
Actually you didn't ... MarkA just needs a few years to mature.
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace 'x' with 'u' to respond)Received on Thu Feb 17 2005 - 11:47:21 CST