Return-Path: <root@fatcity.cts.com>
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by naude.co.za (8.11.2/8.11.2) with SMTP id g4SIgUw25371
 for <oracle-l@naude.co.za>; Tue, 28 May 2002 14:42:30 -0400
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id DAA35792;
 Tue, 28 May 2002 03:39:28 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b71/bab) via UUCP id 0046C858; Tue, 28 May 2002 03:08:21 -0800
Message-ID: <F001.0046C858.20020528030821@fatcity.com>
Date: Tue, 28 May 2002 03:08:21 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "VIVEK_SHARMA" <VIVEK_SHARMA@infosys.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "VIVEK_SHARMA" <VIVEK_SHARMA@infosys.com>
Subject: RE: Diagnose Slow System
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 71; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: multipart/mixed;	boundary="----=_NextPartTM-000-02b599b0-341b-45d0-89e4-f90c6fdcdccc"
------=_NextPartTM-000-02b599b0-341b-45d0-89e4-f90c6fdcdccc
Content-Type: multipart/alternative;
 boundary="----_=_NextPart_001_01C2062E.E715891A"
------_=_NextPart_001_01C2062E.E715891A
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

PERFORMANCE
------------
A Statspack & report.txt Covering the problem period is Very Good Advice =
.
=20
1) From report.txt paste only the Section below "system-wide waits for =
non-background processes"=20
Likewise from statspack paste the "top 5 wait" events section
=20
2) v$session_wait is is additionally the most important view for event =
son which wait is=20
occuring
=20
=20
A Network issue Can sometimes be=20
-----------------------------------------------------------------
=20
1) By Installing & Running the Application DIRECTLY on the DB Server . =
If  it Runs much better simply on the DB Server ,it could point to a =
network issue
=20
2) By Comparing CPU Utilizations of APP & DB Servers . If the DB Server =
& APP Server Utilization's are  Exceedingly Different it may be due to a =
Network issue.
=20
3) We "ftp" a 100M File (get & put) from APP to DB Server & vice-versa =
too . The Last part of the Output in "(kbytes/sec)" is what is needed . =
Convert it into MegaBits/sec (MBPS) which is the Unit of Network =
Bandwidth .  Commonly used network bandwidth is 10/100 MBPS . For heavy =
Loaded Systems 10MBPS bandwidth sometimes  proves insufficient . This is =
used on between Unix=20
systems Though there may be better network tools too.
=20
HTH
=20
=20

-----Original Message-----
Sent: Friday, May 24, 2002 9:43 AM
To: Multiple recipients of list ORACLE-L



Thanks, Tim.=20


I do have a YAPP report from last week when the problems began --  I'll =
get that to you.  I'll also grab some more data tomorrow.  (If it's =
consistent, it'll start slowing down about 9:00 tomorrow morning.)=20


Barb=20


  Tim Gorman <Tim@SageLogix.com> wrote:=20


Barb,

Can you take a BSTAT/ESTAT while the problem is occurring? Run the
"utlbstat.sql" script from SVRMGRL and then 15-25 mins later run
"utlestat.sql" from SVRMGRL. It's actually pretty important the
"utlestat.sql" be run from SVRMGRL and not SQL*Plus. Please do this at
least once during the periods of slowness -- more than once if =
possible...

Then, FTP the "report.txt" file(s) up to your PC and then browse to the
http://www.oraperf.com site. Use the file-selection browse button at one =
of
the upload sections to find one of the "report.txt" files and click
"upload". The YAPP report will be produced automagically...

What the YAPP report will do is give a great "top->down" breakdown of =
where
the system has been spending the majority of what the end-user community
perceives as "response time" during the 15-25 mins of your BSTAT/ESTAT
sampl! ! e. In brief, the database is either working or waiting. If you =
like,
you could email me the "report.txt" file and I'll look through the YAPP
report alongside you...

There are some papers online at www.oraperf.com/whitepapers.htm which =
should
explain the YAPP methodology (written by Anjo) and also another paper =
about
using YAPP with STATSPACK. The latter paper largely applies to =
BSTAT/ESTAT
also...

