RE: Chasing a session...
- From: Tanel Poder <tanel.poder.003@xxxxxxx>
- To: "'oracle-l'" <oracle-l@xxxxxxxxxxxxx>
- Date: Fri, 25 Aug 2006 20:41:16 +0800
Yep and if you have SQL statement logging as a requirement for future (e.g.
not just ad hoc), then you could set up fine grained auditing (DBMS_FGA).
FGA is able to log both SQL statements plus bind variables. Of course you
need storage for logging all that..
Tanel.
_____
From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx]
On Behalf Of Anjo Kolk
Sent: Friday, August 25, 2006 20:33
To: tim@xxxxxxxxx
Cc: oracle-l
Subject: Re: Chasing a session...
The only real way is by sampling or tracing .......
On 8/24/06, tim@xxxxxxxxx <tim@xxxxxxxxx> wrote:
Depending on how the application is written, then V$OPEN_CURSOR might
provide what you are looking for -- a "history" of SQL statements executed
by a session. However, it is at best only the most primitive of logging for
that purpose, and if the application takes care to close unused cursors, it
will be a misleadingly incomplete history. So, you almost have to hope for
a sloppily written application, which is sadly not too much to hope for...
:-)
Just an idea...
- Follow-Ups:
- Sending feed back to sqlplus user
- From: Spears, Brian
- References:
- Re: Chasing a session...
- From: Anjo Kolk
Other related posts:
- » Chasing a session...
- » RE: Chasing a session...
- » RE: Chasing a session...
- » Re: Chasing a session...
- » RE: Chasing a session...
- Sending feed back to sqlplus user
- From: Spears, Brian
- Re: Chasing a session...
- From: Anjo Kolk