Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from turing.freelists.org (turing.freelists.org [206.53.239.180])
 by malta2546.startdedicated.com (Postfix) with ESMTPS id 69B5010033C8CD
 for <oracle-l@orafaq.com>; Thu, 28 Jun 2018 15:43:58 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id D57D623FA5;
 Thu, 28 Jun 2018 09:43:56 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1530193436;
 bh=UDVbs5ZjbXp9ADA28A4YcQ7irWcgSuk1cwQN+wC942w=;
 h=From:To:Subject:Date:Reply-To:List-help:List-unsubscribe:List-Id:
	 List-subscribe:List-owner:List-post:List-archive;
 b=Pis7YQORclI2/NHoONYKn1vGg2XaYHj41rbDDTQiQXZkUWKpbM0omuWPSg5YeCWvy
	 IpkF7AX0qneRELeDpTneZWQc/8Ab/hBTJg8ftZZdrBy/xHMvFo4TJB99Q74rs/JHJS
	 TQld82ovS56gNiGD2UpnlxRmyRbP9nSFk1PTT23s=
X-Virus-Scanned: Debian amavisd-new at turing.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 dRTF31Pv1fnO; Thu, 28 Jun 2018 09:43:56 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id EEED120113;
 Thu, 28 Jun 2018 09:43:43 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1530193436;
 bh=UDVbs5ZjbXp9ADA28A4YcQ7irWcgSuk1cwQN+wC942w=;
 h=From:To:Subject:Date:Reply-To:List-help:List-unsubscribe:List-Id:
	 List-subscribe:List-owner:List-post:List-archive;
 b=Pis7YQORclI2/NHoONYKn1vGg2XaYHj41rbDDTQiQXZkUWKpbM0omuWPSg5YeCWvy
	 IpkF7AX0qneRELeDpTneZWQc/8Ab/hBTJg8ftZZdrBy/xHMvFo4TJB99Q74rs/JHJS
	 TQld82ovS56gNiGD2UpnlxRmyRbP9nSFk1PTT23s=
Received: with ECARTIS (v1.0.0; list oracle-l); Thu, 28 Jun 2018 09:42:22 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 1489621979
 for <oracle-l@freelists.org>; Thu, 28 Jun 2018 09:42:22 -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 G0dwYJXx37oy for <oracle-l@freelists.org>;
 Thu, 28 Jun 2018 09:42:21 -0400 (EDT)
Received: from smtp1.vontobel.ch (smtp1.vontobel.ch [194.56.165.25])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 9BA422160B
 for <oracle-l@freelists.org>; Thu, 28 Jun 2018 09:42:21 -0400 (EDT)
Received: from smtp1.vontobel.ch (localhost [127.0.0.1])
 by smtp1.vontobel.ch (Mission Control Email Shield, 18401) with SMTP id 41Ggv00gNSzcWr9
 for <oracle-l@freelists.org>; Thu, 28 Jun 2018 15:42:20 +0200 (MEST)
Received: from trusted client by smtp1.vontobel.ch; Thu Jun 28 15:42:20 2018
Authentication-Results: vonn-mx001-ch-zur-1; dkim=none
Received: from trusted client by smtp1.vontobel.ch; Thu Jun 28 15:42:20 2018
Received: from trusted client by smtp1.vontobel.ch; Thu Jun 28 15:42:20 2018
Received: from trusted client by smtp1.vontobel.ch; Thu Jun 28 15:42:20 2018
From: Noveljic Nenad <nenad.noveljic@vontobel.com>
To: "ORACLE-L (oracle-l@freelists.org)" <oracle-l@freelists.org>
Subject: sql_id in ADS trace
Thread-Topic: sql_id in ADS trace
Date: Thu, 28 Jun 2018 13:42:13 +0000
Message-ID: <77834_1530193340_5B34E5BC_77834_8602_1_ECDEF0CC6716EC4596FCBC871F48292AB19C43D9@ZRH-S231>
Accept-Language: de-CH, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-moderation-data: 28.06.2018 15:42:18
Content-Type: multipart/alternative;
 boundary="_000_ECDEF0CC6716EC4596FCBC871F48292AB19C43D9ZRHS231_"
MIME-Version: 1.0
X-archive-position: 71800
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: nenad.noveljic@vontobel.com
Precedence: normal
Reply-To: nenad.noveljic@vontobel.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:>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
--_000_ECDEF0CC6716EC4596FCBC871F48292AB19C43D9ZRHS231_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

A DYNAMIC_SAMPLING_RESULT sql plan directive got created for a join cardina=
lity misestimate.

The dynamic sampling sql_id stored in notes is 7wckkp93ya8a2:

