Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Lost PERFSTAT bridge scripts
Jared I already did but I must have been half asleep(or more) because he
does say
"its impossible to report across a shutdown, but it is possible to reduce the lost periods of time (10:00 to 10:15 and 10:20 to 11:00 in our example) by automatically performing snapshots before shutdown and after startup. Its easily done with BEFORE-SHUTDOWN and AFTER-STARTUP triggers."
I do use a script from Tim Gorman that works very well (below)
Larry
COL NAME FOR A30
/***********************************************************************
* File: sptrends.sql
* Type: SQL*Plus script
* Author: Tim Gorman (SageLogix, Inc.)
* Date: 15-Jul-2003
accept V_NBR_DAYS prompt "How many days of data to examine? "
prompt Some useful database statistics to search upon:
select rpad(' ',4,' ')||name name
from v$statname
where name like '%logical%' or name like '%physical%' or name like '%redo%' or name like '%sort%' or lower(name) like '%cpu%'
s.value, s.value - lag(s.value) over (order by s.dbid, s.instance_number, s.snap_id), s.value), 0) value from stats$sysstat s, stats$snapshot ss
and ss.dbid = s.dbid and ss.instance_number = s.instance_number and ss.snap_time between (sysdate - &&V_NBR_DAYS) and sysdateand s.name = '&&V_STATNAME')
s.value, s.value - lag(s.value) over (order by s.dbid, s.instance_number, s.snap_id), s.value), 0) value from stats$sysstat s, stats$snapshot ss
and ss.dbid = s.dbid and ss.instance_number = s.instance_number and ss.snap_time between (sysdate - &&V_NBR_DAYS) and sysdateand s.name = '&&V_STATNAME')
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Jared Still
Sent: Thursday, July 29, 2004 3:04 PM
To: Oracle-L Freelists
Subject: Re: Lost PERFSTAT bridge scripts
On Thu, 2004-07-29 at 11:30, Wolfson Larry - lwolfs wrote:
> Last week I found a link to startup and shutdown triggers that generated > snaps so Perfstat could keep track of info over a shutdown. >
Nice idea. Please share when you find it again.
DB bounces mess up my pretty response time charts. :)
Jared
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html ----------------------------------------------------------------- ********************************************************************** The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please re-send this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Thu Jul 29 2004 - 15:22:46 CDT
![]() |
![]() |