Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Which SQL is executing
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