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: Chasing a session...

RE: Chasing a session...

From: Tanel Poder <tanel.poder.003_at_mail.ee>
Date: Fri, 25 Aug 2006 20:41:16 +0800
Message-id: <003d01c6c843$c1faa1f0$6501a8c0@windows01>


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_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Anjo Kolk
Sent: Friday, August 25, 2006 20:33
To: tim_at_evdbt.com
Cc: oracle-l
Subject: Re: Chasing a session...

The only real way is by sampling or tracing .......

On 8/24/06, tim_at_evdbt.com <tim_at_evdbt.com> 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...

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Aug 25 2006 - 07:41:16 CDT

Original text of this message

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