Received: (qmail 7204 invoked from network); 6 Jun 2011 13:59:41 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by static-ip-85-25-126-90.inaddr.intergenia.de with SMTP; 6 Jun 2011 13:59:28 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id A32ABE29319;
 Mon,  6 Jun 2011 14:59:16 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1307386756; bh=jmG0LWsFI4Fha8ey8EcK/YFkld7PmtowGXGQe4S4
 ys8=; h=From:To:Date:Subject:Message-ID:References:In-Reply-To:
	 Content-Type:MIME-Version:Sender:Reply-To:List-help:
	 List-unsubscribe:List-Id:List-subscribe:List-owner:List-post:
	 List-archive; b=qW5SQ6Ch0JBwtK6EInhEL6YpFgIpBpsNC8bTWcgwz6f2aWzMbU
 v5rVft7QPYJFNXeFZQ2WGrzX7QdJQeTkNfhpb77ZsxSNAa9MdfbE79iG9MplmBdND1s
 mFoqwlXmY4hFjNQR4YJtYs0u/+ovwYevNI+trnJHQtFGpgSLjbQQew=
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
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 JuiSdG3ez38L; Mon,  6 Jun 2011 14:59:16 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 440AEE292E1;
 Mon,  6 Jun 2011 14:58:33 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Mon, 06 Jun 2011 14:57:51 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])	by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 2F905E292E0	for <oracle-l@freelists.org>; Mon,  6 Jun 2011 14:57:51 -0400 (EDT)
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 JpmOHsO84IEG for <oracle-l@freelists.org>;	Mon,  6 Jun 2011 14:57:51 -0400 (EDT)
Received: from smtp02.constellation.com (smtp02.constellation.com [216.99.187.52])	by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 91CC3E291F7	for <oracle-l@freelists.org>; Mon,  6 Jun 2011 14:57:50 -0400 (EDT)
Received: from profgen.ceg.corp.net (HELO EXH-OMF-01.Ceg.Corp.Net) ([10.103.87.52])  by smtp02.constellation.com with ESMTP/TLS/RC4-MD5; 06 Jun 2011 14:57:49 -0400
Received: from EXM-OMF-04.Ceg.Corp.Net ([10.103.87.102]) by EXH-OMF-01.Ceg.Corp.Net ([10.103.87.52]) with mapi; Mon, 6 Jun 2011 14:57:49 -0400
From: "Jorgensen, Finn" <Finn.Jorgensen@constellation.com>
To: "'pdthedba@gmail.com'" <pdthedba@gmail.com>, 'Oracle-L Group'	<oracle-l@freelists.org>
Date: Mon, 6 Jun 2011 14:57:48 -0400
Subject: RE: Testing Process for Gathering single object stats.
Thread-Topic: Testing Process for Gathering single object stats.
Message-ID: <9CE162BC5ED2C643956B526A7EDE46FF02445527D93E@EXM-OMF-04.Ceg.Corp.Net>
References: <BANLkTimZy3vu93-NW9zZemR02toZA_=aRw@mail.gmail.com>
In-Reply-To: <BANLkTimZy3vu93-NW9zZemR02toZA_=aRw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: multipart/alternative; boundary="_000_9CE162BC5ED2C643956B526A7EDE46FF02445527D93EEXMOMF04Ceg_"
MIME-Version: 1.0
X-archive-position: 36595
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: Finn.Jorgensen@constellation.com
Precedence: normal
Reply-To: Finn.Jorgensen@constellation.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <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: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
--_000_9CE162BC5ED2C643956B526A7EDE46FF02445527D93EEXMOMF04Ceg_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

PD,

This sounds to me like one of those political battles you can't win. Your s=
r. management has already made up their minds and they have more than enoug=
h knowledge to be dangerous. If you manage to convince them to do things di=
fferently than they propose and things go wrong again, it's your neck on th=
e line. Why would you risk that? Since they have already designed the solut=
ion just build what they propose. If it works, great. It solves everybody's=
 problem. If it doesn't work you know have a chance to save the day with yo=
ur own solution (provided you are able to solve the problem).

I know this was not your question and not what you wanted to hear, but afte=
r 20 years in this business, that's what I would do.

Thanks,
Finn

From: oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org] =
On Behalf Of PD Malik
Sent: Friday, June 03, 2011 5:39 PM
To: Oracle-L Group
Subject: Testing Process for Gathering single object stats.

Hello Oracle Experts,