>From these reports, we should be able to get a pretty good idea of what =
is
going on...

Thanks!

-Tim

----- Original Message -----
To: "Multiple recipients of list ORACLE-L"=20
Sent: Thursday, May 23, 2002 4:13 PM


> List:
> We've been fighting problems for several days. I've sort of =
overwhelmed
> myself with data, but I don't know what any of it means.
>
> Solaris 2.6, Oracle 8.0.5, MTS
> Users complain of extreme slowness. No errors in alert, no trace files
>! ! ; generated.
> Database is bounced every day. I capture wait statistics each day =
before
> the database goes down. The statistics from v$system_event for enqueue
> waits has gone up considerably since the problems started last =
Wednesday.
> But when I look at v$lock (I'm using Steve Adams' enqueue_locks.sql
> scripts), nothing pops up.
>
> Any ideas where I should start looking? I would appreciate any help.
> (I really believe this is a connectivity (networking) issue, but don't
know
> how to confirm this)
> Thanks!
> Barb
>
> (accumulted since last night at 11:00 pm)
>
>
> EVENT TOTAL_WAITS TOTAL_TIMEOUTS TIME_WAITED
> AVERAGE_WAIT
> --------------------------- ----------- -------------- -----------
> ------------
> latch free 814316 4064 106360
> 130612686
> enqueue 147 26 12033
> 81.8571429
> free buffer waits 4 0 23
> 5.75> buffer busy waits 2959 0 567
> 19161879
> log file parallel write 68177 0 78788
> 1.155639
> log file sync 66683 1 77517
> 1.16247019
> db file sequential read 1385334 0 144617
> 104391432
> db file scattered read 1113301 0 142545
> 12803815
>
>
> (The info captured below is unusual. running this repeatedly normally
shows
> nothing
> except smon TS resource wait)
>
>
> RESOURCE NSID SID HOLDING WANTING SECONDS
> -------------------- ----- ---- ------- ------- ----------
> RT-1-0 4 LGWR X 0
> TM-1949-0 46 46 SX 0
> TM-1999-0 423 423 SX 4
> 46 46 SX 0
> TM-2014-0 46 46 SX 0
> TM-2106-0 46 46 SX 0
> TM-2218-0 46 46 SX 0
> TM-2270-0 423 423 SX 4
> TM-2275-0 423 423 SX 4
> 46 46 SX 0
> TS-1-8388610 6 SMON SX 48069
> TX-1114154-43605 46 46 X 0
> TX-852064-43554 423 423 X 4
>
>> (Below is also unusual. Running this repeatedly normally returns no =
rows)
>
>
> Sess Ser Wait Wait Time W'd So
> ID No Event State W'd (ms) Far (ms) P1
P2
> P3
> ---- ------ ---------- -------- -------- -------- -------------- =
---------
-
> ----
> 16 19 latch free WAITING 0 0 2147519876
59
> 0
> 92 38 latch free WAITED S -1 0 2147519876
59
> 0
> HORT TIM
> E
>
> 565 31 latch free WAITING 0 0 2147519876
59
> 0
> 636 11604 latch free WAITED S -1 0 2147519876
59
> 0
> HORT TIM
> E



