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: Sampling V$SESSTAT

Re: Sampling V$SESSTAT

From: Connor McDonald <hamcdc_at_yahoo.co.uk>
Date: Thu, 05 Sep 2002 00:58:17 -0800
Message-ID: <F001.004C829A.20020905005817@fatcity.com>


How about this for a strategy? I'm only suggesting this because its what I implemented on a site some time back where the requirement was "we want to get stats, but you cannot store anything on our database" (so statspack et al was prohibited).

So we ended up with a "stealth" storage approach:

We dumped into a database pipe (one row from v$sesstat = one message) the non-zero stats. Then every 'x' mins, we read back from the pipe, spit out anything that has a positive delta from the current v$sesstat, and store the current set back into the pipe. In this way, we got "close" to reasonable stats, the shortfalls being a few data inconsistencies with sid's that get reused across sampling periods. The pipe also nicely handles the db shutdown issue (simply because the pipe disappears so you counters get automatically reset)

hth
connor


Connor McDonald
http://www.oracledba.co.uk
http://www.oaktable.net

"Remember amateurs built the ark - Professionals built the Titanic"



Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: =?iso-8859-1?q?Connor=20McDonald?=
  INET: hamcdc_at_yahoo.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 Thu Sep 05 2002 - 03:58:17 CDT

Original text of this message

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