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: DB Slow down

Re: DB Slow down

From: Tim Gorman <tim_at_evdbt.com>
Date: 2006-01-06 18:17:02
Message-id: BFE3F41E.306E4%tim@evdbt.com


One good use of STATSPACK is that it can provide the ³historical² perspective that Mogens mentions, albeit at a high level. Taking snapshots hourly and saving that data for a couple weeks enables one to ³look backward in time² to see what was happening then versus what is happening now.

I have a useful SQL*Plus script called ³sp_systime_9i.sql² (http://www.EvDBT.com/tools.htm) that can be used to perform ³response-time analysis² according to Anjo¹s YAPP method over time, using snapshot data in STATSPACK. It won¹t necessarily pinpoint the answer the way 10046 tracing can, but it can certainly provide a useful long view. It has an obscure bug or two which I¹m trying to fix and post, so if you see spikes of really huge numbers related to ³CPU time², then ignore those for now...

Anyway, if ³CPU time² or the ³db file ... read² events appear dominant, then consider using the ³top_stmt4_9i.sql² and ³run_top_stmt4.sql² scripts to obtain a ³top-N SQL² report over the period of time after differences were noted. As everyone is aware, performance problems are most often due to application SQL (particularly when everyone swears that ³nothing has changed² :-) )...

Your story also illustrates good reasons to resist ³seniors² who advise blindly flipping switches (i.e. change this or that parameter, take db out of archivelog, etc), in favor of obtaining and following facts...

on 12/26/05 6:17 PM, Mogens Nørrgaard at mln_at_miracleas.dk wrote:

> Only one real idea or suggestion: If you don't know where the time was spent
> before the problem started, you'll have a hard time now spotting the
> difference. Trace, trace, trace.
> 
> Mogens
> 
> 
> Onkar N Tiwary wrote:

>>
>> hi all,
>>
>>
>>
>> My database is in cluster but that is os level cluster and for database some
>> resource groups have been created.we had switched our server from no archive
>> to archive log mode on saturday but on sunday night while doing the schedule
>> job of bulk data loading , the performance of the server went down. My
>> seniors asked me to revert to noarchive which i did also but then also the
>> performance was pathetic. Any idea?
>>
>>
>>
>> DB : oracle 9.2.0.6
>>
>> OS : solaris 8
>>
>>
>>
>>
>>
Received on Fri Jan 06 2006 - 18:17:02 CST

Original text of this message

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