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,
----- Original Message -----
Sent: Monday, June 04, 2001 5:00 PM
Subject: Re: Which SQL is executing

SELECT T.SQL_TEXT FROM V$SQLTEXT T,V$SESSION S 
WHERE  S.SQL_ADDRESS=T.ADDRESS ORDER BY T.PIECE;
 
Sam
----- Original Message -----
Sent: Monday, June 04, 2001 9:30 AM
Subject: Which SQL is executing

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.
 
Chuan

Reply via email to