I work a critical system and due to some high stakes all and every change i=
s very heavily scrutinized here whatever the level is. And one of such chan=
ges which is currently under scrutiny is gathering object stats for single =
objects. Just to give you a background its an Oracle eBusiness site so fnd_=
stats is used instead of usual dbms_stats and we've an inhouse job that dep=
ending on the staleness of the objects gather stats on them using FND_STATS=
. (RDBMS : 10.2.0.4 Apps Release 12i).

Now, we've seen that occasionally it leaves some of the objects that should=
 ideally be gathered so they need to be gathered individually and our senio=
r technical management wants a process around it - for gathering this singl=
e object stats (I know!). I think I need to explicitly mention here that th=
is need to gather stale object stats has emerged becs one of the plans has =
gone pretty poor (from 2 ms to 90 mins) and sql tuning task states that sta=
ts are stale and in our PROD copy env (where the issue exists) gathering st=
ats reverts to original good plan! So we are not gathering just because the=
y are stale but instead because that staleness is actually causing a realti=
me problem!

Anyway, my point is that it has been gathered multiple times in the past on=
 that object and also it might get gathered anytime by that automatic job (=
run nightly). There arguments are:

i. There may be several hundred sql plans depending on that object and we n=
ever know how many, and to what, those plan change and it can change for wo=
rse causing unexpected issues in the service!
ii. There may be related objects whose objects have gone stale as well (for=
 example sales and inventory tables both see related amount of changes on c=
olumn stock_level) and if we gather stats only on one of them and since tho=
se 2 cud be highly related (in queries etc.) that may mess up the join card=
inality etc. messing up the plans etc.

Now, you see they know Oracle as well !

My Oracle (and optimizer knowledge) clearly suggests me that these argument=
s are baseless BUT want to keep an open mind. So my questions are :

i.   Do the risks highlighted above stand any ground or what probably do yo=
u think is there of happening any of the above?
ii.  Any other point that I can make to convince the management.
iii. Or if those guys are right, Do you guys use or recommend any testing s=
trategy/process that you can suggest to us pls?

Another interesting point is that, they are not even very clear at this sta=
ge how they are gonna 'test' this whole thing as the 'cost' option like RAT=
 (Real Application Testing) is out of question and developing an inhouse te=
sting tool still need analyzing in terms of efforts, worth and reliability.

In the end, Can I request top experts from the 'Oak Table' furniture shop t=
o make a comment so that I can take their backings!? Well I am hoping here =
they'll back me up but that may not necessarily the case and I obviously wa=
nt an honest expert assessment of the situation and not merely my backing.

Thanks so much in advance!
>>> This e-mail and any attachments are confidential, may contain legal,
professional or other privileged information, and are intended solely for t=
he
addressee.  If you are not the intended recipient, do not use the informati=
on
in this e-mail in any way, delete this e-mail and notify the sender. CEG-IP2

--_000_9CE162BC5ED2C643956B526A7EDE46FF02445527D93EEXMOMF04Ceg_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:x=3D"urn:schemas-microsoft-com:office:excel" xmlns:p=3D"urn:schemas-m=
icrosoft-com:office:powerpoint" xmlns:a=3D"urn:schemas-microsoft-com:office=
:access" xmlns:dt=3D"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s=3D"=
uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs=3D"urn:schemas-microsof=
t-com:rowset" xmlns:z=3D"#RowsetSchema" xmlns:b=3D"urn:schemas-microsoft-co=
m:office:publisher" xmlns:ss=3D"urn:schemas-microsoft-com:office:spreadshee=
t" xmlns:c=3D"urn:schemas-microsoft-com:office:component:spreadsheet" xmlns=
:odc=3D"urn:schemas-microsoft-com:office:odc" xmlns:oa=3D"urn:schemas-micro=
soft-com:office:activation" xmlns:html=3D"http://www.w3.org/TR/REC-html40" =
xmlns:q=3D"http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc=3D"http://m=
icrosoft.com/officenet/conferencing" xmlns:D=3D"DAV:" xmlns:Repl=3D"http://=
schemas.microsoft.com/repl/" xmlns:mt=3D"http://schemas.microsoft.com/share=
point/soap/meetings/" xmlns:x2=3D"http://schemas.microsoft.com/office/excel=
/2003/xml" xmlns:ppda=3D"http://www.passport.com/NameSpace.xsd" xmlns:ois=
=3D"http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir=3D"http://=
schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds=3D"http://www.w3=
.org/2000/09/xmldsig#" xmlns:dsp=3D"http://schemas.microsoft.com/sharepoint=
/dsp" xmlns:udc=3D"http://schemas.microsoft.com/data/udc" xmlns:xsd=3D"http=
://www.w3.org/2001/XMLSchema" xmlns:sub=3D"http://schemas.microsoft.com/sha=
repoint/soap/2002/1/alerts/" xmlns:ec=3D"http://www.w3.org/2001/04/xmlenc#"=
 xmlns:sp=3D"http://schemas.microsoft.com/sharepoint/" xmlns:sps=3D"http://=