------_=_NextPart_001_01C2062E.E715891A
Content-Type: text/html;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3D"Courier New" color=3D#ff0000 size=3D2><SPAN=20
class=3D389125609-28052002>PERFORMANCE</SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" color=3D#ff0000 size=3D2><SPAN=20
class=3D389125609-28052002>------------</SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" color=3D#ff0000 size=3D2><SPAN=20
class=3D389125609-28052002>A Statspack&nbsp;&amp; report.txt Covering =
the problem=20
period is Very Good Advice .</SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" color=3D#ff0000 size=3D2><SPAN=20
class=3D389125609-28052002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" color=3D#ff0000 size=3D2><SPAN=20
class=3D389125609-28052002>1) From report.txt&nbsp;paste only the =
Section below=20
"system-wide waits for non-background processes" </SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" color=3D#ff0000 size=3D2><SPAN=20
class=3D389125609-28052002>Likewise from statspack paste the "top 5 =
wait" events=20
section</SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" color=3D#ff0000 size=3D2><SPAN=20
class=3D389125609-28052002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" color=3D#ff0000 size=3D2><SPAN=20
class=3D389125609-28052002>2) v$session_wait is is additionally the most =
important=20
view for event son which wait is </SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" color=3D#ff0000 size=3D2><SPAN=20
class=3D389125609-28052002>occuring</SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" color=3D#ff0000 size=3D2><SPAN=20
class=3D389125609-28052002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" color=3D#ff0000 size=3D2><SPAN=20
class=3D389125609-28052002></SPAN></FONT>&nbsp;</DIV>
<DIV><SPAN class=3D389125609-28052002><FONT face=3D"Courier New" =
color=3D#ff0000=20
size=3D2>A Network issue Can sometimes be&nbsp;</FONT></SPAN></DIV>
<DIV><SPAN class=3D389125609-28052002><FONT face=3D"Courier New" =
color=3D#ff0000=20
size=3D2><FONT face=3DArial=20
color=3D#0000ff>---------------------------------------------------------=
--------</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=3D389125609-28052002>&nbsp;</SPAN></DIV>
<DIV><SPAN class=3D389125609-28052002><FONT face=3D"Courier New" =
color=3D#ff0000=20
size=3D2>1) By Installing&nbsp;&amp; Running the Application DIRECTLY on =
the DB=20
Server . If&nbsp; it Runs&nbsp;much better simply on the DB Server=20
,</FONT></SPAN><SPAN class=3D389125609-28052002><FONT face=3D"Courier =
New"=20
color=3D#ff0000 size=3D2>it could point to a network =
issue</FONT></SPAN></DIV>
<DIV><SPAN class=3D389125609-28052002><FONT face=3D"Courier New" =
color=3D#ff0000=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D389125609-28052002><FONT face=3D"Courier New" =
color=3D#ff0000=20
size=3D2>2) By Comparing CPU Utilizations of APP &amp; DB Servers . If =
the DB=20
Server &amp; APP Server&nbsp;Utilization's are&nbsp; Exceedingly=20
</FONT></SPAN><SPAN class=3D389125609-28052002><FONT face=3D"Courier =
New"=20
color=3D#ff0000 size=3D2>Different it may be due to a Network=20
issue.</FONT></SPAN></DIV>
<DIV><SPAN class=3D389125609-28052002><FONT face=3D"Courier New" =
color=3D#ff0000=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D389125609-28052002><FONT face=3D"Courier New" =
color=3D#ff0000=20
size=3D2>3) We "ftp" a 100M File (get &amp; put) from APP to DB Server =
&amp;=20
vice-versa too . The Last part of the Output&nbsp;in "(kbytes/sec)"=20
</FONT></SPAN><SPAN class=3D389125609-28052002><FONT face=3D"Courier =
New"=20
color=3D#ff0000 size=3D2>is what is needed . Convert it into =
MegaBits/sec (MBPS)=20
which is the Unit of Network Bandwidth .&nbsp; </FONT></SPAN><FONT =
size=3D2><FONT=20
face=3D"Courier New"><FONT color=3D#ff0000><SPAN =
class=3D389125609-28052002>Commonly=20
used network bandwidth is 10/100 MBPS . For heavy=20
Loaded&nbsp;Systems&nbsp;</SPAN><SPAN class=3D389125609-28052002>10MBPS =
bandwidth=20
</SPAN><SPAN class=3D389125609-28052002>sometimes &nbsp;proves =
insufficient . This=20
is used on between Unix </SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT size=3D2><FONT face=3D"Courier New"><FONT =
color=3D#ff0000><SPAN=20
class=3D389125609-28052002>systems&nbsp;Though there may be better =
network tools=20
too.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT size=3D2><FONT face=3D"Courier New"><FONT =
color=3D#ff0000><SPAN=20
class=3D389125609-28052002></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><SPAN class=3D389125609-28052002><FONT face=3D"Courier New" =
color=3D#ff0000=20
size=3D2>HTH</FONT></SPAN></DIV>
<DIV><SPAN class=3D389125609-28052002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D389125609-28052002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE>
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> Barbara Baker=20
  [mailto:barbarabbaker@yahoo.com]<BR><B>Sent:</B> Friday, May 24, 2002 =
