Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Server > Re: Slow log
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 16539 of 17418
Post > Topic >>

Re: Slow log

by Mark D Powell <Mark.Powell@[EMAIL PROTECTED] > May 11, 2008 at 01:17 PM

On May 11, 2:29=A0pm, Mladen Gogala <mgog...@[EMAIL PROTECTED]
> wrote:
> On Sat, 10 May 2008 18:15:00 -0700, iavian wrote:
> > How to log all the queries that takes more than n seconds .. like
mysql
> > show query log
>
> FGA (fine-grained auditing) might be helpful. Also, you may write
> a script that will query V$SQL and extract SQL by the elapsed time.
> However, querying that table hits the library cache latch every time.
> Don't do it too often.
>
> --
> Mladen Gogalahttp://mgogala.freehostia.com


Statspack will catpure heavy hitter SQL depending on the selected
level of the snapshots you take.  With 10g the AWR processes also
capture heavy hitter SQL though these two options may not capture all
SQL you want it is probably from a practical point of view good
enough.

You can use the trace facility to trace specific tasks of interest.
While possible I would not set it on to trace every session connected
to the database as this will generate way too much data most of which
you will not care about.

HTH -- Mark D Powell --
 




 3 Posts in Topic:
Slow log
iavian <vijay@[EMAIL P  2008-05-10 18:15:00 
Re: Slow log
Mladen Gogala <mgogala  2008-05-11 18:29:27 
Re: Slow log
Mark D Powell <Mark.Po  2008-05-11 13:17:24 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 1:36:53 CST 2008.