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: v$sqlarea & v$session

Re: v$sqlarea & v$session

From: Andy Rivenes <arivenes_at_llnl.gov>
Date: Wed, 12 Mar 2003 10:29:14 -0800
Message-ID: <F001.00567D95.20030312102914@fatcity.com>


How about:

SELECT a.sid,

        a.username,
        c.disk_reads,
        c.buffer_gets,
        c.sorts,
        c.executions,
        c.rows_processed,
        c.sql_text
   FROM v$session a,
        v$sqlarea c

  WHERE a.sid = &&sessid
    AND a.sql_address = c.address
-- AND a.SQL_HASH_VALUE = c.HASH_VALUE

    AND c.hash_value =

        DECODE( SIGN(a.sql_hash_value), -1, a.sql_hash_value + POWER(2,32),
                                         a.sql_hash_value )
/

Not sure if there's still an issue with the hash_value or not.

At 09:18 AM 3/12/2003 -0800, you wrote:

>I'm suffering from a senior moment.
>The question is at the every bottom.
>
>
>
>So exactly how do I join V$SQLAREA to V$SESSION?
>

Andy Rivenes
arivenes_at_llnl.gov

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Andy Rivenes
  INET: arivenes_at_llnl.gov

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 Mar 12 2003 - 12:29:14 CST

Original text of this message

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