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:connecting session to sqlarea to find the sql_text

RE:connecting session to sqlarea to find the sql_text

From: sam d <sam_orafan_at_YAHOO.COM>
Date: Sun, 21 Jul 2002 23:08:21 -0800
Message-ID: <F001.0049D75A.20020721230821@fatcity.com>


Welcome mate ,
Same question I posted a month back
First get the

   select osuser,sid from v$session;
then use sid in foll. query

SELECT sql_text FROM v$sqlarea WHERE (address, hash_value) IN
(SELECT sql_address, sql_hash_value FROM v$session   WHERE sid = &sid_number)


Do You Yahoo!?
Yahoo! Health - Feel better, live better http://health.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: sam d
  INET: sam_orafan_at_yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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 Mon Jul 22 2002 - 02:08:21 CDT

Original text of this message

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