<spd_note><internal_state>NEW</internal_state><redundant>NO</redundant><spd=
_text>{(V.T1, num_rows=3D1001000) - (V.T2, num_rows=3D1001) - (SQL_ID:7wckk=
p93ya8a2, T.CARD=3D943807[-2 -2])}</spd_text></spd_note>

The sql_id in the RDBMS.ADS trace is encoded differently:

kkoadsComputeSqlid: sql_id=3D9093421488918569282: newText=3DSELECT /* DS_SV=
C */  NVL(SUM(C1),0) FROM (SELECT /*+ qb_name("innerQuery") NO_INDEX_FFS( "=
T1#1")  */ 1 AS C1 FROM "T1" "T1#1", "T2" "T2#0" WHERE ("T2#0"."N2"=3D2) AN=
D ("T1#1"."N1"=3D"T2#0"."N1") AND ("T1#1"."N2"=3D2) AND ("T1#1"."N3"=3D2)) =
innerQuery, startPos =3D 20, stopPos =3D 120, newTextLen =3D 244, sqlLen =
=3D 343

How can I convert the sql_id from the RDBMS.ADS into the conventional forma=
t?

Many thanks in advance.

Nenad

http://nenadnoveljic.com/blog/

____________________________________________________
Please consider the environment before printing this e-mail.
Bitte denken Sie an die Umwelt, bevor Sie dieses E-Mail drucken.

<html xmlns=3D"http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css">p { font-family: Arial;font-size:9pt }</style>
</head>
<body>
<p>
<br>Important Notice</br>
<br />
This message is intended only for the individual named. It may contain conf=
idential or privileged information. If you are not the named addressee you =
should in particular not disseminate, distribute, modify or copy this e-mai=
l. Please notify the sender immediately by e-mail, if you have received thi=
s message by mistake and delete it from your system.<br />
Without prejudice to any contractual agreements between you and us which sh=
all prevail in any case, we take it as your authorization to correspond wit=
h you by e-mail if you send us messages by e-mail. However, we reserve the =
right not to execute orders and instructions transmitted by e-mail at any t=
ime and without further explanation.<br />
E-mail transmission may not be secure or error-free as information could be=
 intercepted, corrupted, lost, destroyed, arrive late or incomplete. Also p=
rocessing of incoming e-mails cannot be guaranteed. All liability of Vontob=
el Holding Ltd. and any of its affiliates (hereinafter collectively referre=
d to as "Vontobel Group") for any damages resulting from e-mail use is excl=
uded. You are advised that urgent and time sensitive messages should not be=
 sent by e-mail and if verification is required please request a printed ve=
rsion.</br>
Please note that all e-mail communications to and from the Vontobel Group a=
re subject to electronic storage and review by Vontobel Group. Unless state=
d to the contrary and without prejudice to any contractual agreements betwe=
en you and Vontobel Group which shall prevail in any case, e-mail-communica=
tion is for informational purposes only and is not intended as an offer or =
solicitation for the purchase or sale of any financial instrument or as an =
official confirmation of any transaction.<br />
The legal basis for the processing of your personal data is the legitimate =
interest to develop a commercial relationship with you, as well as your con=
sent to forward you commercial communications. You can exercise, at any tim=
e and under the terms established under current regulation, your rights. If=
 you prefer not to receive any further communications, please contact your =
client relationship manager if you are a client of Vontobel Group or notify=
 the sender.
Please note for an exact reference to the affected group entity the corpora=
te e-mail signature.
For further information about data privacy at Vontobel Group please consult=
 <a href=3D"https://www.vontobel.com">www.vontobel.com</a>.<br />
</p>
</body>
</html>


--_000_ECDEF0CC6716EC4596FCBC871F48292AB19C43D9ZRHS231_
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:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii">
<meta name=3D"Generator" 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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
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-compose;
	font-family:"Arial","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 2.0cm 70.85pt;}
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=3D"DE-CH" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;">A DYNAMIC_SAMPLING_RESULT =
sql plan directive got created for a join cardinality misestimate.
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></=
p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;">The dynamic sampling sql_i=
d stored in notes is 7wckkp93ya8a2:<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></=
p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;">&lt;spd_note&gt;&lt;intern=
al_state&gt;NEW&lt;/internal_state&gt;&lt;redundant&gt;NO&lt;/redundant&gt;=
&lt;spd_text&gt;{(V.T1, num_rows=3D1001000) - (V.T2, num_rows=3D1001) - (<s=
pan style=3D"color:red">SQL_ID:7wckkp93ya8a2</span>,
 T.CARD=3D943807[-2 -2])}&lt;/spd_text&gt;&lt;/spd_note&gt;<o:p></o:p></spa=
