Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Sampling V$SESSTAT
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
"Remember amateurs built the ark - Professionals built the Titanic"
-- 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
![]() |
![]() |