Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Monitoring CPU per session

Monitoring CPU per session

From: Jonas A Wetterberg <jonas.a.wetterberg_at_manpower.se>
Date: Wed, 03 Oct 2001 02:29:38 -0700
Message-ID: <F001.003A019E.20011003024058@fatcity.com>

Hello

I'm trying to figure out which sessions use most CPU time. Oracle manual gave me this sql query:

SELECT v.SID, SUBSTR(s.NAME,1,30) "Statistic", v.VALUE FROM V$STATNAME s, V$SESSTAT v
WHERE s.NAME = 'CPU used by this session' AND v.STATISTIC# = s.STATISTIC#

.. but the value of 'CPU used by this session' is always 0 for all sessions. So my question is do I have to do something special to monitor CPU resourses?

The technical details about my environment: OS: Windows 2000 Advanced Server
Oracle 8.1.7.1.1 Standard Edition
The server has 4 processes of which the Oracle process is allowed to use 3...

The manual gave me another question

Regards

/Jonas

--

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

Author: Jonas A Wetterberg
  INET: jonas.a.wetterberg_at_manpower.se

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 Wed Oct 03 2001 - 04:29:38 CDT

Original text of this message

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