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

Home -> Community -> Usenet -> c.d.o.server -> Re: Is thjere a way to find all sql satements run by a session

Re: Is thjere a way to find all sql satements run by a session

From: <dbaplusplus_at_hotmail.com>
Date: 28 Mar 2006 09:23:40 -0800
Message-ID: <1143566620.883992.159490@g10g2000cwb.googlegroups.com>


I was succesful in writing a script using v$sql, v$sqltext, v$sql_plan to get all the statements in shared pool at that point in time which exceed some criterion (like elapsed_time > 0.5 mins). Now I can see entire statements (without getting chopped - spme of my statements are 500 lines long - were dynamical genearted) as well see sql based on elapshed time (somehing which statspack or OEM does not show).

Thanks a lot for various responses. Received on Tue Mar 28 2006 - 11:23:40 CST

Original text of this message

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