schemas.microsoft.com/sharepoint/soap/" xmlns:xsi=3D"http://www.w3.org/2001=
/XMLSchema-instance" xmlns:udcs=3D"http://schemas.microsoft.com/data/udc/so=
ap" xmlns:udcxf=3D"http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udc=
p2p=3D"http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf=3D"http:/=
/schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss=3D"http://sche=
mas.microsoft.com/office/2006/digsig-setup" xmlns:dssi=3D"http://schemas.mi=
crosoft.com/office/2006/digsig" xmlns:mdssi=3D"http://schemas.openxmlformat=
s.org/package/2006/digital-signature" xmlns:mver=3D"http://schemas.openxmlf=
ormats.org/markup-compatibility/2006" xmlns:m=3D"http://schemas.microsoft.c=
om/office/2004/12/omml" xmlns:mrels=3D"http://schemas.openxmlformats.org/pa=
ckage/2006/relationships" xmlns:spwp=3D"http://microsoft.com/sharepoint/web=
partpages" xmlns:ex12t=3D"http://schemas.microsoft.com/exchange/services/20=
06/types" xmlns:ex12m=3D"http://schemas.microsoft.com/exchange/services/200=
6/messages" xmlns:pptsl=3D"http://schemas.microsoft.com/sharepoint/soap/Sli=
deLibrary/" xmlns:spsl=3D"http://microsoft.com/webservices/SharePointPortal=
Server/PublishedLinksService" xmlns:Z=3D"urn:schemas-microsoft-com:" xmlns:=
st=3D"&#1;" xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta http-equi=
v=3DContent-Type content=3D"text/html; charset=3Dus-ascii"><meta name=3DGen=
erator content=3D"Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@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;}
/* 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;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;}
@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 vli=
nk=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span style=3D'f=
ont-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>PD,<o:p><=
/o:p></span></p><p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-f=
amily:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sa=
ns-serif";color:#1F497D'>This sounds to me like one of those political batt=
les you can&#8217;t win. Your sr. management has already made up their mind=
s and they have more than enough knowledge to be dangerous. If you manage t=
o convince them to do things differently than they propose and things go wr=
ong again, it&#8217;s your neck on the line. Why would you risk that? Since=
 they have already designed the solution just build what they propose. If i=
t works, great. It solves everybody&#8217;s problem. If it doesn&#8217;t wo=
rk you know have a chance to save the day with your own solution (provided =
you are able to solve the problem).<o:p></o:p></span></p><p class=3DMsoNorm=
al><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color=
:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span style=3D'f=
ont-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I know th=
is was not your question and not what you wanted to hear, but after 20 year=
s in this business, that&#8217;s what I would do.<o:p></o:p></span></p><p c=
lass=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","san=
s-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><s=
pan style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497=
D'>Thanks,</span><span style=3D'font-size:11.0pt;font-family:"Calibri","san=
s-serif";color:#1F497D'><o:p></o:p></span></p><p class=3DMsoNormal><span st=
yle=3D'font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'>Fin=
n<o:p></o:p></span></p><p class=3DMsoNormal><span style=3D'font-size:11.0pt=
;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span>=
</p><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-f=
amily:"Tahoma","sans-serif"'>From:</span></b><span style=3D'font-size:10.0p=
t;font-family:"Tahoma","sans-serif"'> oracle-l-bounce@freelists.org [mailto=
:oracle-l-bounce@freelists.org] <b>On Behalf Of </b>PD Malik<br><b>Sent:</b=
> Friday, June 03, 2011 5:39 PM<br><b>To:</b> Oracle-L Group<br><b>Subject:=
</b> Testing Process for Gathering single object stats.<o:p></o:p></span></=
p></div><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>Hell=
o Oracle Experts,<o:p></o:p></p><div><p class=3DMsoNormal><o:p>&nbsp;</o:p>=
</p></div><div><p class=3DMsoNormal>I work a critical system and due to som=
e high stakes all and every change is very heavily&nbsp;scrutinized&nbsp;he=
re whatever the level is. And one of such changes which is currently under&=
nbsp;scrutiny&nbsp;is gathering object stats for single objects. Just to gi=
ve you a background its an Oracle eBusiness site so fnd_stats is used inste=
ad of usual dbms_stats and we've an inhouse job that depending on the stale=
ness of the objects gather stats on them using FND_STATS. (RDBMS : 10.2.0.4=
 Apps Release 12i).<o:p></o:p></p></div><div><p class=3DMsoNormal><o:p>&nbs=
p;</o:p></p></div><div><p class=3DMsoNormal>Now, we've seen that&nbsp;occas=
ionally&nbsp;it leaves some of the objects that should ideally be gathered =
so they need to be gathered individually and our senior technical managemen=
t wants a process around it - for gathering this single object stats (I kno=
w!). I think I need to explicitly mention here that this need to gather sta=
le object stats has emerged becs one of the plans has gone pretty poor (fro=
m 2 ms to 90 mins) and sql tuning task states that stats are stale and in o=
ur PROD copy env (where the issue exists) gathering stats reverts to origin=
al good plan! So we are not gathering just because they are stale but inste=
ad because that staleness is actually causing a realtime problem!<o:p></o:p=
></p></div><div><p class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p cla=
ss=3DMsoNormal>Anyway, my point is that it has been gathered multiple times=
 in the past on that object and also it might get gathered anytime by that =
automatic job (run nightly). There arguments are:<o:p></o:p></p></div><div>=
<p class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=3DMsoNormal>i=
. There may be several&nbsp;hundred sql plans depending on that object and =
we never know how many, and to what, those plan change and it can change fo=
r worse causing unexpected issues in the service!&nbsp;<o:p></o:p></p></div=
><div><p class=3DMsoNormal>ii. There may be related objects whose objects h=
ave gone stale as well (for example sales and inventory tables both see rel=
ated amount of changes on column stock_level) and if we gather stats only o=
n one of them and since those 2 cud be highly related (in queries etc.) tha=
t may mess up the join&nbsp;cardinality&nbsp;etc. messing up the plans etc.=
&nbsp;<o:p></o:p></p></div><div><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><=
/div><div><p class=3DMsoNormal>Now, you see they know Oracle as well !<o:p>=
</o:p></p></div><div><p class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><=
p class=3DMsoNormal>My Oracle (and optimizer knowledge) clearly suggests me=
 that these arguments are baseless BUT want to keep an open mind. So my que=
stions are :<o:p></o:p></p></div><div><p class=3DMsoNormal><o:p>&nbsp;</o:p=
></p></div><div><p class=3DMsoNormal>i. &nbsp; Do the risks highlighted abo=
ve stand any ground or what probably do you think is there of happening any=
 of the above?<o:p></o:p></p></div><div><p class=3DMsoNormal>ii. &nbsp;Any =
other point that I can make to convince the management.<o:p></o:p></p></div=
><div><p class=3DMsoNormal>iii. Or if those guys are right, Do you guys use=
 or recommend any testing strategy/process that you can suggest to us pls?<=
o:p></o:p></p></div><div><p class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><d=
iv><p class=3DMsoNormal>Another interesting point is that, they are not eve=
n very clear at this stage how they are gonna 'test' this whole thing as th=
e 'cost' option like RAT (Real Application Testing) is out of question and =
developing an inhouse testing tool still need analyzing in terms of efforts=
, worth and reliability.<o:p></o:p></p></div><div><p class=3DMsoNormal><o:p=
>&nbsp;</o:p></p></div><div><p class=3DMsoNormal>In the end, Can I request =
top experts from the 'Oak Table' furniture shop to make a comment so that I=
 can take their backings!? Well I am hoping here they'll back me up but tha=
t may not necessarily the case and I&nbsp;obviously&nbsp;want an honest exp=
ert assessment of the situation and not merely my backing.<o:p></o:p></p></=
div><div><p class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=3DMs=
oNormal>Thanks so much in advance!<o:p></o:p></p></div></div><font face=3D"=
monospace">&gt;&gt;&gt; This e-mail and any attachments are confidential, m=
ay contain legal,<br>
professional or other privileged information, and are intended solely for t=
he<br>
addressee.&nbsp; If you are not the intended recipient, do not use the info=
rmation<br>
in this e-mail in any way, delete this e-mail and notify the sender. CEG-IP=
2</font></body></html>
--_000_9CE162BC5ED2C643956B526A7EDE46FF02445527D93EEXMOMF04Ceg_--

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


