Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from smtp-aa.freelists.org (smtp-aa.freelists.org [23.23.80.81])
 by malta2546.startdedicated.com (Postfix) with ESMTPS id CC048100382ED8
 for <oracle-l@orafaq.com>; Tue,  2 Feb 2021 15:24:50 +0100 (CET)
Received: from turing.freelists.org (ip-10-0-0-164.ec2.internal [10.0.0.164])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
 (No client certificate requested)
 by smtp-aa.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id DA79445495;
 Tue,  2 Feb 2021 14:24:49 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id B9BA53F97B;
 Tue,  2 Feb 2021 14:24:49 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1612275889;
 bh=xCyvPyaupY/5UqGRBLR+B12NAlP6JLaBeQ6au7D8LWk=;
 h=From:Sender:Sender:From;
 b=T/unVimfp7DePTDWGFqrN688ligAj+Ox/rNVZbj2ZiOqaPQnfEkj/4y2q/vxYUBBf
	 475BkZzWX60p4fXdGSRlQSRtp5/ACb98lCCfYftlHVQcljS48roBoVjG59y1bQ+/mt
	 vNZbUm1vV2um8HTs1ZmENNr1kaE3r5iCsadlaOD8=
X-Virus-Scanned: by FreeLists at turing2.freelists.org
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id zttQrf4KNEMj; Tue,  2 Feb 2021 14:24:49 +0000 (UTC)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 849663F96E;
 Tue,  2 Feb 2021 14:24:39 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1612275880;
 bh=xCyvPyaupY/5UqGRBLR+B12NAlP6JLaBeQ6au7D8LWk=;
 h=From:Sender:Sender:From;
 b=ZTOrEjGfcXeF6d0Esord/Tlouvx/x+B3jJrdKAwuxpgFRJr00kUWRGE7oXL9YkK6r
	 jVRaeY9Jj/4+J2l63fwWuDLQEfckFRECTcK4SGMZ2JXJY+MhB3CugR+xOdE3b0baOJ
	 zV0XimKeOFo9Ygwju5wMAxLVUaklimAgDoDxU18M=
Received: with ECARTIS (v1.0.0; list oracle-l); Tue, 02 Feb 2021 14:24:37 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id C6CCF3F978
 for <oracle-l@freelists.org>; Tue,  2 Feb 2021 14:24:36 +0000 (UTC)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id molCCE_bcQX1 for <oracle-l@freelists.org>;
 Tue,  2 Feb 2021 14:24:36 +0000 (UTC)
Received: from gw2.tidalhosting.net (gateway.tidalhosting.net [155.130.128.124])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by turing.freelists.org (Postfix) with ESMTPS id 159CA3F85E
 for <oracle-l@freelists.org>; Tue,  2 Feb 2021 14:24:01 +0000 (UTC)
Received: from mrtr.tidalhosting.net (UnknownHost [10.0.150.3]) by gw2.tidalhosting.net with SMTP
 (version=TLS\Tls12
 cipher=Aes256 bits=256);
   Tue, 2 Feb 2021 09:23:54 -0500
Received: from mx1.tidalhosting.net (unknown [10.0.100.9])
 by mrtr.tidalhosting.net (Postfix) with ESMTPS id 4BC313049D7C;
 Tue,  2 Feb 2021 09:23:49 -0500 (EST)
Received: from mwf4500 (c-73-238-99-41.hsd1.nh.comcast.net [73.238.99.41]) by mx1.tidalhosting.net with SMTP
 (version=Tls
 cipher=Aes256 bits=256);
   Tue, 2 Feb 2021 09:23:32 -0500
From: "Mark W. Farnham" <mwf@rsiz.com>
To: <gogala.mladen@gmail.com>,
 <oracle-l@freelists.org>
References: <DM6PR11MB34831A86630FF3F2F247F070F4BC9@DM6PR11MB3483.namprd11.prod.outlook.com> <CAGtsp8=uWbyjyA9tS7jno9F1e8hOMO+S3Rp82FxbaGvzWZgY_Q@mail.gmail.com> <DB7PR10MB209040C214FB69FB0BD548D085BA9@DB7PR10MB2090.EURPRD10.PROD.OUTLOOK.COM> <CAORjz=PO_mAt+M3=P41HsLSZmN5N7nDURuBZ8_cufNCFe1mWLg@mail.gmail.com> <SA2PR10MB456903641FFA617B07DACFE4A3B69@SA2PR10MB4569.namprd10.prod.outlook.com> <cd686c7d-1d6b-bc99-a9d8-134bd97e9301@gmail.com>
In-Reply-To: <cd686c7d-1d6b-bc99-a9d8-134bd97e9301@gmail.com>
Subject: RE: [External] : Re: Question on gathering System Statistics
Date: Tue, 2 Feb 2021 09:23:28 -0500
Message-ID: <2de601d6f96e$f9eac600$edc05200$@rsiz.com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="----=_NextPart_000_2DE7_01D6F945.1115A860"
Content-Language: en-us
X-Exim-Id: 2de601d6f96e$f9eac600$edc05200$
X-archive-position: 78823
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: mwf@rsiz.com
Precedence: normal
Reply-To: mwf@rsiz.com
List-Help: <mailto:ecartis@freelists.org?Subject=help>
List-Unsubscribe: <mailto:oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-Subscribe: <mailto:oracle-l-request@freelists.org?Subject=subscribe>
List-Owner: <mailto:>
List-post: <mailto:oracle-l@freelists.org>
List-Archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
------=_NextPart_000_2DE7_01D6F945.1115A860
Content-Type: text/plain;
 charset="utf-8"
