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: Any way to see the currently running SQL in one session.

RE: Any way to see the currently running SQL in one session.

From: Charu Joshi <joshic_at_mahindrabt.com>
Date: Wed, 16 Oct 2002 02:43:27 -0800
Message-ID: <F001.004EA298.20021016024327@fatcity.com>


Hi,

Please try the following script in SQL*Plus:

select sql_text from v$sqltext
where address = (select sql_address from v$session where sid = &sid) order by piece;

This will prompt you for the session_id for which you want to see the current running statement.

Regards,
CJ

-----Original Message-----
Sent: Wednesday, October 16, 2002 1:40 AM To: Multiple recipients of list ORACLE-L

Dear ALL,

     Is there any way to see the currently running SQL in one session? I used v$open_cursor, but there might be many SQL statements, I don't know which one is currently running. And more, if I execute a stored procedure, which SQL statements could be seen in v$open_cursor?

Any clues would be much appreciated.

TIA Chuan



Disclaimer

This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.



Visit us at http://www.mahindrabt.com

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Charu Joshi
  INET: joshic_at_mahindrabt.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Oct 16 2002 - 05:43:27 CDT

Original text of this message

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