Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Select from V$OPEN_CURSOR chronologically ordered ?
Hi,
The following SELECT returns me all cursors opened by a session,
with the string "current" in front of the statement currently
being executed:
select
st.address||st.hash_value n, decode(st.address||st.hash_value, sql_address||sql_hash_value, 'current'), st.sql_text from v$open_cursor oc, v$session s, v$sqltext st
Do you think there's a way to get this displayed with a sort on some kind of timestamp stored somewhere in some obscure X$Kxxxx table to get it listed in the chronological sense of cursor openings ? I spent hours trying to figure out whether it's possible but to no avail. (I'm talking about 8i and 9i structures as well)
Thanks. Received on Fri Mar 04 2005 - 05:11:33 CST