n></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></=
p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;">The sql_id in the RDBMS.AD=
S trace is encoded differently:<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></=
p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;">kkoadsComputeSqlid:
<span style=3D"color:red">sql_id=3D9093421488918569282</span>: newText=3DSE=
LECT /* DS_SVC */&nbsp; NVL(SUM(C1),0) FROM (SELECT /*&#43; qb_name(&quot;i=
nnerQuery&quot;) NO_INDEX_FFS( &quot;T1#1&quot;)&nbsp; */ 1 AS C1 FROM &quo=
t;T1&quot; &quot;T1#1&quot;, &quot;T2&quot; &quot;T2#0&quot; WHERE (&quot;T=
2#0&quot;.&quot;N2&quot;=3D2) AND (&quot;T1#1&quot;.&quot;N1&quot;=3D&quot;=
T2#0&quot;.&quot;N1&quot;)
 AND (&quot;T1#1&quot;.&quot;N2&quot;=3D2) AND (&quot;T1#1&quot;.&quot;N3&q=
uot;=3D2)) innerQuery, startPos =3D 20, stopPos =3D 120, newTextLen =3D 244=
, sqlLen =3D 343<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></=
p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;">How can I convert the sql_=
id from the RDBMS.ADS into the conventional format?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></=
p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;">Many thanks in advance.<o:=
p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></=
p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;">Nenad<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></=
p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,&quot;sans-serif&quot;"><a href=3D"http://nenadnoveljic.com/blog/=
"><span lang=3D"EN-US">http://nenadnoveljic.com/blog/</span></a></span><spa=
n lang=3D"EN-US" style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&q=
uot;sans-serif&quot;"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></=
p>
</div>
<style type=3D"text/css">

 p.MsoNormal
	{margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	margin-left: 0cm;
	margin-right: 0cm;
	margin-top: 0cm;
}
</style>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:green;mso-ansi-l=
anguage:EN-US;
mso-fareast-language:DE-CH">_______________________________________________=
_____<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:green;mso-ansi-l=
anguage:EN-US;
mso-fareast-language:DE-CH">Please consider the environment before printing=
 this e-mail.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:green;mso-fareast-language:DE-C=
H">Bitte denken Sie an die Umwelt, bevor Sie dieses E-Mail drucken.</span><=
span style=3D"color:green"><o:p></o:p></span></p>
<html xmlns=3D"http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css">p { font-family: Arial;font-size:9pt }</style>
</head>
<body>
<p>
<br>Important Notice</br>
<br />
This message is intended only for the individual named. It may contain conf=
idential or privileged information. If you are not the named addressee you =
should in particular not disseminate, distribute, modify or copy this e-mai=
l. Please notify the sender immediately by e-mail, if you have received thi=
s message by mistake and delete it from your system.<br />
Without prejudice to any contractual agreements between you and us which sh=
all prevail in any case, we take it as your authorization to correspond wit=
h you by e-mail if you send us messages by e-mail. However, we reserve the =
right not to execute orders and instructions transmitted by e-mail at any t=
ime and without further explanation.<br />
E-mail transmission may not be secure or error-free as information could be=
 intercepted, corrupted, lost, destroyed, arrive late or incomplete. Also p=
rocessing of incoming e-mails cannot be guaranteed. All liability of Vontob=
el Holding Ltd. and any of its affiliates (hereinafter collectively referre=
d to as "Vontobel Group") for any damages resulting from e-mail use is excl=
uded. You are advised that urgent and time sensitive messages should not be=
 sent by e-mail and if verification is required please request a printed ve=
rsion.</br>
Please note that all e-mail communications to and from the Vontobel Group a=
re subject to electronic storage and review by Vontobel Group. Unless state=
d to the contrary and without prejudice to any contractual agreements betwe=
en you and Vontobel Group which shall prevail in any case, e-mail-communica=
tion is for informational purposes only and is not intended as an offer or =
solicitation for the purchase or sale of any financial instrument or as an =
official confirmation of any transaction.<br />
The legal basis for the processing of your personal data is the legitimate =
interest to develop a commercial relationship with you, as well as your con=
sent to forward you commercial communications. You can exercise, at any tim=
e and under the terms established under current regulation, your rights. If=
 you prefer not to receive any further communications, please contact your =
client relationship manager if you are a client of Vontobel Group or notify=
 the sender.
Please note for an exact reference to the affected group entity the corpora=
te e-mail signature.
For further information about data privacy at Vontobel Group please consult=
 <a href=3D"https://www.vontobel.com">www.vontobel.com</a>.<br />
</p>
</body>
</html>
</body>
</html>

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


