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: current transaction in oracle

RE: current transaction in oracle

From: Tim Sawmiller <sawmillert_at_state.mi.us>
Date: Tue, 17 Apr 2001 10:26:43 -0700
Message-ID: <F001.002EB137.20010417102117@fatcity.com>

set pagesize 1000
spool actual
SELECT

        SID,
        TYPE,
        STATUS,
        USERNAME,
        SQL_TEXT,
        EXECUTIONS,
        LOCKWAIT,
        SERVER,
        OSUSER,
        PROCESS,
        MACHINE,
        TERMINAL,
        PROGRAM
FROM
        V$SQLAREA,
        V$SESSION
WHERE
                V$SESSION.SQL_ADDRESS = V$SQLAREA.ADDRESS(+)
        AND     V$SESSION.SQL_HASH_VALUE = V$SQLAREA.HASH_VALUE(+)
ORDER BY
        SID

/
spool off

>>> anthony.hsu_at_cpms.osd.mil 04/17/01 01:25PM >>>
Try

select * from sys.v_$sqlarea

Anthony

-----Original Message-----
Sent: Tuesday, April 17, 2001 11:07 AM
To: Multiple recipients of list ORACLE-L

hi,

i am looking for a sql statement which can tell me the current sql running in oracle.

TIA
Srinivas



Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: srinivas aradhyula
  INET: ahvsrinivas_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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: Hsu, Anthony C., ,CPMS
  INET: anthony.hsu_at_cpms.osd.mil 

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

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Tim Sawmiller
  INET: sawmillert_at_state.mi.us

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 Tue Apr 17 2001 - 12:26:43 CDT

Original text of this message

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