9:43=20
  AM<BR><B>To:</B> Multiple recipients of list =
ORACLE-L<BR><B>Subject:</B> Re:=20
  Diagnose Slow System<BR><BR></FONT></DIV>
  <P>Thanks, Tim.=20
  <P>I do have a YAPP report from last week when the problems began =
--&nbsp;=20
  I'll get that to you.&nbsp; I'll also grab some more data =
tomorrow.&nbsp; (If=20
  it's consistent, it'll start slowing down about 9:00 tomorrow =
morning.)=20
  <P>Barb=20
  <P>&nbsp; <B><I>Tim Gorman &lt;Tim@SageLogix.com&gt;</I></B> wrote:=20
  <BLOCKQUOTE=20
  style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px =
solid">Barb,<BR><BR>Can=20
    you take a BSTAT/ESTAT while the problem is occurring? Run=20
    the<BR>"utlbstat.sql" script from SVRMGRL and then 15-25 mins later=20
    run<BR>"utlestat.sql" from SVRMGRL. It's actually pretty important=20
    the<BR>"utlestat.sql" be run from SVRMGRL and not SQL*Plus. Please =
do this=20
    at<BR>least once during the periods of slowness -- more than once if =

    possible...<BR><BR>Then, FTP the "report.txt" file(s) up to your PC =
and then=20
    browse to the<BR>http://www.oraperf.com site. Use the file-selection =
browse=20
    button at one of<BR>the upload sections to find one of the =
"report.txt"=20
    files and click<BR>"upload". The YAPP report will be produced=20
    automagically...<BR><BR>What the YAPP report will do is give a great =

    "top-&gt;down" breakdown of where<BR>the system has been spending =
the=20
    majority of what the end-user community<BR>perceives as "response =
time"=20
    during the 15-25 mins of your BSTAT/ESTAT<BR>sampl! ! e. In brief, =
the=20
    database is either working or waiting. If you like,<BR>you could =
email me=20
    the "report.txt" file and I'll look through the YAPP<BR>report =
alongside=20
    you...<BR><BR>There are some papers online at=20
    www.oraperf.com/whitepapers.htm which should<BR>explain the YAPP =
methodology=20
    (written by Anjo) and also another paper about<BR>using YAPP with =
STATSPACK.=20
    The latter paper largely applies to =
BSTAT/ESTAT<BR>also...<BR><BR>From these=20
    reports, we should be able to get a pretty good idea of what =
is<BR>going=20
    on...<BR><BR>Thanks!<BR><BR>-Tim<BR><BR>----- Original Message =
-----<BR>To:=20
    "Multiple recipients of list ORACLE-L" =
<ORACLE-L@FATCITY.COM><BR>Sent:=20
    Thursday, May 23, 2002 4:13 PM<BR><BR><BR>&gt; List:<BR>&gt; We've =
been=20
    fighting problems for several days. I've sort of overwhelmed<BR>&gt; =
myself=20
    with data, but I don't know what any of it means.<BR>&gt;<BR>&gt; =
Solaris=20
    2.6, Oracle 8.0.5, MTS<BR>&gt; Users complain of extreme slowness. =
No errors=20
    in alert, no trace files<BR>&gt;! ! ; generated.<BR>&gt; Database is =
bounced=20
    every day. I capture wait statistics each day before<BR>&gt; the =
database=20
    goes down. The statistics from v$system_event for enqueue<BR>&gt; =
waits has=20
    gone up considerably since the problems started last =
Wednesday.<BR>&gt; But=20
    when I look at v$lock (I'm using Steve Adams' =
enqueue_locks.sql<BR>&gt;=20
    scripts), nothing pops up.<BR>&gt;<BR>&gt; Any ideas where I should =