Content-Transfer-Encoding: quoted-printable

In an ideal world the CBO would be able to sample from a rolling =
snapshot of current system statistics collected lightly against the =
current background load without being a significant load themselves and =
plans would be adjusted dynamically for that plan execution and perhaps =
some sort of =E2=80=9Cwithin tolerance=E2=80=9D could be checked on soft =
parses.

=20

For the reasons you mentioned in the thread there are logical reasons to =
collect the system statistics.

=20

BUT having seen a wide range of the result of the currently actually =
implemented CBO versus queries with canned defaults versus locally =
collected statistics I=E2=80=99d go with Maria.

=20

You may have specific cases where careful collection (or punching to =
specific values) tends to create better plans for that particular case.=20

The GOAL is to get good plans, and to get good enough plans for most =
plans so that special attention is needed only for a small number of =
cases either because it falls through a crack in the CBO=E2=80=99s armor =
or because it is so important or sizeable that only precise attention =
down to the bare metal fastest possible is required.

=20

SO, FOR NOW, don=E2=80=99t collect the system statistics unless you can =
show in your lab for a particular case that it improves things net-net =
by a big enough margin to care.

=20

mwf

=20

From: oracle-l-bounce@freelists.org =
[mailto:oracle-l-bounce@freelists.org] On Behalf Of Mladen Gogala
Sent: Tuesday, February 02, 2021 1:58 AM
To: oracle-l@freelists.org
Subject: Re: [External] : Re: Question on gathering System Statistics

=20

Any explanation? This looks a bit counter-intuitive to me. Would it be =
possible to persuade to come here and explain the recommendation?

Regards

On 2/1/21 12:09 PM, Jeff Smith wrote:

Maria confirms

=E2=80=9CThat is correct. Its best not to gather system stats=E2=80=9D

=20

--=20
Mladen Gogala
Database Consultant
https://dbwhisperer.wordpress.com

------=_NextPart_000_2DE7_01D6F945.1115A860
Content-Type: text/html;
 charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta =
name=3DGenerator content=3D"Microsoft Word 14 (filtered =
medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
pre
	{mso-style-priority:99;
	mso-style-link:"HTML Preformatted Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:Consolas;}
span.EmailStyle20
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>In an ideal world the CBO would be able to sample from a rolling =
snapshot of current system statistics collected lightly against the =
current background load without being a significant load themselves and =
plans would be adjusted dynamically for that plan execution and perhaps =
some sort of =E2=80=9Cwithin tolerance=E2=80=9D could be checked on soft =
parses.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>For the reasons you mentioned in the thread there are logical reasons =
to collect the system statistics.<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>BUT having seen a wide range of the result of the currently actually =
implemented CBO versus queries with canned defaults versus locally =
collected statistics I=E2=80=99d go with Maria.<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>You may have specific cases where careful collection (or punching to =
specific values) tends to create better plans for that particular case. =
<br><br>The GOAL is to get good plans, and to get good enough plans for =
most plans so that special attention is needed only for a small number =
of cases either because it falls through a crack in the CBO=E2=80=99s =
armor or because it is so important or sizeable that only precise =
attention down to the bare metal fastest possible is =
required.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>SO, FOR NOW, don=E2=80=99t collect the system statistics unless you =
can show in your lab for a particular case that it improves things =
net-net by a big enough margin to care.<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>mwf<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><div><div =
style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in'><p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>=
</b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> =
oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org] =
<b>On Behalf Of </b>Mladen Gogala<br><b>Sent:</b> Tuesday, February 02, =
2021 1:58 AM<br><b>To:</b> oracle-l@freelists.org<br><b>Subject:</b> Re: =
[External] : Re: Question on gathering System =
Statistics<o:p></o:p></span></p></div></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p>Any explanation? This looks a =
bit counter-intuitive to me. Would it be possible to persuade to come =
here and explain the =
recommendation?<o:p></o:p></p><p>Regards<o:p></o:p></p><div><p =
class=3DMsoNormal>On 2/1/21 12:09 PM, Jeff Smith =
wrote:<o:p></o:p></p></div><blockquote =
style=3D'margin-top:5.0pt;margin-bottom:5.0pt'><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#F=
8F8F8'><span style=3D'color:black'>Maria =
confirms<br><br>=E2=80=9C</span><span =
style=3D'font-size:11.5pt;font-family:"Arial","sans-serif";color:#1D1C1D'=
>That is correct. Its best not to gather system =
stats=E2=80=9D</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p></blockquote><pre>-- <o:p></o:p></pre><pre>Mladen =
Gogala<o:p></o:p></pre><pre>Database Consultant<o:p></o:p></pre><pre><a =
href=3D"https://dbwhisperer.wordpress.com">https://dbwhisperer.wordpress.=
com</a><o:p></o:p></pre></div></body></html>
------=_NextPart_000_2DE7_01D6F945.1115A860--



--
http://www.freelists.org/webpage/oracle-l


