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: Which SQL is executing

Re: Which SQL is executing

From: Chuan Zhang <chuan_at_asiaonline.net>
Date: Tue, 05 Jun 2001 23:32:28 -0700
Message-ID: <F001.0031D6D0.20010605232529@fatcity.com>

Hi, Sam,
 
 Thanks for your information.
 

To my understanding, the script you gave is for all the queries. There is still no way to figure out which query is running.
 

Chuan,
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">

  SELECT T.SQL_TEXT FROM V$SQLTEXT T,V$SESSION S    WHERE  S.SQL_ADDRESS=T.ADDRESS ORDER BY T.PIECE;    
  Sam
  <BLOCKQUOTE
  style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">

    Hi All,
     
     
    From v$open_cursor, I know every SQL      opened and parsed in one session. Is there any way to know which SQL is     running. Or put another way, can all the SQLs in one session be sorted     in timing order dynamically?
     
    Any clue would be much
appreciated.

     
    <FONT face=Arial
size=2>Chuan Received on Wed Jun 06 2001 - 01:32:28 CDT

Original text of this message

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