Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: How to dump/trace/log all (ACTIVE) session SQL?

Re: How to dump/trace/log all (ACTIVE) session SQL?

From: Li-Shan Cheng <exriscer_at_gmail.com>
Date: Tue, 17 Jan 2006 12:03:10 +0100
Message-ID: <6e9345580601170303u2aa0fbf8g98d5ad902ee7e90@mail.gmail.com>


Do you use bind variables?

On 1/17/06, Chris Marquez <marquezemail_at_gmail.com> wrote:
>
> Env:
> Oracle 9205
> RHEL3
>
> I have situation (another post on this list) where we have severe spikes
> server load and db ACTIVE sessions (waits) spikes.
> When left alone the db and server spiral out of control (and hang), but
> before it gets really bad I can kill and stop stuff.
>
> But I have no idea what (SQL) these session are doing...I know they are
> active and waiting ( "latch free" "library cache" waits)
> I don't want to trace the whole database all the time, but I would like to
> dump/trace/log the current SQL run (waiting) for all database sessions?
>
> Any ideas?
>
> PS I can NOT run SQL (v$sqltext) because my own session gets caught up as
> any ACTIVE waiting session.
>
> Thanks,
>
> --
> Chris Marquez
> Oracle DBA

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Jan 17 2006 - 05:03:26 CST

Original text of this message

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