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: Monitoring CPU per session

RE: Monitoring CPU per session

From: Mark Leith <mark_at_cool-tools.co.uk>
Date: Wed, 03 Oct 2001 03:10:56 -0700
Message-ID: <F001.003A023E.20011003030058@fatcity.com>

Jonas,

To monitor things such as CPU consumption per session you will need to make sure that TIMED_STATISTICS = TRUE in your instance.

SQL> show parameter timed_statistics;

If it is false (which it WILL be in your case) then:

SQL> alter system set timed_statistics = true;

HTH Mark

-----Original Message-----
Wetterberg
Sent: Wednesday, October 03, 2001 11:41
To: Multiple recipients of list ORACLE-L

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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Mark Leith INET: mark_at_cool-tools.co.uk 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 - 05:10:56 CDT

Original text of this message

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