start=20
    looking? I would appreciate any help.<BR>&gt; (I really believe this =
is a=20
    connectivity (networking) issue, but don't<BR>know<BR>&gt; how to =
confirm=20
    this)<BR>&gt; Thanks!<BR>&gt; Barb<BR>&gt;<BR>&gt; (accumulted since =
last=20
    night at 11:00 pm)<BR>&gt;<BR>&gt;<BR>&gt; EVENT TOTAL_WAITS =
TOTAL_TIMEOUTS=20
    TIME_WAITED<BR>&gt; AVERAGE_WAIT<BR>&gt; --------------------------- =

    ----------- -------------- -----------<BR>&gt; ------------<BR>&gt; =
latch=20
    free 814316 4064 106360<BR>&gt; 130612686<BR>&gt; enqueue 147 26=20
    12033<BR>&gt; 81.8571429<BR>&gt; free buffer waits 4 0 23<BR>&gt; =
5.75<B! R=20
    !>&gt; buffer busy waits 2959 0 567<BR>&gt; 19161879<BR>&gt; log =
file=20
    parallel write 68177 0 78788<BR>&gt; 1.155639<BR>&gt; log file sync =
66683 1=20
    77517<BR>&gt; 1.16247019<BR>&gt; db file sequential read 1385334 0=20
    144617<BR>&gt; 104391432<BR>&gt; db file scattered read 1113301 0=20
    142545<BR>&gt; 12803815<BR>&gt;<BR>&gt;<BR>&gt; (The info captured =
below is=20
    unusual. running this repeatedly normally<BR>shows<BR>&gt; =
nothing<BR>&gt;=20
    except smon TS resource wait)<BR>&gt;<BR>&gt;<BR>&gt; RESOURCE NSID =
SID=20
    HOLDING WANTING SECONDS<BR>&gt; -------------------- ----- ---- =
-------=20
    ------- ----------<BR>&gt; RT-1-0 4 LGWR X 0<BR>&gt; TM-1949-0 46 46 =
SX=20
    0<BR>&gt; TM-1999-0 423 423 SX 4<BR>&gt; 46 46 SX 0<BR>&gt; =
TM-2014-0 46 46=20
    SX 0<BR>&gt; TM-2106-0 46 46 SX 0<BR>&gt; TM-2218-0 46 46 SX =
0<BR>&gt;=20
    TM-2270-0 423 423 SX 4<BR>&gt; TM-2275-0 423 423 SX 4<BR>&gt; 46 46 =
SX=20
    0<BR>&gt; TS-1-8388610 6 SMON SX 48069<BR>&gt; TX-1114154-43605 46 =
46 X=20
    0<BR>&gt; TX-852064-43554 423 423 X 4<BR>&gt;<BR>&gt;<B! R !>&gt; =
(Below is=20
    also unusual. Running this repeatedly normally returns no=20
    rows)<BR>&gt;<BR>&gt;<BR>&gt; Sess Ser Wait Wait Time W'd So<BR>&gt; =
ID No=20
    Event State W'd (ms) Far (ms) P1<BR>P2<BR>&gt; P3<BR>&gt; ---- =
------=20
    ---------- -------- -------- -------- -------------- =
---------<BR>-<BR>&gt;=20
    ----<BR>&gt; 16 19 latch free WAITING 0 0 2147519876<BR>59<BR>&gt; =
0<BR>&gt;=20
    92 38 latch free WAITED S -1 0 2147519876<BR>59<BR>&gt; 0<BR>&gt; =
HORT=20
    TIM<BR>&gt; E<BR>&gt;<BR>&gt; 565 31 latch free WAITING 0 0=20
    2147519876<BR>59<BR>&gt; 0<BR>&gt; 636 11604 latch free WAITED S -1 =
0=20
    2147519876<BR>59<BR>&gt; 0<BR>&gt; HORT TIM<BR>&gt;=20
E<BR></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C2062E.E715891A--

------=_NextPartTM-000-02b599b0-341b-45d0-89e4-f90c6fdcdccc--

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: VIVEK_SHARMA
  INET: VIVEK_SHARMA@infosys.com

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@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).

