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: how do I calculate the Oracle's usage

RE: how do I calculate the Oracle's usage

From: Stephen Lee <slee_at_dollar.com>
Date: Mon, 25 Nov 2002 11:03:13 -0800
Message-ID: <F001.0050B176.20021125110313@fatcity.com>


> > I'm trying to figure out how much of the srever's resources
> > (CPU-wise) a database and the application ....

You can try the following. Substitute the name of the database for "ABCD" in the awk command. On a multi-cpu box, the sum can be more than %100.

ps -eo %cpu -o args | awk '$2 ~ /ABCD/ {sum = sum + $1}; END {print sum}'

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Stephen Lee
  INET: slee_at_dollar.com

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 Mon Nov 25 2002 - 13:03:13 CST

Original text of this message

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