<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Oracle Tales</title>
	<atom:link href="http://www.stijf.com/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stijf.com/wordpress</link>
	<description>Just another Oracle weblog</description>
	<lastBuildDate>Tue, 14 Dec 2010 23:16:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>New article on Descriptive Flexfields</title>
		<link>http://www.stijf.com/wordpress/2010/12/new-article-on-descriptive-flexfields/</link>
		<comments>http://www.stijf.com/wordpress/2010/12/new-article-on-descriptive-flexfields/#comments</comments>
		<pubDate>Tue, 14 Dec 2010 21:03:44 +0000</pubDate>
		<dc:creator>Arian Stijf</dc:creator>
				<category><![CDATA[eBS]]></category>
		<category><![CDATA[Flexfields]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[descriptive flexfields structure segments context]]></category>

		<guid isPermaLink="false">http://www.stijf.com/wordpress/?p=513</guid>
		<description><![CDATA[I just published the second part of the article series on Flexfields. This part is about Descriptive Flexfields. It is available from:&#160;http://www.stijf.com/joomla/flexfields/flexfields-in-oracle-ebs-descriptive-flexfields The next part will follow shortly, and will discuss the flexfield datamodel.]]></description>
			<content:encoded><![CDATA[<p>I just published the second part of the article series on Flexfields. This part is about Descriptive Flexfields. It is available from:&nbsp;<a href="http://www.stijf.com/joomla/flexfields/flexfields-in-oracle-ebs-descriptive-flexfields">http://www.stijf.com/joomla/flexfields/flexfields-in-oracle-ebs-descriptive-flexfields</a></p>
<p>The next part will follow shortly, and will discuss the flexfield datamodel.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stijf.com/wordpress/2010/12/new-article-on-descriptive-flexfields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New article on eBS (Key) Flexfields</title>
		<link>http://www.stijf.com/wordpress/2010/12/new-article-on-ebs-key-flexfields/</link>
		<comments>http://www.stijf.com/wordpress/2010/12/new-article-on-ebs-key-flexfields/#comments</comments>
		<pubDate>Sun, 05 Dec 2010 16:55:23 +0000</pubDate>
		<dc:creator>Arian Stijf</dc:creator>
				<category><![CDATA[eBS]]></category>
		<category><![CDATA[Flexfields]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[cross-validation]]></category>
		<category><![CDATA[descriptive flexfields]]></category>
		<category><![CDATA[flexfield structures]]></category>
		<category><![CDATA[key flexfields]]></category>
		<category><![CDATA[segments]]></category>

		<guid isPermaLink="false">http://www.stijf.com/wordpress/?p=464</guid>
		<description><![CDATA[Just a short note to point to a new article that I published on the new site:&#160; http://www.stijf.com/joomla/index.php/flexfield-articles/49-flexfields-and-flexfield-structures.html It is the first part of a multi-part article. This part explains Key Flexfields in eBS. The next parts will discuss Descriptive Flexfields, the datamodel and special features.&#160;]]></description>
			<content:encoded><![CDATA[<p>Just a short note to point to a new article that I published on the new site:&nbsp;</p>
<p><a href="http://www.stijf.com/joomla/index.php/flexfield-articles/49-flexfields-and-flexfield-structures.html">http://www.stijf.com/joomla/index.php/flexfield-articles/49-flexfields-and-flexfield-structures.html<br />
	</a></p>
<p>It is the first part of a multi-part article. This part explains Key Flexfields in eBS. The next parts will discuss Descriptive Flexfields, the datamodel and special features.&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stijf.com/wordpress/2010/12/new-article-on-ebs-key-flexfields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update on PLSQL validation</title>
		<link>http://www.stijf.com/wordpress/2010/11/update-on-plsql-validation/</link>
		<comments>http://www.stijf.com/wordpress/2010/11/update-on-plsql-validation/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 13:34:31 +0000</pubDate>
		<dc:creator>Arian Stijf</dc:creator>
				<category><![CDATA[eBS]]></category>

		<guid isPermaLink="false">http://www.stijf.com/wordpress/?p=457</guid>
		<description><![CDATA[&#160; At the flexfields presentation at UKOUG, I promised an update on the PLSQL validation. It turns out, that the only problem was a missing &#34; at the end of the function. Here is the code for the function:&#160; &#160; FND PLSQL &#34; declare v_value varchar2(10) := :!value ; v_num number; begin &#160;&#160;v_num:=to_number(v_value); &#160;&#160;if mod(v_num,2)!=0 [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p style="background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:<br />
&quot;Arial&quot;,&quot;sans-serif&quot;;color:#222222;mso-ansi-language:EN-US">At the flexfields presentation at UKOUG, I promised an update on the PLSQL validation.<o:p></o:p></span></p>
<p style="background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:<br />
&quot;Arial&quot;,&quot;sans-serif&quot;;color:#222222;mso-ansi-language:EN-US">It turns out, that the only problem was a missing &quot; at the end of the function. Here is the code for the function:&nbsp;<o:p></o:p></span></p>
<p style="background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:<br />
&quot;Arial&quot;,&quot;sans-serif&quot;;color:#222222;mso-ansi-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;mso-add-space:auto;background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#222222;<br />
mso-ansi-language:EN-US">FND PLSQL &quot; declare<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;mso-add-space:auto;background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#222222;<br />
mso-ansi-language:EN-US">v_value varchar2(10) := :!value ;<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;mso-add-space:auto;background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#222222;<br />
mso-ansi-language:EN-US">v_num number;<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;mso-add-space:auto;background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#222222;<br />
mso-ansi-language:EN-US">begin<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;mso-add-space:auto;background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#222222;<br />
mso-ansi-language:EN-US">&nbsp;&nbsp;v_num:=to_number(v_value);<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;mso-add-space:auto;background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#222222;<br />
mso-ansi-language:EN-US">&nbsp;&nbsp;if mod(v_num,2)!=0 then<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;mso-add-space:auto;background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#222222;<br />
mso-ansi-language:EN-US">&nbsp;&nbsp; &nbsp; fnd_message.raise_error;<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;mso-add-space:auto;background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#222222;<br />
mso-ansi-language:EN-US">&nbsp;&nbsp;end if;<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;mso-add-space:auto;background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#222222;<br />
mso-ansi-language:EN-US">exception<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;mso-add-space:auto;background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#222222;<br />
mso-ansi-language:EN-US">&nbsp;&nbsp; when others then<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;mso-add-space:auto;background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#222222;<br />
mso-ansi-language:EN-US">&nbsp;&nbsp; &nbsp; fnd_message.set_name(&#39;FND&#39;,&#39;FND_GENERIC_MESSAGE&#39;);<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;mso-add-space:auto;background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#222222;<br />
mso-ansi-language:EN-US">&nbsp;&nbsp; &nbsp; fnd_message.set_token(&#39;MESSAGE&#39;,&#39;This is not a valid number&#39;);<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;mso-add-space:auto;background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#222222;<br />
mso-ansi-language:EN-US">&nbsp;&nbsp; &nbsp; fnd_message.raise_error;<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;mso-add-space:auto;background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#222222;<br />
mso-ansi-language:EN-US">end; &quot;<o:p></o:p></span></p>
<p style="background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:<br />
&quot;Arial&quot;,&quot;sans-serif&quot;;color:#222222;mso-ansi-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p style="background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:<br />
&quot;Arial&quot;,&quot;sans-serif&quot;;color:#222222;mso-ansi-language:EN-US">So, use only the validate event: <o:p></o:p></span></p>
<p style="background:white"><!--[if gte vml 1]><v:shapetype id="_x0000_t75"<br />
 coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"<br />
 filled="f" stroked="f"><br />
 <v:stroke joinstyle="miter"/><br />
 <v:formulas><br />
  <v:f eqn="if lineDrawn pixelLineWidth 0"/><br />
  <v:f eqn="sum @0 1 0"/><br />
  <v:f eqn="sum 0 0 @1"/><br />
  <v:f eqn="prod @2 1 2"/><br />
  <v:f eqn="prod @3 21600 pixelWidth"/><br />
  <v:f eqn="prod @3 21600 pixelHeight"/><br />
  <v:f eqn="sum @0 0 1"/><br />
  <v:f eqn="prod @6 1 2"/><br />
  <v:f eqn="prod @7 21600 pixelWidth"/><br />
  <v:f eqn="sum @8 21600 0"/><br />
  <v:f eqn="prod @7 21600 pixelHeight"/><br />
  <v:f eqn="sum @10 21600 0"/><br />
 </v:formulas><br />
 <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/><br />
 <o:lock v:ext="edit" aspectratio="t"/><br />
</v:shapetype><v:shape id="Picture_x0020_1" o:spid="_x0000_i1026" type="#_x0000_t75"<br />
 style='width:453.75pt;height:255pt;visibility:visible;mso-wrap-style:square'><br />
 <v:imagedata src="file:///C:UsersVERAST~1AppDataLocalTempmsohtmlclip1 1clip_image001.png"<br />
  o:title=""/><br />
</v:shape><![endif]--><!--[if !vml]--><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;<br />
color:#222222;mso-no-proof:yes"><img height="340" src="http://www.stijf.com/wordpress/wp-content/uploads/image/plsql.jpg" v:shapes="Picture_x0020_1" width="605" /><!--[endif]--></span><span lang="EN-US" style="font-size:<br />
9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#222222;mso-ansi-language:EN-US"><o:p></o:p></span></p>
<p style="background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:<br />
&quot;Arial&quot;,&quot;sans-serif&quot;;color:#222222;mso-ansi-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p style="background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:<br />
&quot;Arial&quot;,&quot;sans-serif&quot;;color:#222222;mso-ansi-language:EN-US">And the parameter will validate correctly: <o:p></o:p></span></p>
<p style="background:white"><!--[if gte vml 1]><v:shape id="Picture_x0020_4"<br />
 o:spid="_x0000_i1025" type="#_x0000_t75" style='width:453.75pt;height:255pt;<br />
 visibility:visible;mso-wrap-style:square'><br />
 <v:imagedata src="file:///C:UsersVERAST~1AppDataLocalTempmsohtmlclip1 1clip_image003.png"<br />
  o:title=""/><br />
</v:shape><![endif]--><!--[if !vml]--><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;<br />
color:#222222;mso-no-proof:yes"><img height="340" src="http://www.stijf.com/wordpress/wp-content/uploads/image/validate.jpg" v:shapes="Picture_x0020_4" width="605" /><!--[endif]--></span><span lang="EN-US" style="font-size:<br />
9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#222222;mso-ansi-language:EN-US"><o:p></o:p></span></p>
<p style="background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:<br />
&quot;Arial&quot;,&quot;sans-serif&quot;;color:#222222;mso-ansi-language:EN-US">Good luck on your own experiments! <o:p></o:p></span></p>
<p style="background:white"><span lang="EN-US" style="font-size:9.0pt;font-family:<br />
&quot;Arial&quot;,&quot;sans-serif&quot;;color:#222222;mso-ansi-language:EN-US"><o:p>&nbsp;</o:p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stijf.com/wordpress/2010/11/update-on-plsql-validation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New website and article</title>
		<link>http://www.stijf.com/wordpress/2010/06/new-website-and-article/</link>
		<comments>http://www.stijf.com/wordpress/2010/06/new-website-and-article/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 15:38:19 +0000</pubDate>
		<dc:creator>Arian Stijf</dc:creator>
				<category><![CDATA[eBS]]></category>
		<category><![CDATA[Flexfields]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[checkbox]]></category>
		<category><![CDATA[descriptive]]></category>
		<category><![CDATA[flexfield]]></category>
		<category><![CDATA[oa-framework]]></category>
		<category><![CDATA[personalization]]></category>

		<guid isPermaLink="false">http://www.stijf.com/wordpress/?p=453</guid>
		<description><![CDATA[It&#39;s been a while since I last posted an article here.&#160; A long vacation, and testing different CMS&#39;s for the website account for the lost time. So I decided to give Joomla a try. I just finished installing the components that I want to use. And I wrote a short article, to see how it [...]]]></description>
			<content:encoded><![CDATA[<p>It&#39;s been a while since I last posted an article here.&nbsp;</p>
<p>A long vacation, and testing different CMS&#39;s for the website account for the lost time. So I decided to give Joomla a try. I just finished installing the components that I want to use. And I wrote a short article, to see how it goes.</p>
<p>I&#39;ll be transferring the articles from this website to the new one in the days to come.&nbsp;</p>
<p>For now, take a look at the new website:&nbsp;<a href="http://www.stijf.com/joomla">http://www.stijf.com/joomla</a></p>
<p>The article that I wrote is about adding a column to OA-Framework without using jDeveloper to change the VO. I describe how to use a descriptive flexfield to add a checkbox to the framework page.</p>
<p>You can read the article here:&nbsp;<a href="http://www.stijf.com/joomla/index.php/flexfield-articles/46-personalization-using-flexfield-columns.html">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stijf.com/wordpress/2010/06/new-website-and-article/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Special and Pair validation types</title>
		<link>http://www.stijf.com/wordpress/2010/04/special-and-pair-validation-types/</link>
		<comments>http://www.stijf.com/wordpress/2010/04/special-and-pair-validation-types/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 17:55:27 +0000</pubDate>
		<dc:creator>Arian Stijf</dc:creator>
				<category><![CDATA[eBS]]></category>
		<category><![CDATA[Flexfields]]></category>
		<category><![CDATA[Internals]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Validation]]></category>
		<category><![CDATA[loadid]]></category>
		<category><![CDATA[loadidr]]></category>
		<category><![CDATA[pair validation]]></category>
		<category><![CDATA[popid]]></category>
		<category><![CDATA[popidr]]></category>
		<category><![CDATA[special validation]]></category>
		<category><![CDATA[valid]]></category>
		<category><![CDATA[validation type]]></category>
		<category><![CDATA[validr]]></category>

		<guid isPermaLink="false">http://www.stijf.com/wordpress/?p=445</guid>
		<description><![CDATA[Tutorial on special and pair validation types]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">I am working on an article about flexfields and flexfield validation. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Even though the article is not yet finished, I thought the part about &lsquo;SPECIAL&rsquo; and &lsquo;PAIR&rsquo; validation types might be interesting enough. Many people seem to think they can only use the seeded validation sets. However, you can also create your own validation sets. And their options are very powerful. So I wanted to publish this part of the article as a prelude to the full story. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<h2 style="margin: 12pt 0cm 3pt"><span lang="EN-US" style="mso-ansi-language: en-us"><em><font size="5"><font face="Cambria"><font color="#000000">Special Validation<o:p></o:p></font></font></font></em></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Special validation is used to provide flexfield functionality for a single value. What that means is that you can have for example a concurrent program parameter that will be filled with a Key flexfield value, or a range of flexfield values. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Let&rsquo;s go back to the Key Flexfield. We know that they are combinations of different segment values that are stored in a separate combination table. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">When you want to submit a key-flexfield combination as a parameter to a concurrent program, you can code your own validation for the separate values. But you&rsquo;ll be missing the nice functionality that gives you pop-ups, a validation over the resulting combination and if needed the ID-value for the flexfield combination.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">That is possible with a &lsquo;Special&rsquo; validation type.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">The special validation uses a number of user exits to enter, validate and query keyflex segments. With special validation, you will be able to enter one or more segment values for a key flexfield. To enter these segment values, 3 user exits can be used. They are: &lsquo;POPID&rsquo;, &lsquo;VALID&rsquo; and &lsquo;LOADID&rsquo;.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">POPID is used to enable the user to enter the flexfield segment value. It is called when the users cursor enters the segment value field. With this user exit, you decide which segment values should be shown, and how they should be shown.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;</span>VALID is called when the user exits the segment value, or confirms the chosen flexfield combination. It validates the entered value against the values existing in the key flexfield table. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">LOADID is optional, and it can be used to choose which information will be returned as flexfield value. This can be the concatenated segments, or the id-value for the flexfield combination or segment values. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">These 3 user exits can be assigned to 3 &lsquo;events&rsquo;. There are more events possible, but they are either not yet in use, or their use is not yet supported. So we will only use &lsquo;Validate&rsquo;, &lsquo;Edit&rsquo; and &lsquo;Load&rsquo;. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Sounds complicated, so far? Don&rsquo;t worry; this is not an easy validation. But we&rsquo;ll build some examples to give you an idea. First we start with building a very easy special validation. This will be built on our Code Combination key flexfield. We&rsquo;ll be using a concurrent program &lsquo;Test Flex Validation&rsquo; program to see our different options. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">This program is based on the following procedure: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">CREATE OR REPLACE PROCEDURE XXX_TEST_FLEXFIELD_PARAMS<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">( errbuf<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>out varchar2<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">, retcode <span style="mso-spacerun: yes">&nbsp;</span>out varchar2<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">, p_flex<span style="mso-spacerun: yes">&nbsp; </span><span style="mso-spacerun: yes">&nbsp;</span>in<span style="mso-spacerun: yes">&nbsp; </span>varchar2<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">, p_flex2<span style="mso-spacerun: yes">&nbsp; </span>in<span style="mso-spacerun: yes">&nbsp; </span>varchar2 := &lsquo;XXX&rsquo;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">, p_flex3<span style="mso-spacerun: yes">&nbsp; </span>in<span style="mso-spacerun: yes">&nbsp; </span>varchar2 := &lsquo;XXX&rsquo;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">, p_flex4<span style="mso-spacerun: yes">&nbsp; </span>in<span style="mso-spacerun: yes">&nbsp; </span>varchar2 := &lsquo;XXX&rsquo;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">, p_flex5<span style="mso-spacerun: yes">&nbsp; </span>in<span style="mso-spacerun: yes">&nbsp; </span>varchar2 := &lsquo;XXX&rsquo;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">) IS<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">BEGIN<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>FND_FILE.PUT_LINE(FND_FILE.OUTPUT,p_flex);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>FND_FILE.PUT_LINE(FND_FILE.OUTPUT,p_flex2);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>FND_FILE.PUT_LINE(FND_FILE.OUTPUT,p_flex3);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>FND_FILE.PUT_LINE(FND_FILE.OUTPUT,p_flex4);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>FND_FILE.PUT_LINE(FND_FILE.OUTPUT,p_flex5);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">END;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">This will only write the parameter value to the output of the request. To use flexfields as parameters for concurrent programs, we need to define a value set based on them. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">We will start with the barest setup to enter a key-flexfield combination. For this article, we use the accounting flexfield, with code &lsquo;GL#&rsquo;<span style="mso-spacerun: yes">&nbsp; </span>and id-num &lsquo;101&rsquo;. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">In this case, we have the following definition:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><font size="3"><font face="Calibri"><font color="#000000"><span style="mso-fareast-language: nl; mso-no-proof: yes"><v:shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" o:preferrelative="t" o:spt="75" path="m@4@5l@4@11@9@11@9@5xe" stroked="f"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path gradientshapeok="t" o:connecttype="rect" o:extrusionok="f"></v:path><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype><v:shape id="Picture_x0020_4" o:spid="_x0000_i1042" style="width: 453.75pt; height: 288.75pt; visibility: visible; mso-wrap-style: square" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:UsersArianAppDataLocalTempmsohtmlclip1 1clip_image001.png"></v:imagedata></v:shape></span><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><img alt="" height="481" src="http://www.stijf.com/wordpress/wp-content/uploads/image/Flex_special1.jpg" width="755" /></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt">&nbsp;</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">So what does this mean? <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">The first box is for the edit event. This will be triggered when the user enters the cursor into the field with this value set.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">FND POPID<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>This is the user exit to pop up a flexfield screen, and let the user enter the flexfield values. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">CODE=&quot;GL#&quot;<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </span>This is the flexfield code for the key flexfield that we will be using.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">APPL_SHORT_NAME=&quot;SQLGL&quot;<span style="mso-tab-count: 1"> </span>The short name for the application the flexfield belongs too. Together with &lsquo;Code&rsquo;, this will identify the flexfield itself. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">NUM=&quot;101&quot;<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>The id-number for the flexfield structure. If you have only a single structure flexfield, it is optional. For flexfields enabled for multiple structures, you need to enter the id-number.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">VALIDATE=&quot;PARTIAL&quot;<span style="mso-tab-count: 1">&nbsp;&nbsp; </span>Validate can be &lsquo;None&rsquo;, &lsquo;Partial&rsquo; or &lsquo;Full&rsquo;. None means the combination is not validated. Partial means that the separate segments are validated, there is no validation if the combination exists. Full means that segments and combination will be checked, and if a new value is entered, this will be inserted into the key flexfield table.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">SEG=&quot;:!VALUE&quot;<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>This is the forms field that will be used to store the value of the segments. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">The second box is for the &lsquo;Validation&rsquo; event. This code will be called when the user navigates out of the field, or submits the entire combination.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Now when we set this value set as a parameter for our concurrent program, we can see how the validation works:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><font size="3"><font face="Calibri"><font color="#000000"><span style="mso-fareast-language: nl; mso-no-proof: yes"><v:shape id="Picture_x0020_7" o:spid="_x0000_i1041" style="width: 453.75pt; height: 303pt; visibility: visible; mso-wrap-style: square" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:UsersArianAppDataLocalTempmsohtmlclip1 1clip_image003.png"></v:imagedata></v:shape></span><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><img alt="" height="504" src="http://www.stijf.com/wordpress/wp-content/uploads/image/Flex_special2.jpg" width="755" /></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Now when we run the program, we get this pop-up: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><font size="3"><font face="Calibri"><font color="#000000"><span style="mso-fareast-language: nl; mso-no-proof: yes"><v:shape id="Picture_x0020_10" o:spid="_x0000_i1040" style="width: 453.75pt; height: 244.5pt; visibility: visible; mso-wrap-style: square" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:UsersArianAppDataLocalTempmsohtmlclip1 1clip_image005.png"></v:imagedata></v:shape></span><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><img alt="" height="414" src="http://www.stijf.com/wordpress/wp-content/uploads/image/Flex_special3.jpg" width="769" /></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt">&nbsp;</p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">We have all the functionality of the key flexfield. We can use the &lsquo;Combinations&rsquo; button to search for existing combinations, and all separate segments will be validated, as will be the final combination. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">When we submit a value to our program, it will show the concatenated segments as the value of our parameter: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><font size="3"><font face="Calibri"><font color="#000000"><span style="mso-fareast-language: nl; mso-no-proof: yes"><v:shape id="Picture_x0020_13" o:spid="_x0000_i1039" style="width: 453.75pt; height: 45pt; visibility: visible; mso-wrap-style: square" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:UsersArianAppDataLocalTempmsohtmlclip1 1clip_image007.png"></v:imagedata></v:shape></span><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><img alt="" height="73" src="http://www.stijf.com/wordpress/wp-content/uploads/image/Flex_special4.jpg" width="732" /></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt">&nbsp;</p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Now let&rsquo;s see some more features of this validation. For example, we&rsquo;d like to have the value of the combination id. (CODE_COMBINATION_ID in our case, since we use the Accounting Flexfield). <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">To get that, we need to add the LOADID user exit: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;<img alt="" height="596" src="http://www.stijf.com/wordpress/wp-content/uploads/image/Flex_special5.jpg" width="730" /></font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><font size="3"><font face="Calibri"><font color="#000000"><span style="mso-fareast-language: nl; mso-no-proof: yes"><v:shape id="Picture_x0020_22" o:spid="_x0000_i1038" style="width: 453.75pt; height: 378pt; visibility: visible; mso-wrap-style: square" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:UsersArianAppDataLocalTempmsohtmlclip1 1clip_image009.png"></v:imagedata></v:shape></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">The &lsquo;Load&rsquo; event will get the combination-id from the flexfield table. This is only possible for the &lsquo;VALIDATE=&rdquo;FULL&rdquo;, since it will validate the whole combination. Also we need to set the ID=&rdquo;:!ID&rdquo;. This will populate the :!ID column with the ID value of the combination.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Finally, I added the &lsquo;DINSERT=&rdquo;NO&rdquo; &lsquo;, because we don&rsquo;t want to allow insertion of new code combinations from this value set. (And Validation=&rdquo;FULL&rdquo; by default inserts new combinations into the flexfield column). <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Now when we run the concurrent request, we see that the parameter value is the code_combination_id instead of the concatenated segments:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><font size="3"><font face="Calibri"><font color="#000000"><span style="mso-fareast-language: nl; mso-no-proof: yes"><v:shape id="Picture_x0020_19" o:spid="_x0000_i1037" style="width: 453.75pt; height: 43.5pt; visibility: visible; mso-wrap-style: square" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:UsersArianAppDataLocalTempmsohtmlclip1 1clip_image011.png"></v:imagedata></v:shape></span><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><img alt="" height="69" src="http://www.stijf.com/wordpress/wp-content/uploads/image/Flex_special6.jpg" width="722" /></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><br />
	<font size="3"><font face="Calibri"><font color="#000000">With these user exits it is also possible to select just a number of segments, instead of the whole combination. For this we remove the &lsquo;Load&rsquo; / &lsquo;LOADID&rsquo; part again. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Then we add a &lsquo;DISPLAY=&rdquo;x&rdquo; &lsquo; to the &lsquo;Edit&rsquo; and &lsquo;Validate&rsquo; user exits. The &ldquo;display&rdquo; parameter is defaulting to &lsquo;ALL&rsquo;. But you can also specify separate segments by their sequence number or names. In our case, we display the first 2 segments: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font size="3"><font face="Calibri"><font color="#000000"><span style="mso-fareast-language: nl; mso-no-proof: yes"><v:shape id="Picture_x0020_25" o:spid="_x0000_i1036" style="width: 453.75pt; height: 258.75pt; visibility: visible; mso-wrap-style: square" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:UsersArianAppDataLocalTempmsohtmlclip1 1clip_image013.png"></v:imagedata></v:shape></span><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><img alt="" height="405" src="http://www.stijf.com/wordpress/wp-content/uploads/image/Flex_special8.jpg" width="710" /></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Now when we run the concurrent program, we get a pop-up for only the first 2 values:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><font size="3"><font face="Calibri"><font color="#000000"><span style="mso-fareast-language: nl; mso-no-proof: yes"><v:shape id="Picture_x0020_28" o:spid="_x0000_i1035" style="width: 453.75pt; height: 126.75pt; visibility: visible; mso-wrap-style: square" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:UsersArianAppDataLocalTempmsohtmlclip1 1clip_image015.png"></v:imagedata></v:shape></span><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><img alt="" height="174" src="http://www.stijf.com/wordpress/wp-content/uploads/image/Flex_special9.jpg" width="623" /></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">A very nice feature (at least as far as I&rsquo;m concerned) is the use of a where clause on the combination values. Consider the following &lsquo;Enter&rsquo; code:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-size: 8pt; mso-ansi-language: en-us"><font face="Calibri"><font color="#000000">FND POPID<o:p></o:p></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-size: 8pt; mso-ansi-language: en-us"><font face="Calibri"><font color="#000000">CODE=&quot;GL#&quot;<o:p></o:p></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-size: 8pt; mso-ansi-language: en-us"><font face="Calibri"><font color="#000000">NUM=&quot;101&quot;<o:p></o:p></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-size: 8pt; mso-ansi-language: en-us"><font face="Calibri"><font color="#000000">APPL_SHORT_NAME=&quot;SQLGL&quot;<o:p></o:p></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-size: 8pt; mso-ansi-language: en-us"><font face="Calibri"><font color="#000000">VALIDATE=&quot;FULL&quot;<o:p></o:p></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-size: 8pt; mso-ansi-language: en-us"><font face="Calibri"><font color="#000000">TITLE=&quot;Special Validation Key&quot;<o:p></o:p></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-size: 8pt; mso-ansi-language: en-us"><font face="Calibri"><font color="#000000">ID=&quot;:!ID&quot;<o:p></o:p></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-size: 8pt; mso-ansi-language: en-us"><font face="Calibri"><font color="#000000">SEG=&quot;:!VALUE&quot;<o:p></o:p></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-size: 8pt; mso-ansi-language: en-us"><font face="Calibri"><font color="#000000">DESC=&quot;:!MEANING&quot;<o:p></o:p></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><b style="mso-bidi-font-weight: normal"><span lang="EN-US" style="line-height: 115%; font-size: 8pt; mso-ansi-language: en-us"><font face="Calibri"><font color="#000000">WHERE=&quot;segment2 not like &#39;1%&#39; &quot;<o:p></o:p></font></font></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">The &ldquo;WHERE&rdquo; clause prevents us from choosing combinations that have a segment2 starting with &lsquo;1&rsquo;. When we run our concurrent program with this, and choose the combinations: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font size="3"><font face="Calibri"><font color="#000000"><span style="mso-fareast-language: nl; mso-no-proof: yes"><v:shape id="Picture_x0020_31" o:spid="_x0000_i1034" style="width: 220.5pt; height: 328.5pt; visibility: visible; mso-wrap-style: square" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:UsersArianAppDataLocalTempmsohtmlclip1 1clip_image017.png"></v:imagedata></v:shape></span><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><img alt="" height="438" src="http://www.stijf.com/wordpress/wp-content/uploads/image/Flex_special10.jpg" width="294" /></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">There is no Dpt starting with 1. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">When we add the &ldquo;WHERE&rdquo;-clause to the validation event too, it will prevent us from entering the values manually:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font size="3"><font face="Calibri"><font color="#000000"><span style="mso-fareast-language: nl; mso-no-proof: yes"><v:shape id="Picture_x0020_34" o:spid="_x0000_i1033" style="width: 330.75pt; height: 105pt; visibility: visible; mso-wrap-style: square" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:UsersArianAppDataLocalTempmsohtmlclip1 1clip_image019.png"></v:imagedata></v:shape></span><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><img alt="" height="140" src="http://www.stijf.com/wordpress/wp-content/uploads/image/Flex_special11.jpg" width="441" /></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">The last feature that we&rsquo;ll look into is the use of a pl/sql validation through the special validation routines. By using the user-exit PLSQL, we can call an anonymous PL/SQL block in our &lsquo;Validation&rsquo; event. I created a value set with the following function for the &lsquo;Validation&rsquo; event:</font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000"><o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000"><img alt="" height="404" src="http://www.stijf.com/wordpress/wp-content/uploads/image/Flex_special12.jpg" width="712" /></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">FND PLSQL &quot; declare<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>v_value varchar2( 10 ) := :!value ;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>v_sum number;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>v_valid boolean;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>v_sum:=0;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>for i in 1..length(v_value) loop<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>v_sum :=v_sum+(length(v_value)+1-i)*substr(v_value,i,1);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>end loop;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>if mod(v_sum,11)=0 then<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </span>v_valid := TRUE;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>else<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </span>v_valid:=FALSE;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>end if;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>if not v_valid then<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>fnd_message.set_name(&#39;FND&#39;,&#39;FND_GENERIC_MESSAGE&#39; );<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>fnd_message.set_token(&#39;MESSAGE&#39;,&#39;This is not a valid bank account&#39;);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>fnd_message.raise_error;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>end if;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><font color="#000000"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us">END; &quot; </span><span lang="EN-US" style="mso-ansi-language: en-us"><o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font size="3"><font face="Calibri"><font color="#000000"><span style="mso-fareast-language: nl; mso-no-proof: yes"><v:shape id="Picture_x0020_46" o:spid="_x0000_i1032" style="width: 453.75pt; height: 257.25pt; visibility: visible; mso-wrap-style: square" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:UsersArianAppDataLocalTempmsohtmlclip1 1clip_image021.png"></v:imagedata></v:shape></span><span lang="EN-US" style="mso-ansi-language: en-us"><o:p></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">This PL/SQL procedure validates a (Dutch) bank account number. If it does need pass the test, a message will be displayed. This gives you almost unlimited possibilities for validating entered data. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">As you can see, it is only a &lsquo;Validate&rsquo; event. Because we don&rsquo;t need any special functionality for entering the data. We can limit the entry to numbers only on the &lsquo;Validation Set&rsquo; main page. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Now when we use this value set for our concurrent program, we can only enter valid dutch bank accounts:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font size="3"><font face="Calibri"><font color="#000000"><span style="mso-fareast-language: nl; mso-no-proof: yes"><v:shape id="Picture_x0020_49" o:spid="_x0000_i1031" style="width: 343.5pt; height: 120.75pt; visibility: visible; mso-wrap-style: square" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:UsersArianAppDataLocalTempmsohtmlclip1 1clip_image023.png"></v:imagedata></v:shape></span><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><img alt="" height="161" src="http://www.stijf.com/wordpress/wp-content/uploads/image/Flex_special13.jpg" width="458" /></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">And<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font size="3"><font face="Calibri"><font color="#000000"><span style="mso-fareast-language: nl; mso-no-proof: yes"><v:shape id="Picture_x0020_52" o:spid="_x0000_i1030" style="width: 453.75pt; height: 44.25pt; visibility: visible; mso-wrap-style: square" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:UsersArianAppDataLocalTempmsohtmlclip1 1clip_image025.png"></v:imagedata></v:shape></span><span lang="EN-US" style="mso-ansi-language: en-us"><o:p></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font size="3"><font face="Calibri"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us"><img alt="" height="69" src="http://www.stijf.com/wordpress/wp-content/uploads/image/Flex_special14.jpg" width="713" /></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><br />
	<font size="3"><font face="Calibri"><font color="#000000">The list of parameters for the user exits is longer than this. So we won&rsquo;t be going through all the possibilities. You can check the Developers Guide and the Flexfield guide for a complete listing of options. (Did you notice the flexfield title that I sneaked into the pop-up? Try and find the option for that!)<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Please try the different options for yourself, and realize the possibilities of the special validation. <o:p></o:p></font></font></font></span></p>
<h2 style="margin: 12pt 0cm 3pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><em><font color="#000000" face="Cambria" size="5">&nbsp;</font></em></o:p></span></h2>
<h2 style="margin: 12pt 0cm 3pt"><span lang="EN-US" style="mso-ansi-language: en-us"><em><font size="5"><font face="Cambria"><font color="#000000">Pair Validation<o:p></o:p></font></font></font></em></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Meanwhile, we&rsquo;ll continue to the &lsquo;Pair&rsquo; validation. The pair validation is very much like the &lsquo;special&rsquo; validation. It uses the same kind of user exits, but this time, a range of segment values or combinations is selected. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Let&rsquo;s first create a range of the account segment. Instead of using POPID and VALID, we use POPIDR and VALIDR. The R-version of the user-exits automatically create a range. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Of course we need 2 parameters to set the range. However, we need only one validation set. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">I created the validation set &lsquo;XXX_PAIR_VAL&rsquo;. I entered only the edit and validate events: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><font size="3"><font color="#000000"><font face="Calibri"><span style="mso-fareast-language: nl; mso-no-proof: yes"><v:shape id="Picture_x0020_58" o:spid="_x0000_i1029" style="width: 453.75pt; height: 4in; visibility: visible; mso-wrap-style: square" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:UsersArianAppDataLocalTempmsohtmlclip1 1clip_image027.png"></v:imagedata></v:shape></span><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><img alt="" height="480" src="http://www.stijf.com/wordpress/wp-content/uploads/image/Flex_special16.jpg" width="755" /></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt">&nbsp;</p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The next step is to set the parameters for both the low and high value. Both parameters have the validation set &lsquo;XXX_PAIR_VAL&rsquo;.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><font size="3"><font color="#000000"><font face="Calibri"><span style="mso-fareast-language: nl; mso-no-proof: yes"><v:shape id="Picture_x0020_61" o:spid="_x0000_i1028" style="width: 453.75pt; height: 192.75pt; visibility: visible; mso-wrap-style: square" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:UsersArianAppDataLocalTempmsohtmlclip1 1clip_image029.png"></v:imagedata></v:shape></span><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><img alt="" height="317" src="http://www.stijf.com/wordpress/wp-content/uploads/image/Flex_special18.jpg" width="747" /></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Now when we run the program, we can enter a range. This includes validation that the high value is indeed higher or equal to the low value. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><font size="3"><font color="#000000"><font face="Calibri"><span style="mso-fareast-language: nl; mso-no-proof: yes"><v:shape id="Picture_x0020_55" o:spid="_x0000_i1027" style="width: 453.75pt; height: 102.75pt; visibility: visible; mso-wrap-style: square" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:UsersArianAppDataLocalTempmsohtmlclip1 1clip_image031.png"></v:imagedata></v:shape></span><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><img alt="" height="174" src="http://www.stijf.com/wordpress/wp-content/uploads/image/Flex_special15.jpg" width="769" /></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Of course the concurrent program will receive the values for 2 parameters. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">When we use the full validation we can enter a range of the whole account combination. Note that we cannot use the FULL validation for pair-validation. Because that would mean the use of the combination-id from the flexfield table and based on the combination-id&rsquo;s you cannot build a range.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">So we can only use PARTIAL and NONE for the validation. For that same reason, I have not yet had a reason to use a LOAD event for PAIR validation. It is however allowed to use one. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">I created a PAIR validation for the whole accounting range as follows: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><font size="3"><font color="#000000"><font face="Calibri"><span style="mso-fareast-language: nl; mso-no-proof: yes"><v:shape id="Picture_x0020_64" o:spid="_x0000_i1026" style="width: 453.75pt; height: 4in; visibility: visible; mso-wrap-style: square" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:UsersArianAppDataLocalTempmsohtmlclip1 1clip_image033.png"></v:imagedata></v:shape></span><span lang="EN-US" style="mso-ansi-language: en-us"><o:p></o:p></span></font></font></font></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt">&nbsp;<img alt="" height="479" src="http://www.stijf.com/wordpress/wp-content/uploads/image/Flex_special19.jpg" width="755" /></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">When used in the concurrent program, it will indeed allow us to enter a range of all segments:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><font size="3"><font color="#000000"><font face="Calibri"><span style="mso-fareast-language: nl; mso-no-proof: yes"><v:shape id="Picture_x0020_67" o:spid="_x0000_i1025" style="width: 265.5pt; height: 201.75pt; visibility: visible; mso-wrap-style: square" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:UsersArianAppDataLocalTempmsohtmlclip1 1clip_image035.png"></v:imagedata></v:shape></span><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><img alt="" height="269" src="http://www.stijf.com/wordpress/wp-content/uploads/image/Flex_special20.jpg" width="354" /></o:p></span></font></font></font></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">That completes the chapter on PAIR validation too. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stijf.com/wordpress/2010/04/special-and-pair-validation-types/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>New post on 11i infrastructure</title>
		<link>http://www.stijf.com/wordpress/2010/04/new-post-on-11i-infrastructure/</link>
		<comments>http://www.stijf.com/wordpress/2010/04/new-post-on-11i-infrastructure/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 11:21:41 +0000</pubDate>
		<dc:creator>Arian Stijf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.stijf.com/wordpress/?p=425</guid>
		<description><![CDATA[Just created a new post on the eBS 11i Infrastructure. Unfortunately the picture didn&#39;t become visible. So the PDF-variety is also available from here.]]></description>
			<content:encoded><![CDATA[<p>Just created a new post on the eBS 11i Infrastructure.</p>
<p>Unfortunately the picture didn&#39;t become visible. So the PDF-variety is also available from <a href="http://www.stijf.com/wordpress/PDF/Oracle eBS 11i Infrastructure.pdf" onclick="javascript: pageTracker._trackPageview('/downloads/11i_infrastructure');">here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stijf.com/wordpress/2010/04/new-post-on-11i-infrastructure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle eBS 11i Infrastructure</title>
		<link>http://www.stijf.com/wordpress/2010/04/oracle-ebs-11i-infrastructure/</link>
		<comments>http://www.stijf.com/wordpress/2010/04/oracle-ebs-11i-infrastructure/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 09:58:05 +0000</pubDate>
		<dc:creator>Arian Stijf</dc:creator>
				<category><![CDATA[eBS]]></category>
		<category><![CDATA[Internals]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[components]]></category>
		<category><![CDATA[concurrent]]></category>
		<category><![CDATA[DBA]]></category>
		<category><![CDATA[forms server]]></category>
		<category><![CDATA[iAS]]></category>
		<category><![CDATA[infrastructure]]></category>

		<guid isPermaLink="false">http://www.stijf.com/wordpress/?p=423</guid>
		<description><![CDATA[Oracle eBS 11i Infrastructure &#160; In this article we will describe the infrastructure of Oracle eBusiness Suite (eBS). In its simplest form, eBS is a 3-tier application with a client tier, Application-tier and DB-tier. Database-Tier Let&#8217;s start with the DB-Tier. Surprisingly, the database tier has only very little eBS specific features. Of course we need [...]]]></description>
			<content:encoded><![CDATA[<h1 style="margin: 24pt 0cm 0pt"><span style="mso-ansi-language: en-us"><font color="#365f91"><font face="Cambria">Oracle eBS 11i Infrastructure<o:p></o:p></font></font></span></h1>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">In this article we will describe the infrastructure of Oracle eBusiness Suite (eBS). In its simplest form, eBS is a 3-tier application with a client tier, Application-tier and DB-tier. <o:p></o:p></font></font></font></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">Database-Tier<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Let&rsquo;s start with the DB-Tier. Surprisingly, the database tier has only very little eBS specific features. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Of course we need a database (instance) and therefore an ORACLE_HOME. But the database can either be a single-instance or a RAC-installation and all Oracle RDBMS features are transparently available for eBS. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The management of the RDBMS Installation is also independent of eBS.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">DB-Tier filesystem<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Let&rsquo;s start with the filesystem on the DB-Tier. Of course there is an Oracle_home installation needed, for the RDBMS-Instance. This will be installed during installation of eBS. But also a fresh installed ORACLE_HOME can be used, with an eBS database.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">In the ORACLE_HOME, an extra directory is added. The Appsutil directory. This directory contains the software and data needed for running Autoconfig and Rapidclone. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">All other directories are at the discretion of the eBS DBA. <o:p></o:p></font></font></font></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">Oracle Instance<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">When we look at the instance to run eBS, we find a number of mandatory parameters for eBS. These are found in Metalink notes 216205.1 and 396009.1 (At the time of writing. Please verify these notes for yourself).<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">These parameters are recommended or mandatory based on testing by Oracle Corp. They will automatically be set by the eBS installer. But you should take note of them when you use a fresh installed ORACLE_HOME.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Then we finally come to the contents of the database. <o:p></o:p></font></font></font></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">The eBS Database<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Let&rsquo;s start with the schemas in the database. Oracle eBS creates a separate schema for every module. The schema is named as the short_name of the module, for example AP (Oracle Payables / Accounts Payable), AR (Oracle Receivables / Oracle Receivables). <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">There is a separate schema for the Application owner APPS. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The Application schemas contain the tables, indexes and sequences for the different applications. All objects in these schemas (except indexes, of course) have a synonym in the APPS Schema. In the APPS Schema we also find all PL/SQL objects, views and Materialized Views. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">A major part of eBS is written in PL/SQL. All PL/SQL objects are also installed in the APPS Schema. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">User sessions within eBS will usually run in the APPS Schema as well. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">That brings us to an extra schema in the database: APPLSYSPUB. This schema has access to some of the eBS tables and packages, that allow it to validate eBS logins and start an APPS-session based on that login information. We will see the details of this later on. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Before release 11.5.2 every schema had its own tablespace. However, the number of modules for eBS (and with that the number of schemas) is ever increasing. So managing the database became more and more complex. In 11.5.2 Oracle introduced the Oracle Applications Tablespace Model (OATM). Within this model, the tablespaces in eBS are based on functionality, rather than schemas. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">In this model, we see the following tablespaces: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">APPS_TS_TX_DATA &ndash; Containing all transaction tables, Materialized Views and IOT&rsquo;s<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">APPS_TS_TX_IDX &ndash; Containing all indexes for transaction tables<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">APPS_TS_SEED &ndash; Containing the tables and indexes with seeded data (as opposed to transaction data).<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">APPS_TS_INTERFACE &ndash; For Open Interface tables<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">APPS_TS_SUMMARY &ndash; Contains summary tables for several modules (AR, PA, BIM, etc)<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">APPS_TS_NOLOGGING &ndash; For tables and objects that are created with the NOLOGGING option<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">APPS_TS_ARCHIVE &ndash; Containing archive and history tables (and indexes)<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">APPS_TS_QUEUES &ndash; Containing the AQ (Advanced Queuing) objects<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">APPS_TS_MEDIA &ndash; Containing tables with LOB&rsquo;s. For media objects or documents.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The Undo and Temp tablespaces are not part of the tablespace model.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">Application Tier<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Now it&rsquo;s time to look at the Application Tier. In fact the Application Tier consists of 3 different services: Web service, Forms service and Concurrent Processing. In 11i installations, there is also an Administration service.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The Application Tier significantly changed from R11i to R12. We&rsquo;ll discuss the 11i Apps Tier shortly, and then discuss the R12 tier in more detail.<o:p></o:p></font></font></font></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">The 11i infrastructure<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Both the R11 and R12 infrastructure consist of a Web-service, a Forms Service and a Concurrent Processing part. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">We will be discussing the different services here. The following picture shows all components and their communications. You might want to keep it for reference during this article. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us; mso-no-proof: yes"><v:shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" o:preferrelative="t" o:spt="75" path="m@4@5l@4@11@9@11@9@5xe" stroked="f"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path gradientshapeok="t" o:connecttype="rect" o:extrusionok="f"></v:path><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype><v:shape id="Object_x0020_1" o:gfxdata="UEsDBBQABgAIAAAAIQC75UiUBQEAAB4CAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbKSRvU7DMBSF&#13;&#10;dyTewfKKEqcMCKEmHfgZgaE8wMW+SSwc27JvS/v23KTJgkoXFsu+P+c7Ol5vDoMTe0zZBl/LVVlJ&#13;&#10;gV4HY31Xy4/tS3EvRSbwBlzwWMsjZrlprq/W22PELHjb51r2RPFBqax7HCCXIaLnThvSAMTP1KkI&#13;&#10;+gs6VLdVdad08ISeCho1ZLN+whZ2jsTzgcsnJwldluLxNDiyagkxOquB2Knae/OLUsyEkjenmdzb&#13;&#10;mG/YhlRnCWPnb8C898bRJGtQvEOiVxjYhtLOxs8AySiT4JuDystlVV4WPe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ZHJhd2luZzEueG1sUEsBAi0AFAAGAAgAAAAhAOFRNx/PBgAA5hsAABoAAAAAAAAAAAAAAAAAKQwA&#13;&#10;AGNsaXBib2FyZC90aGVtZS90aGVtZTEueG1sUEsBAi0AFAAGAAgAAAAhAJxmRkG7AAAAJAEAACoA&#13;&#10;AAAAAAAAAAAAAAAAMBMAAGNsaXBib2FyZC9kcmF3aW5ncy9fcmVscy9kcmF3aW5nMS54bWwucmVs&#13;&#10;c1BLBQYAAAAABQAFAGcBAAAzFAAAAAA=&#13;&#10;" o:spid="_x0000_i1030" style="width: 453.75pt; height: 277.5pt; visibility: visible" type="#_x0000_t75"><v:imagedata cropbottom="-130f" croptop="-119f" o:title="" src="file:///C:DOCUME~1ARIANS~1LOCALS~1Tempmsohtmlclip1 1clip_image001.png"></v:imagedata><o:lock aspectratio="f" v:ext="edit"></o:lock></v:shape></span><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri"><span style="mso-spacerun: yes">&nbsp;</span><o:p></o:p></font></font></font></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><o:p><font color="#4f81bd" face="Cambria" size="4">&nbsp;</font></o:p></span></h2>
<h2 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">R11i Web Service<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font color="#000000"><font face="Calibri"><font size="3">For 11i, the web tier is built on Oracle iAS 9i. The iAS installation provides webservices (Apache HTTP/HTTPS), a Java Runtime Engine (JSERV) and a PL/SQL engine (modplsql).<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font color="#000000"><font face="Calibri"><font size="3">The web service also acts a gateway for the Concurrent Request log and output files. And it is the first point of access when starting a forms session. (When using a socket forms connection, when using a forms servlet the web tier will host the forms process).<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font color="#000000"><font face="Calibri"><font size="3">A detail from the picture above shows the iAS structure.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><font color="#000000"><font face="Calibri"><font size="3"><span style="mso-ansi-language: en-us; mso-no-proof: yes"><v:shape id="Object_x0020_2" o:gfxdata="UEsDBBQABgAIAAAAIQC75UiUBQEAAB4CAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbKSRvU7DMBSF&#13;&#10;dyTewfKKEqcMCKEmHfgZgaE8wMW+SSwc27JvS/v23KTJgkoXFsu+P+c7Ol5vDoMTe0zZBl/LVVlJ&#13;&#10;gV4HY31Xy4/tS3EvRSbwBlzwWMsjZrlprq/W22PELHjb51r2RPFBqax7HCCXIaLnThvSAMTP1KkI&#13;&#10;+gs6VLdVdad08ISeCho1ZLN+whZ2jsTzgcsnJwldluLxNDiyagkxOquB2Knae/OLUsyEkjenmdzb&#13;&#10;mG/YhlRnCWPnb8C898bRJGtQvEOiVxjYhtLOxs8AySiT4JuDystlVV4WPeM6tK3VaILeDZxIOSsu&#13;&#10;ti/jidNGNZ3/J08yC1dNv9v8AAAA//8DAFBLAwQUAAYACAAAACEArTA/8cEAAAAyAQAACwAAAF9y&#13;&#10;ZWxzLy5yZWxzhI/NCsIwEITvgu8Q9m7TehCRpr2I4FX0AdZk2wbbJGTj39ubi6AgeJtl2G9m6vYx&#13;&#10;jeJGka13CqqiBEFOe2Ndr+B03C3WIDihMzh6RwqexNA281l9oBFTfuLBBhaZ4ljBkFLYSMl6oAm5&#13;&#10;8IFcdjofJ0z5jL0MqC/Yk1yW5UrGTwY0X0yxNwri3lQgjs+Qk/+zfddZTVuvrxO59CNCmoj3vCwj&#13;&#10;MfaUFOjRhrPHaN4Wv0VV5OYgm1p+LW1eAAAA//8DAFBLAwQUAAYACAAAACEAg6Vi6mUIAAB3VgAA&#13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2AQAAX3JlbHMvLnJlbHNQSwECLQAUAAYACAAAACEAg6Vi6mUIAAB3&#13;&#10;VgAAHwAAAAAAAAAAAAAAAAAgAgAAY2xpcGJvYXJkL2RyYXdpbmdzL2RyYXdpbmcxLnhtbFBLAQIt&#13;&#10;ABQABgAIAAAAIQDhUTcfzwYAAOYbAAAaAAAAAAAAAAAAAAAAAMIKAABjbGlwYm9hcmQvdGhlbWUv&#13;&#10;dGhlbWUxLnhtbFBLAQItABQABgAIAAAAIQCcZkZBuwAAACQBAAAqAAAAAAAAAAAAAAAAAMkRAABj&#13;&#10;bGlwYm9hcmQvZHJhd2luZ3MvX3JlbHMvZHJhd2luZzEueG1sLnJlbHNQSwUGAAAAAAUABQBnAQAA&#13;&#10;zBIAAAAA&#13;&#10;" o:spid="_x0000_i1029" style="width: 453.75pt; height: 114.75pt; visibility: visible" type="#_x0000_t75"><v:imagedata cropbottom="-345f" cropright="-210f" croptop="-288f" o:title="" src="file:///C:DOCUME~1ARIANS~1LOCALS~1Tempmsohtmlclip1 1clip_image003.png"></v:imagedata><o:lock aspectratio="f" v:ext="edit"></o:lock></v:shape></span><span style="mso-ansi-language: en-us"><o:p></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font color="#000000"><font face="Calibri"><font size="3">The core of iAS is the web server. This is the front-end for the client. Requests can also be forwarded to and from the forms server and the concurrent processing. We&rsquo;ll see that in the next paragraphs. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font color="#000000"><font face="Calibri"><font size="3">Within the iAS Jserv and modplsql are plugins. They are the only components that communicate with the database. When they are called, they execute java (Jserv) or PL/SQL (modplsql) and return an html page. This page is then sent to the client through the HTTP service. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font color="#000000"><font face="Calibri"><font size="3">The Jserv delivers a Java Runtime Environment. In the Jserv, java servlets can be run. Also the JSP-files are executed in the Jserv. A JSP-file (Java Server Page) is a page with java code that returns an html-page (similar to the way scripting languages like PhP work). The java part is executed in Jserv, which returns the html to the webserver. The webserver redirects the html to the client. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font color="#000000"><font face="Calibri"><font size="3">Let&rsquo;s take a closer look at the components and their executions: <o:p></o:p></font></font></font></span></p>
<h3 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><o:p><font color="#4f81bd" face="Cambria" size="3">&nbsp;</font></o:p></span></h3>
<h3 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><font color="#4f81bd"><font face="Cambria"><font size="3">Webserver<o:p></o:p></font></font></font></span></h3>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The webserver is based on the regular Apache 2 webserver. The configuration file is also equal to the Apache config file. The configuration is set in httpd.conf (or httpds.conf for SSL). <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Instead of starting the webserver through $APACHE_HOME/bin/httpdctl, we start through $APACHE_HOME/apachectl. The default port number used for eBS 11i is 8000. This is part of port-pool 0. For different port-pools, the port number is increased. So for port-pool 1 the webserver runs on port 8001. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The root directory for the webserver is set to $OA_HTML, which is by default $COMMON_TOP/html. This directory contains all *.html files for eBS. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">A number of virtual directories are set up within eBS. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">JServ<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">As mentioned before, java code is executed by Jserv. Jserv is a java servlet engine. That means that it can run both servlets and jsp-files.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">These servlets are mostly located in the $JAVA_TOP. The *.jsp files are located in the $OA_HTML directory. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">One of the options of Jserv is to create a database connection to the rdbms database. This is done by a JDBC Thin Client connection. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Before we look at the configuration for Jserv, examine the following picture. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><font size="3"><font face="Calibri"><font color="#000000"><span style="mso-ansi-language: en-us; mso-no-proof: yes"><v:shape id="Object_x0020_3" o:gfxdata="UEsDBBQABgAIAAAAIQC75UiUBQEAAB4CAAATAAAAW0NvbnRlbnRfVHlwZXNdL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FAAD//wMAUEsDBBQABgAIAAAA&#13;&#10;IQCcZkZBuwAAACQBAAAqAAAAY2xpcGJvYXJkL2RyYXdpbmdzL19yZWxzL2RyYXdpbmcxLnhtbC5y&#13;&#10;ZWxzhI/NCsIwEITvgu8Q9m7SehCRJr2I0KvUBwjJNi02PyRR7Nsb6EVB8LIws+w3s037sjN5YkyT&#13;&#10;dxxqWgFBp7yenOFw6y+7I5CUpdNy9g45LJigFdtNc8VZ5nKUxikkUigucRhzDifGkhrRykR9QFc2&#13;&#10;g49W5iKjYUGquzTI9lV1YPGTAeKLSTrNIXa6BtIvoST/Z/thmBSevXpYdPlHBMulFxagjAYzB0pX&#13;&#10;Z501LV2BiYZ9/SbeAAAA//8DAFBLAQItABQABgAIAAAAIQC75UiUBQEAAB4CAAATAAAAAAAAAAAA&#13;&#10;AAAAAAAAAABbQ29udGVudF9UeXBlc10ueG1sUEsBAi0AFAAGAAgAAAAhAK0wP/HBAAAAMgEAAAsA&#13;&#10;AAAAAAAAAAAAAAAANgEAAF9yZWxzLy5yZWxzUEsBAi0AFAAGAAgAAAAhAIBpg+GaCgAArq0AAB8A&#13;&#10;AAAAAAAAAAAAAAAAIAIAAGNsaXBib2FyZC9kcmF3aW5ncy9kcmF3aW5nMS54bWxQSwECLQAUAAYA&#13;&#10;CAAAACEA4VE3H88GAADmGwAAGgAAAAAAAAAAAAAAAAD3DAAAY2xpcGJvYXJkL3RoZW1lL3RoZW1l&#13;&#10;MS54bWxQSwECLQAUAAYACAAAACEAnGZGQbsAAAAkAQAAKgAAAAAAAAAAAAAAAAD+EwAAY2xpcGJv&#13;&#10;YXJkL2RyYXdpbmdzL19yZWxzL2RyYXdpbmcxLnhtbC5yZWxzUEsFBgAAAAAFAAUAZwEAAAEVAAAA&#13;&#10;AA==&#13;&#10;" o:spid="_x0000_i1028" style="width: 453.75pt; height: 329.25pt; visibility: visible" type="#_x0000_t75"><v:imagedata cropbottom="-123f" croptop="-1771f" o:title="" src="file:///C:DOCUME~1ARIANS~1LOCALS~1Tempmsohtmlclip1 1clip_image005.png"></v:imagedata><o:lock aspectratio="f" v:ext="edit"></o:lock></v:shape></span><span style="mso-ansi-language: en-us"><o:p></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Within Jserv, we can define different java environments, called zones. These zones are configured with different servlets or java archives (jar-files). Each zone is configured with its own configuration file. Within the zone the startup parameters (initargs) for the servlet are defined. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">On the other side of the picture, you see a group. All java processes within Jserv are grouped together. You must define at least one group. The default group is &lsquo;OACoreGroup&rsquo;. Within each group, we create one or more processes that will be mapped to our zones.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">This mapping is done by mounting the zones and the groups to different logical directories. In the picture, a mountpoint is created: /oa_servlets/. It refers to the group &lsquo;OACoreGroup&rsquo;, which holds 3 java processes. And it is mapped to zone &lsquo;root&rsquo;, which includes the servlet &lsquo;dummy&rsquo; with a set of startup parameters. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">When iAS receives a call to the virtual directory /oa_servlets/ it will be recognized as a Jserv mount point and the request will be forwarded to Jserv. In this example Jserv has 3 java processes in the group for this mount point. And they will be able to run all the servlets in the zone. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Sounds complicated? Take a look at the following configurations:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Jserv.conf:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">ApJServGroup OACoreGroup 3 1 /etc/oracle/iAS/Jserv/etc/jserv.properties<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">ApJServGroupMount /oa_servlets balance://OACoreGroup/root<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Jserv.properties:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">wrapper.bin=/opt/oracle/iAS/Apache/Apache/bin/java.sh<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">zones=root&lt;host&gt;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">root&lt;host&gt;.properties = /etc/oracle/iAS/Jserv/etc/zone.properties<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Zone.properties<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">servlet.Dummy.initArgs=message=I&#39;m a dummy servlet<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Within jserv.conf we define a group called OACoreGroup. This group is running 3 Java processes. And the definition of the group is in the jserv.properties file. The 1 indicates the weight for load-balancing with multiple groups.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Then we mount the zone &lsquo;root&rsquo; to the group &lsquo;OACoreGroup&rsquo;. This mount point is linked to the virtual directory /oa_servlets/. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The virtual directory is used for redirection to the JServ. When a request is made to the virtual directory Jserv will be called. The part of the URL after the virtual directory is the path to the servlet. This path will be searched for in the $CLASSPATH.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">When the java servlets need to connect to the database, they can build a connection using JDBC. The access information is stored in a *.dbc file in $FND_TOP/secure. The dbc-file is referred to in the parameters for the zone. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">Modplsql<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Let&rsquo;s take a look at the modplsql module. This module is designed to run pl/sql procedures within the database. The connection is based on the wdbsvr.app file. This file contains the DAD (Database Access Descriptor), including the access data to the eBS database. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The module is also called through a virtual directory. For example http://&lt;host&gt;:&lt;port&gt;/pls/TESTDB/ dummy. /pls/ is the virtual directory that refers to modplsql. TESTDB is the name of the DAD and dummy is the name of a pl/sql procedure accessible for the db-user from the DAD.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri"><span style="mso-spacerun: yes">&nbsp;</span><o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">That concludes the 9i iAS module for now. <o:p></o:p></font></font></font></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><o:p><font color="#4f81bd" face="Cambria" size="4">&nbsp;</font></o:p></span></h2>
<h2 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">Formsserver<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Let&rsquo;s take a look at the forms server. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Oracle forms can be set up in two ways, socket connection and servlet. The default is socket connection. With a socket connection, a separate forms server and dedicated forms processes are used. For the servlet connection, a java servlet is called within the iAS. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The formsserver itself is installed in the 8.0.9 ORACLE_HOME. Forms has a forms server, and one or more client processes. The forms server is started with f60svr. It will spawn a f60webmx process for every client session connecting.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">On the server side, forms are run in the forms client processes. On the client side, they are run in a java applet. When the client clicks a forms based function in the Personal Home Page, it calls an URL that refers to the forms client executable in the 8.0.6 ORACLE_HOME. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">This URL is taken from the profile option &lsquo;ICX: Forms Launcher&rsquo;, and the default value is like &lsquo;http://&lt;server&gt;:&lt;port&gt;/dev60cgi/f60cgi&rsquo;. The parameters referring to the function being clicked are added to this URL as parameters. (i.e. the name of the form to be started)<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">When this URL is called, the webserver will execute the executable f60cgi. This executable returns a HTML page to the client. This page is called the &lsquo;Base HTML&rsquo; for this forms server. (by default this is $OA_HTML/US/appsbase.htm)<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">This HTML page calls the J-initiator plugin (or the native JVM when configured). It also includes the parameters to connect to the forms server and the name of the form to start. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The J-initiator will start an applet on the client, which connects to the forms listener process. The forms listener process then assigns a dedicated forms client process. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">At this point the whole chain looks like this: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><font size="3"><font color="#000000"><font face="Calibri"><span style="mso-ansi-language: en-us; mso-no-proof: yes"><v:shape id="Object_x0020_5" o:gfxdata="UEsDBBQABgAIAAAAIQC75UiUBQEAAB4CAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbKSRvU7DMBSF&#13;&#10;dyTewfKKEqcMCKEmHfgZgaE8wMW+SSwc27JvS/v23KTJgkoXFsu+P+c7Ol5vDoMTe0zZBl/LVVlJ&#13;&#10;gV4HY31Xy4/tS3EvRSbwBlzwWMsjZrlprq/W22PELHjb51r2RPFBqax7HCCXIaLnThvSAMTP1KkI&#13;&#10;+gs6VLdVdad08ISeCho1ZLN+whZ2jsTzgcsnJwldluLxNDiyagkxOquB2Knae/OLUsyEkjenmdzb&#13;&#10;mG/YhlRnCWPnb8C898bRJGtQvEOiVxjYhtLOxs8AySiT4JuDystlVV4WPeM6tK3VaILeDZxIOSsu&#13;&#10;ti/jidNGNZ3/J08yC1dNv9v8AAAA//8DAFBLAwQUAAYACAAAACEArTA/8cEAAAAyAQAACwAAAF9y&#13;&#10;ZWxzLy5yZWxzhI/NCsIwEITvgu8Q9m7TehCRpr2I4FX0AdZk2wbbJGTj39ubi6AgeJtl2G9m6vYx&#13;&#10;jeJGka13CqqiBEFOe2Ndr+B03C3WIDihMzh6RwqexNA281l9oBFTfuLBBhaZ4ljBkFLYSMl6oAm5&#13;&#10;8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201zxVnmcpTGKSRSKC5xGHMO&#13;&#10;J8aSGtHKRH1AVzaDj1bmIqNhQaq7NMj2VXVg8ZMB4otJOs0hdroG0i+hJP9n+2GYFJ69elh0+UcE&#13;&#10;y6UXFqCMBjMHSldnnTUtXYGJhn39Jt4AAAD//wMAUEsBAi0AFAAGAAgAAAAhALvlSJQFAQAAHgIA&#13;&#10;ABMAAAAAAAAAAAAAAAAAAAAAAFtDb250ZW50X1R5cGVzXS54bWxQSwECLQAUAAYACAAAACEArTA/&#13;&#10;8cEAAAAyAQAACwAAAAAAAAAAAAAAAAA2AQAAX3JlbHMvLnJlbHNQSwECLQAUAAYACAAAACEAfvik&#13;&#10;pG4OAAD+3wAAHwAAAAAAAAAAAAAAAAAgAgAAY2xpcGJvYXJkL2RyYXdpbmdzL2RyYXdpbmcxLnht&#13;&#10;bFBLAQItABQABgAIAAAAIQDhUTcfzwYAAOYbAAAaAAAAAAAAAAAAAAAAAMsQAABjbGlwYm9hcmQv&#13;&#10;dGhlbWUvdGhlbWUxLnhtbFBLAQItABQABgAIAAAAIQCcZkZBuwAAACQBAAAqAAAAAAAAAAAAAAAA&#13;&#10;ANIXAABjbGlwYm9hcmQvZHJhd2luZ3MvX3JlbHMvZHJhd2luZzEueG1sLnJlbHNQSwUGAAAAAAUA&#13;&#10;BQBnAQAA1RgAAAAA&#13;&#10;" o:spid="_x0000_i1027" style="width: 453.75pt; height: 309.75pt; visibility: visible" type="#_x0000_t75"><v:imagedata cropbottom="-142f" croptop="-1991f" o:title="" src="file:///C:DOCUME~1ARIANS~1LOCALS~1Tempmsohtmlclip1 1clip_image007.png"></v:imagedata><o:lock aspectratio="f" v:ext="edit"></o:lock></v:shape></span><span style="mso-ansi-language: en-us"><o:p></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The configuration for the forms server is in the appsweb.cfg file in ($OA_HTML/bin). This file contains the basic coloring scheme for the forms server, the forms settings and the referral information to the J-Initiator plugin. The plugin on the client side is called through its class-id, which is also set in the appsweb.cfg.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">Concurrent Managers<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The last part of the application tier is the concurrent processing part. The concurrent managers are used to execute background and batch processes.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Different executables including host-command files, pl/sql procedures, Oracle Reports, SQL*Loader control files and Binary executables can be defined to be run as concurrent programs. Parameters are also optionally defined with the concurrent programs. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The executable files are defined separate from the concurrent programs. So an executable can be run as different programs with different parameters.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The programs are executed through &lsquo;Requests&rsquo;. A request is started as a concurrent program and the values of its parameters. It can be scheduled to start at a specific time, or in a specific schedule. The output of the program can be sent to a printer. It is also available through the application. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">This picture shows the relation between programs, requests and managers. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><font size="3"><font color="#000000"><font face="Calibri"><span style="mso-ansi-language: en-us; mso-no-proof: yes"><v:shape id="Object_x0020_6" o:gfxdata="UEsDBBQABgAIAAAAIQA0Ev94FAEAAFACAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbKSSy07DMBBF&#13;&#10;90j8g+UtSpyyQAg16YLHEliUDxjsSWLhl2y3tH/PJE0kqEo33Vj2zNy5x2MvVztr2BZj0t7VfFFW&#13;&#10;nKGTXmnX1fxj/VLcc5YyOAXGO6z5HhNfNddXy/U+YGKkdqnmfc7hQYgke7SQSh/QUab10UKmY+xE&#13;&#10;APkFHYrbqroT0ruMLhd56MGb5RO2sDGZPe8ofCAJruPs8VA3WNVc20E/xMVJRUSTjiQQgtESMt1N&#13;&#10;bJ064iomppKUY03qdUg3BP6Pw5D5y/TbYNK90TCjVsjeIeZXsEQupNHh00NUQkX4ptGmebMozzc9&#13;&#10;Qe3bVktUXm4szbCcOs7Y5+0zvQ+Kcb3ceWwz+4rxPzQ/AAAA//8DAFBLAwQUAAYACAAAACEArTA/&#13;&#10;8cEAAAAyAQAACwAAAF9yZWxzLy5yZWxzhI/NCsIwEITvgu8Q9m7TehCRpr2I4FX0AdZk2wbbJGTj&#13;&#10;39ubi6AgeJtl2G9m6vYxjeJGka13CqqiBEFOe2Ndr+B03C3WIDihMzh6RwqexNA281l9oBFTfuLB&#13;&#10;BhaZ4ljBkFLYSMl6oAm58IFcdjofJ0z5jL0MqC/Yk1yW5UrGTwY0X0yxNwri3lQgjs+Qk/+zfddZ&#13;&#10;TVuvrxO59CNCmoj3vCwjMfaUFOjRhrPHaN4Wv0VV5OYgm1p+LW1eAAAA//8DAFBLAwQUAAYACAAA&#13;&#10;ACEAHZ9YVr4OAADaxwAAHwAAAGNsaXBib2FyZC9kcmF3aW5ncy9kcmF3aW5nMS54bWzsXW1T4zgS&#13;&#10;/n5V9x9c/nh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CYIJQSwMECgAAAAAA&#13;&#10;AAAhAHmepYcFEwAABRMAABoAAABjbGlwYm9hcmQvbWVkaWEvaW1hZ2UyLnBuZ4lQTkcNChoKAAAA&#13;&#10;DUlIRFIAAAC9AAAAcwgCAAAAQleUowAAAAFzUkdCAK7OHOkAABK/SURBVHhe7Z17tE3VF8d/+UkN&#13;&#10;Q0OG6CVCqOgpyqNCiaSSShSlJK8xxBgIo6TkVZ6lIvJIpXvTi4iE8is1VPzKM0TlUXrRu/T6fTT9&#13;&#10;1lhj7XPOPffcc8+Ze5+1/jhjn73XY665vnvOudaea65D/v7773/5ZHHg119/feeddxyWnHzyyccc&#13;&#10;c4znk+HAIbmJm//+kz766COByBdffLFp06YkYQGAgBGZ+a1Vq9aZZ5553nnnHX744UkWj0a2nMCN&#13;&#10;iBCA8sEHH4CPoDgxY3nYYYfVrVs35tCuX7/+u+++izfqYIh0xhlngCGQFHnhFGXcIEVefPHFl156&#13;&#10;adGiRc54A45TTz2VkT7ppJMqVKhQvXr1QomBjz/++Kuvvtq6devGjRu3bdu2cuXKoF677rrr2rdv&#13;&#10;L5IpeimCuPnkk0+AS15enpErIkVO+SfVrl0bxKR9IDds2CAwQqq9//77v/32mzRx4okntmnT5qab&#13;&#10;bkIIpb3RLFYYHdwgXSZPngxcjKUCXFq2bNm8efMWLVpwnUkuL168eMmSJfwa1YbmAkB33HEHSMok&#13;&#10;JcXUVhRwA2JGjx4NaLBjYFPZsmUBygUXXJB5uAQH6e2333755ZcB0JdffilPO3fufPfdd4cdPeHG&#13;&#10;jYOYhg0b3nLLLcClmF6yolSLWT19+vT8/PxooCesuAkipk+fPg0aNCjK0Gag7M6dO8ePHx8B9IQS&#13;&#10;N5i9N9988759+xhpZEzfvn31I8YG5Y4dOyZMmIApJjdRW0OHDs0AatPYRMhwgwUDSjBlQoqYeOhh&#13;&#10;1eeFF14I0apPmHDDROmqq67il8nRqFGj2rVrl8YXKFtVrV69umfPnkigI488csaMGcy5skVJodoN&#13;&#10;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#10;z8nZEt+7d290t8dNUhzAKf3cc8/V5hyZFOnpy4RZU6JECQLOpa/KtNWkzi42PSOOK+Fen3766dw0&#13;&#10;dAhKyu475G7ahjqtFenFDd0k+iaxBJYuXZrWLoegss8++4ygOMOGDVOoofTOp8zAwrWJEyeOGTMG&#13;&#10;6OSO1GGnJjPK++67r3z58moxrlrewDWgM3z4cOYUOaKw3nzzzWuuuWbIkCHHHnusWtDonU/ZLAM6&#13;&#10;I0aMIMYAUcclFmRUE1NItoIjX5WDJhy4EalDxE02LF544YXvvvtu9HQWuqlJkyY///zzY489plk9&#13;&#10;mTdWu56yRQsBrceNG9erVy/eyCiJnGeffbZ169YYwmqjlgS5HSbcQD1utrNnz+YIFjC0du3asAse&#13;&#10;xMyNN9745JNPPv7446effnqIXoaQ4UY4y6oG7O7YseO111774YcfhojdhlRm2sS4RO2ec845999/&#13;&#10;/xFHHBGuXoQSN7CYPVbE4eJLFughkHGIZI9BTM2aNV999dWQRoUKK27k7WRHMCFbOSkoFLLn008/&#13;&#10;vfXWW5ExHGb22muvERMpXDLGpjbcuJGeIHU41O6SSy7p1KnTaaedxooZB2fqMX2Ay0MPPQS4mTFx&#13;&#10;ZBoBZtu2bRtexAjlUcCN9ISBmT9/PiPEGs+VV15JQHXCvHGgZrYABHYxXDBfgAtuaLfddhu73yOA&#13;&#10;GOG2rvg3jDEOkQsWLJDB5muwcxHzZjAbd3bt2sVpYXPnzuUgTEaLr8py9m6xvuhEAAWpq1atYpUS&#13;&#10;B3smfUywkTF//fUX+8JIwYuYN4PZOO2MqNjIKlBYrF1IsvLI4saIGXADgDhrE77z3sN3zAsmvXJ+&#13;&#10;c5JsipdNAvbgZUb9HG3HznbixxL6CcRw1qtgJTEyPG6KOAT/SL/0yRtHPRmZxOhu2bKF0+fAEEvP&#13;&#10;oEcCS/PLKc6mD1iv5hpMmG1vaB/Z3C9nS2NOkYAI+oioWKxrO0DxuEkDLAqsIgO4cZQaE3i2XtMu&#13;&#10;sRe5FuySsEX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AAAAqEQAAY2xpcGJvYXJkL2RyYXdpbmdzL19yZWxzL2Ry&#13;&#10;YXdpbmcxLnhtbC5yZWxzUEsBAi0AFAAGAAgAAAAhAOFRNx/PBgAA5hsAABoAAAAAAAAAAAAAAAAA&#13;&#10;TBIAAGNsaXBib2FyZC90aGVtZS90aGVtZTEueG1sUEsBAi0ACgAAAAAAAAAhAACHAIOeEwAAnhMA&#13;&#10;ABoAAAAAAAAAAAAAAAAAUxkAAGNsaXBib2FyZC9tZWRpYS9pbWFnZTEucG5nUEsBAi0ACgAAAAAA&#13;&#10;AAAhAHmepYcFEwAABRMAABoAAAAAAAAAAAAAAAAAKS0AAGNsaXBib2FyZC9tZWRpYS9pbWFnZTIu&#13;&#10;cG5nUEsFBgAAAAAHAAcA9wEAAGZAAAAAAA==&#13;&#10;" o:spid="_x0000_i1026" style="width: 453.75pt; height: 297pt; visibility: visible" type="#_x0000_t75"><v:imagedata cropbottom="-524f" croptop="-111f" o:title="" src="file:///C:DOCUME~1ARIANS~1LOCALS~1Tempmsohtmlclip1 1clip_image009.png"></v:imagedata><o:lock aspectratio="f" v:ext="edit"></o:lock></v:shape></span><span style="mso-ansi-language: en-us"><o:p></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">The managers<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">We&rsquo;ll take a closer look at the concurrent programs later. Let&rsquo;s first look at the concurrent managers. There are concurrent managers and transaction managers. Also a number of control managers are defined. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">We&rsquo;ll start with the &lsquo;Internal Manager&rsquo;. This is the first manager to be started. Its purpose is to control the stopping and (re-)starting of the other managers. When Generic Service Management is enabled (default as of 11.5.7), it delegates to the &lsquo;Service Managers&rsquo;. On every node where concurrent processing is enabled, a &lsquo;Service Manager&rsquo; is started. However, only one Internal Manager is running at any time.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The other concurrent managers are defined with a work shift that controls how many processes a concurrent manager should have at certain times. The work shifts consist of a time-range and a number of processes. The Service Managers (or Internal Manager) will start and stop processes according to these work shifts. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Another part of the setup of concurrent managers is their specialization rules. The specialization rules indicate which programs are valid for a concurrent manager, or are excluded for that manager. They work on an include/exclude principle. When programs are included for that manager, the manager can only run those programs. When programs are excluded, the manager can run any program except the excluded ones.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">When a request (to run a program) is submitted from eBS, it will be placed in FND_CONCURRENT_REQUESTS with a status_code &lsquo;I&rsquo; (The eBS forms have fewer statuses than the codes in the table). The manager processes will query this table for requests that they are eligible to run. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Once a manager process finds a request with status_code &lsquo;I&rsquo;, which it is eligible to run then it will put the request on its own queue. It will then run the executable with the defined parameters. The logfile and outputfile are written to the filesystem in $APPLCSF/$APPLLOG resp. $APPLCSF/$APPLOUT. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">There are some special cases that need to be discussed. The first is the incompatibility. Concurrent Programs can be made incompatible with each other. That means that they cannot run at the same time. Once a program is started that is defined as incompatible with another, it will be automatically put on the queue for the &lsquo;Conflict Resolution Manager&rsquo;. This special manager will check if any incompatible program is running or &lsquo;Pending&rsquo; with code &lsquo;I&rsquo;. If so, it will hold the request on its own queue. If no incompatible program is running or &lsquo;Pending&rsquo;, then it will set the status of the request to &lsquo;Pending&rsquo;. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Another special case are the &lsquo;Transaction Managers&rsquo;. They are started and stopped the same way as the other concurrent managers. But they do not use the request queue. Transaction managers are called online from the eBS forms. And they execute a limited number of programs. These programs defined within their executables. They are called through the &lsquo;FND_TRANSACTION.SYNCHRONOUS&rsquo; procedure, which uses the &lsquo;DBMS_PIPE&rsquo; package.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">The programs<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">It&rsquo;s time to look at the concurrent programs. As mentioned before, a concurrent program is an instantiation of an executable. The executable is defined with a short name, an application (module), a filename and a method. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The short name will uniquely identify the executable. The other data is needed to determine what should be run for this executable. If the executable is an OS-based program, the application will be used to derive the directory on the file system where the executable is found. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">When the executable is defined as PL/SQL, the filename will contain the procedure that needs to be run.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The concurrent program is defined as the executable with an (optional) set of parameters. It also has some properties for the printing of the output (print-style, pre-defined printer, size of the output). <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Depending on the type of executable that needs to be run, the parameters will be sent to the executable ordered or named. For PL/SQL and host files, the parameters are ordered. And the order in which they are defined in the form defines how they will be sent to the executable. For reports the parameters are named, which means they are sent as &lt;parameter&gt;=&lt;value&gt;, &hellip;.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">After the request has finished, the request table &lsquo;FND_CONCURRENT_REQUESTS&rsquo; will be updated with the status information and a reference to the log- and output file. During the execution of the request, a status_code and phase_code are updated. The exact values of these fields are described in one of the next articles. That will go deeper into concurrent processing. <o:p></o:p></font></font></font></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">The output<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The log- and output file from the requests are written to the directories $APPLCSF/$APPLLOG and $APPLCSF/$APPLOUT. But they of course also need to be made available to the user. This is done through the &lsquo;Applications Report Review Agent&rsquo;.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">There is quite a lot of setup that can be done for the whole process. But within the scope of this article, we&rsquo;ll only look at the basic architecture. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">From the eBS form the log and output file are available from 2 buttons. These buttons call the web server for &lsquo;FNDWRR.exe&rsquo; (.exe on both Windows and Unix). <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">FNDWRR.exe is a cgi-executable that will call the &lsquo;FNDFS listener&rsquo;. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">This is an 8.0.6 TNS-listener in the eBS ORACLE_HOME on the eBS application tier. One of the less known features of the TNS-listeners is that they can do more than create database connections. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">In the listener.ora, you can define a program to be called when a connection is made on a certain tns-entry. That feature is used for the FNDFS listener. When it is called, it will redirect traffic to the &lsquo;FNDFS&rsquo; (FND File System) executable. This executable will read the requested file from the file-system and send it to FNDWRR.exe. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Again, we have a schema to show the whole flow: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><font size="3"><font color="#000000"><font face="Calibri"><span style="mso-ansi-language: en-us; mso-no-proof: yes"><v:shape id="Object_x0020_7" o:gfxdata="UEsDBBQABgAIAAAAIQA0Ev94FAEAAFACAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbKSSy07DMBBF&#13;&#10;90j8g+UtSpyyQAg16YLHEliUDxjsSWLhl2y3tH/PJE0kqEo33Vj2zNy5x2MvVztr2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10;uvI5TwHrfh3VFQiCoyhMw4ra5RomKw5fvt1d4olzWN6r4Xgt20GwLj3rFsogoboUOkjDatrlWiUr&#13;&#10;Dl9srY3talXEH0jl+EzWne1w5nKeDVDi9JJoyXeYrAOT7AYQLOtqIXLQLz2HPCaNNsQwX72J5Qqh&#13;&#10;TzLZIyd/QQ8ulURL6CBXCMqynPZ/15B4Mz8m8/MAAAAASUVORK5CYIJQSwECLQAUAAYACAAAACEA&#13;&#10;NBL/eBQBAABQAgAAEwAAAAAAAAAAAAAAAAAAAAAAW0NvbnRlbnRfVHlwZXNdLnhtbFBLAQItABQA&#13;&#10;BgAIAAAAIQCtMD/xwQAAADIBAAALAAAAAAAAAAAAAAAAAEUBAABfcmVscy8ucmVsc1BLAQItABQA&#13;&#10;BgAIAAAAIQC6T0wc6wwAAKGDAAAfAAAAAAAAAAAAAAAAAC8CAABjbGlwYm9hcmQvZHJhd2luZ3Mv&#13;&#10;ZHJhd2luZzEueG1sUEsBAi0AFAAGAAgAAAAhAOqxsCXaAAAAMgIAACoAAAAAAAAAAAAAAAAAVw8A&#13;&#10;AGNsaXBib2FyZC9kcmF3aW5ncy9fcmVscy9kcmF3aW5nMS54bWwucmVsc1BLAQItABQABgAIAAAA&#13;&#10;IQDhUTcfzwYAAOYbAAAaAAAAAAAAAAAAAAAAAHkQAABjbGlwYm9hcmQvdGhlbWUvdGhlbWUxLnht&#13;&#10;bFBLAQItAAoAAAAAAAAAIQAMnJlOGA8AABgPAAAaAAAAAAAAAAAAAAAAAIAXAABjbGlwYm9hcmQv&#13;&#10;bWVkaWEvaW1hZ2UxLnBuZ1BLAQItAAoAAAAAAAAAIQC2CpwwcQcAAHEHAAAaAAAAAAAAAAAAAAAA&#13;&#10;ANAmAABjbGlwYm9hcmQvbWVkaWEvaW1hZ2UyLnBuZ1BLBQYAAAAABwAHAPcBAAB5LgAAAAA=&#13;&#10;" o:spid="_x0000_i1025" style="width: 453.75pt; height: 273pt; visibility: visible" type="#_x0000_t75"><v:imagedata cropbottom="-145f" croptop="-121f" o:title="" src="file:///C:DOCUME~1ARIANS~1LOCALS~1Tempmsohtmlclip1 1clip_image011.png"></v:imagedata><o:lock aspectratio="f" v:ext="edit"></o:lock></v:shape></span><span style="mso-ansi-language: en-us"><o:p></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">This complex retrieval is of course needed because the concurrent processing tier can be separate from the forms and web-tiers.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stijf.com/wordpress/2010/04/oracle-ebs-11i-infrastructure/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>eBS Troubleshooting</title>
		<link>http://www.stijf.com/wordpress/2010/04/ebs-troubleshooting/</link>
		<comments>http://www.stijf.com/wordpress/2010/04/ebs-troubleshooting/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 19:46:33 +0000</pubDate>
		<dc:creator>Arian Stijf</dc:creator>
				<category><![CDATA[eBS]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Workflow]]></category>
		<category><![CDATA[concurrent]]></category>
		<category><![CDATA[fix ebs]]></category>
		<category><![CDATA[mailer]]></category>
		<category><![CDATA[notification]]></category>
		<category><![CDATA[notification_mailer]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[wf_notification_out]]></category>

		<guid isPermaLink="false">http://www.stijf.com/wordpress/?p=416</guid>
		<description><![CDATA[Oracle eBS troubleshooting &#160; On this webpage, I&#8217;ll make a FAQ on common eBS problems and troubleshooting. Probably the format will change over time. But I&#8217;ll just start. I use basic flow diagrams, to give an overview of the process. Under the diagrams is an explanation of all the steps. &#216; My concurrent manager does [...]]]></description>
			<content:encoded><![CDATA[<h1 style="margin: 24pt 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font color="#365f91"><font face="Cambria">Oracle eBS troubleshooting<o:p></o:p></font></font></span></h1>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font color="#000000"><font face="Calibri"><font size="3">On this webpage, I&rsquo;ll make a FAQ on common eBS problems and troubleshooting. Probably the format will change over time. But I&rsquo;ll just start. I use basic flow diagrams, to give an overview of the process. Under the diagrams is an explanation of all the steps. <o:p></o:p></font></font></font></span></p>
<p class="MsoSubtitle" style="text-indent: -18pt; margin: 0cm 0cm 10pt 36pt; mso-list: l0 level1 lfo1"><font color="#4f81bd"><span lang="EN-US" style="font-style: normal; font-family: wingdings; mso-ansi-language: en-us; mso-fareast-font-family: wingdings; mso-bidi-font-family: wingdings; mso-bidi-font-style: italic"><span style="mso-list: ignore"><font size="3">&Oslash;</font><span style="font: 7pt 'times new roman'"> </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><em><font face="Cambria"><font size="3">My concurrent manager does not start<o:p></o:p></font></font></em></span></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><font size="3"><font face="Calibri"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img alt="" height="370" src="http://www.stijf.com/wordpress/wp-content/uploads/Concurrent.jpg" width="360" /></span><v:shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" o:preferrelative="t" o:spt="75" path="m@4@5l@4@11@9@11@9@5xe" stroked="f"><v:stroke joinstyle="miter"></v:stroke></v:shapetype></font></font></font></p>
<p class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l1 level1 lfo2"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">1)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">Check if the Internal Manager is running. On Unix, you can run: ps &ndash;ef | grep &lsquo;FNDLIBR FND CPMGR&rsquo;. If this returns a process, check the start time for the process to make sure it is the correct process.<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l1 level1 lfo2"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">2)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">If a process is returned, and it started at the time you started the managers, the ICM is running.<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l1 level1 lfo2"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">3)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">The ICM is not running. First check the adcmctl.txt file. It is found in the process_log directory. (Check your autoconfig xml file or the adcmctl.sh script). It will show the logs for the start-up scripts of the ICM.<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l1 level1 lfo2"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">4)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">The ICM is running, but can&rsquo;t start the other managers. Most common cause is<span style="mso-spacerun: yes">&nbsp; </span>the APPS Listener is down. Check for it running with: ps &ndash;ef<span style="mso-spacerun: yes">&nbsp; </span>| grep &lsquo;tnslsnr APPS_&lt;SID&gt;&rsquo;<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l1 level1 lfo2"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">5)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">If no process is returned, start the apps listener with adalnctl.sh. Wait a minute afterwards, for the ICM to retry starting the managers.<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l1 level1 lfo2"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">6)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font face="Calibri"><font size="3">The ICM is running, or was started successfully before it died. Check the logfile from the ICM in $APPLCSF/$APPLLOG. By default the file is named &lt;SID&gt;_&lt;proc&gt;.mgr, where proc is the process_id from adcmctl.txt.<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpLast" style="margin: 0cm 0cm 10pt 36pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoSubtitle" style="text-indent: -18pt; margin: 0cm 0cm 10pt 36pt; mso-list: l0 level1 lfo1"><font color="#4f81bd"><span lang="EN-US" style="font-style: normal; font-family: wingdings; mso-ansi-language: en-us; mso-fareast-font-family: wingdings; mso-bidi-font-family: wingdings; mso-bidi-font-style: italic"><span style="mso-list: ignore"><font size="3">&Oslash;</font><span style="font: 7pt 'times new roman'"> </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><em><font face="Cambria"><font size="3">Notifications are not being sent by the notification mailer </font></font></em></span></font></p>
<p class="MsoSubtitle" style="text-indent: -18pt; margin: 0cm 0cm 10pt 36pt; mso-list: l0 level1 lfo1"><font color="#4f81bd"><span lang="EN-US" style="mso-ansi-language: en-us"><em><font face="Cambria"><font size="3"><o:p></o:p></font></font></em></span></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><font size="3"><font face="Calibri"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img alt="" height="993" src="http://www.stijf.com/wordpress/wp-content/uploads/Notifications.jpg" width="493" /></span><v:shape id="_x0000_i1026" o:ole="" style="width: 334.5pt; height: 672.75pt" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:UsersArianAppDataLocalTempmsohtmlclip1 1clip_image003.emz"></v:imagedata></v:shape></font></font></font></p>
<p class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">1)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">Look for the notification in &lsquo;wf_notifications&rsquo;. Check the status, mail_status, recipient_role and notification_id. <o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">2)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">If Mail_status = &lsquo;SENT&rsquo;, the message has been mailed already. If status&lt;&gt;&rsquo;OPEN&rsquo; (Note the difference between status and mail_status), the notification is not eligible to be mailed anymore. <o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">3)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">The Notification Mailer has already sent this message. Maybe it was sent to the TEST_ADDRESS<span style="mso-spacerun: yes">&nbsp; </span>from the Notification Mailer.<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">4)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">Check the mail_preference for the recipient_role from wf_roles. <o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">5)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">If the preference is &lsquo;QUERY&rsquo;, &lsquo;SUMHTML&rsquo;, &lsquo;SUMMARY&rsquo; or &lsquo;DISABLED&rsquo; then the recipient will not receive notifications by mail. <o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">6)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">Change the preference in the Users preferences. Or test with a different user.<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpLast" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-add-space: auto; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us; mso-fareast-font-family: 'courier new'"><span style="mso-list: ignore">7)<span style="font: 7pt 'times new roman'">&nbsp; </span></span></span><font size="3"><font face="Calibri"><span lang="EN-US" style="mso-ansi-language: en-us">The Notification Mailer reads notifications to send from the queue WF_NOTIFICATION_OUT. Select from the queue-view: </span><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">select notification_id,msg_state,msg_id,role,corrid,enq_time,deq_time <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">from<span style="mso-spacerun: yes">&nbsp; </span>(select msg_id, o.enq_time, o.deq_time, msg_state<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>,(select str_value<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>from<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>table (o.user_data.header.properties)<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>where<span style="mso-spacerun: yes">&nbsp; </span>name = &#39;NOTIFICATION_ID&#39;) notification_id<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>, (select str_value<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>from<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>table (o.user_data.header.properties)<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>where<span style="mso-spacerun: yes">&nbsp; </span>name = &#39;ROLE&#39;) role<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>, (select str_value<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>from<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>table (o.user_data.header.properties)<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>where<span style="mso-spacerun: yes">&nbsp; </span>name = &#39;Q_CORRELATION_ID&#39;) corrid<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>from<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>applsys.aq$wf_notification_out o)<span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">where notification_id=&lt;notification_id&gt;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">and rownum=1;<o:p></o:p></font></span></p>
<p class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-add-space: auto; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3"> <img src='http://www.stijf.com/wordpress/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> </font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">If you received a result on the query, the notification is in the queue.<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpLast" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-add-space: auto; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">9)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">The status of the notification in the queue should be &lsquo;READY&rsquo;. If it is &lsquo;PROCESSED&rsquo;, or &lsquo;ERROR&rsquo;, the notification is already dequeued or errored. Otherwise check the status of the queue with:<o:p></o:p></font></font></span></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">select name,enqueue_enabled,dequeue_enabled<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">from dba_queues <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><font color="#000000"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us">where name=&#39;WF_NOTIFICATION_OUT&#39;;</span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"> <o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">10)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">The status of the message should be &lsquo;READY&rsquo;. The &lsquo;ENQUEUE_ENABLED&rsquo; and &lsquo;DEQUEUE_ENABLED&rsquo; columns should be &lsquo;YES&rsquo;. <o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">11)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">Reprocess the message with the conc. Request. Or stop/start the queue with dbms_aqadm.<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">12)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">Check the Notification Mailer logfile. The notification is ready for the mailer, but it is unable to pick it up. Check if the mailer shut down due to too many errors.<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpLast" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-add-space: auto; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">13)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">The message is not in &lsquo;WF_NOTIFICATION_OUT&rsquo;. It can still be queued on the &lsquo;WF_DEFERRED&rsquo; queue. Check this queue with: <o:p></o:p></font></font></span></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">select v.msg_id,v.msg_state,v.enq_time,v.deq_time,v.corr_id<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">from<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>applsys.aq$wf_deferred v<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>table(v.user_data.parameter_list) t<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">where v.corr_id like &#39;APPS:oracle.apps.wf.notification.%&#39;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">and name =&#39;NOTIFICATION_ID&#39; <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">and value = &lt;Notification_id&gt;;<o:p></o:p></font></span></p>
<p class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">14)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">If the query returned results and the msg_state is &lsquo;READY&rsquo;, the notification is still being processed. Skip to 16<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">15)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">Unfortunately, your notification seems to have gone missing. Consult Oracle Support. Please inform us of the solution in this case, so we can extend the FAQ.<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">16)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">The notification is still in the deferred queue, waiting to be picked up by the &lsquo;Workflow Deferred Notification Agent Listener&rsquo;. Check the status of this listener. And if needed, check its logfile. <o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">17)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">If the Deferred Notification Agent Listener is not running, or erroring<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">18)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">(re)start it.<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">19)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">Check if the Business Event &lsquo;oracle.apps.wf.notification.denormalize&rsquo; is enabled and has a subscription to procedure &lsquo;Wf_Notification_Util.Denormalize_RF&rsquo;.<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">20)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">If either the Business event is disabled, or the subscription non-existent or disabled, go to 21.<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">21)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">Make sure that the Business event is enabled and the subscription is valid and enabled. You will still have to reprocess the notification with the concurrent program to resubmit notifications.<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l2 level1 lfo3"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><span style="mso-list: ignore"><font face="Calibri" size="3">22)</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp; </span></span></span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">Unfortunately, we can&rsquo;t locate the issue yet. If you manage to solve the issue please inform us, so we can update this FAQ.<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpLast" style="margin: 0cm 0cm 10pt 36pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stijf.com/wordpress/2010/04/ebs-troubleshooting/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Writing efficient SQL</title>
		<link>http://www.stijf.com/wordpress/2010/03/writing-efficient-sql/</link>
		<comments>http://www.stijf.com/wordpress/2010/03/writing-efficient-sql/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 15:30:04 +0000</pubDate>
		<dc:creator>Arian Stijf</dc:creator>
				<category><![CDATA[eBS]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[cardinality]]></category>
		<category><![CDATA[DBA]]></category>
		<category><![CDATA[efficient]]></category>
		<category><![CDATA[full table scan]]></category>
		<category><![CDATA[hash]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[join]]></category>
		<category><![CDATA[merge]]></category>
		<category><![CDATA[nested loop]]></category>
		<category><![CDATA[optimizer]]></category>
		<category><![CDATA[rowid]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.stijf.com/wordpress/?p=402</guid>
		<description><![CDATA[The other day I gave a presentation on &#8216;Efficient SQL&#8217;. It was the first of a number of presentations, so I started with explaining some basic concepts. Maybe it will be interesting for other people too. So here is the summary of it. &#160; MAIN RULES OF EFFICIENT SQL &#160; The main rules of efficient [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The other day I gave a presentation on &lsquo;Efficient SQL&rsquo;. It was the first of a number of presentations, so I started with explaining some basic concepts. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Maybe it will be interesting for other people too. So here is the summary of it. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">MAIN RULES OF EFFICIENT SQL<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font face="Calibri"><font size="3"><font color="#000000">The main rules of efficient SQL are:<o:p></o:p></font></font></font></span></p>
<p class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l1 level1 lfo1"><font color="#000000"><span style="font-family: symbol; mso-ansi-language: en-us; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol"><span style="mso-list: ignore"><font size="3">&middot;</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="mso-ansi-language: en-us"><font face="Calibri"><font size="3">Less is better<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpLast" style="text-indent: -18pt; margin: 0cm 0cm 10pt 36pt; mso-list: l1 level1 lfo1"><font color="#000000"><span style="font-family: symbol; mso-ansi-language: en-us; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol"><span style="mso-list: ignore"><font size="3">&middot;</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">More is better<o:p></o:p></font></font></span></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">That seems easy, since everything is better. But let me explain. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><font size="3"><font face="Calibri"><font color="#000000"><b style="mso-bidi-font-weight: normal"><span style="mso-ansi-language: en-us">Less is better</span></b><span style="mso-ansi-language: en-us">: The less I/O generated the better your statement will perform. Even though somebody might be able to think of some exceptions. It is safe to keep this as a rule of thumb.<o:p></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Avoid unnecessary work for your query. You can do that by selecting only the rows that you need. (That sounds obvious, but I&rsquo;ll give an example soon). In complex queries, make sure that you select the smallest possible set in every part of your query. Rather than collecting a huge amount of data and then selecting what you need, select the smallest set possible before you join.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Also select only the columns that you need. One argument is that it might give Oracle a chance to skip the table access, and use an index-only access. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Think about the use of &lsquo;select *&rsquo;. Most often this is a complete waste of resources. In packaged software, it can easily lead to bugs when the table definition changes. In all situations, it will cost extra resources to collect the data, send them to the client and then filter out the data that is not needed. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><b style="mso-bidi-font-weight: normal"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><font size="3"><font face="Calibri"><font color="#000000"><b style="mso-bidi-font-weight: normal"><span style="mso-ansi-language: en-us">More is better</span></b><span style="mso-ansi-language: en-us">: This is of course not about I/O. It is about the information that you give Oracle about your data and your query. Add as many predicates as possible, since it can help the optimizer do a better job. When 2 tables are joined on an ID-column. But you know, from your knowledge of the data, that another column can also be used as a join-condition then use both join conditions. <o:p></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">It will help the optimizer work out the relationship between the tables, and select the optimal plan. If 2 columns have related data, and the predicate on one column means that the other column is restricted too, put a predicate on both columns. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Consider the following: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; create table Xxx_inner <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>2<span style="mso-spacerun: yes">&nbsp; </span>as select * from dba_objects<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>3<span style="mso-spacerun: yes">&nbsp; </span>where object_type=&#39;TABLE&#39;;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Table created.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; create index xxx_inner_n1 on xxx_inner(object_id,object_type);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Index created.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; create index xxx_inner_n2 on xxx_inner(Object_type);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Index created.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; create table xxx_outer <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>2<span style="mso-spacerun: yes">&nbsp; </span>as select * from dba_objects;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Table created.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; insert into<span style="mso-spacerun: yes">&nbsp; </span>xxx_outer <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>2<span style="mso-spacerun: yes">&nbsp; </span>select * from dba_objects;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">71136 rows created.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; create index xxx_outer_n1 on xxx_outer(Object_id,object_type);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Index created.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; create index xxx_outer_n2 on xxx_outer(object_type);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Index created.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; analyze table xxx_inner compute statistics;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Table analyzed.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; analyze table xxx_outer compute statistics;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Table analyzed.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; set autotrace traceonly;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; select o.*<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>2<span style="mso-spacerun: yes">&nbsp; </span>from xxx_outer o<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>3<span style="mso-spacerun: yes">&nbsp; </span>where o.object_id in (select object_id from xxx_inner i)<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>4<span style="mso-spacerun: yes">&nbsp; </span>and o.object_type=&#39;PROCEDURE&#39;;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">no rows selected<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Statistics<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><b style="mso-bidi-font-weight: normal"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>113<span style="mso-spacerun: yes">&nbsp; </span>consistent gets<o:p></o:p></font></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><b style="mso-bidi-font-weight: normal"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>1064<span style="mso-spacerun: yes">&nbsp; </span>bytes sent via SQL*Net to client<o:p></o:p></font></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><i style="mso-bidi-font-style: normal"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Consistent gets is the number of times data was read from the buffer cache into our session memory. It is therefore a good measure of the amount of work a session needed to do while executing a query. <o:p></o:p></font></font></font></span></i></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; select o.*<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>2<span style="mso-spacerun: yes">&nbsp; </span>from xxx_outer o<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>3<span style="mso-spacerun: yes">&nbsp; </span>where o.object_id in (select object_id<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 72pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>from xxx_inner i <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 108pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>where i.object_type=o.object_type)<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>4<span style="mso-spacerun: yes">&nbsp; </span>and o.object_type=&#39;PROCEDURE&#39;;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">no rows selected<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Statistics<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><b style="mso-bidi-font-weight: normal"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>15<span style="mso-spacerun: yes">&nbsp; </span>consistent gets<o:p></o:p></font></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>1064<span style="mso-spacerun: yes">&nbsp; </span>bytes sent via SQL*Net to client<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; select o.object_id<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>2<span style="mso-spacerun: yes">&nbsp; </span>from xxx_outer o<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>3<span style="mso-spacerun: yes">&nbsp; </span>where o.object_id in (select object_id<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 72pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>from xxx_inner i <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 108pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>where i.object_type=o.object_type)<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>4<span style="mso-spacerun: yes">&nbsp; </span>and o.object_type=&#39;PROCEDURE&#39;;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">no rows selected<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Statistics<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>15<span style="mso-spacerun: yes">&nbsp; </span>consistent gets<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><b style="mso-bidi-font-weight: normal"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>254<span style="mso-spacerun: yes">&nbsp; </span>bytes sent via SQL*Net to client<o:p></o:p></font></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Here we see two tables created from &lsquo;DBA_OBJECTS&rsquo;. We join these tables on &lsquo;OBJECT_ID&rsquo;. In this case, we have some information that the Oracle Optimizer does not have. The object_id,object_type combination is the same in both tables. Unaware of this fact, Oracle has to search all object_id&rsquo;s for &lsquo;XXX_INNER&rsquo;. When we tell Oracle that the object_type is the same, it can skip most of the records resulting in less I/O. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">When we finally tell Oracle that we&rsquo;re only interested in the object_id, we also reduce the network traffic by 75%.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">The concepts<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font color="#000000"><font face="Calibri"><font size="3">For every query, Oracle will have to collect some data. And in most cases, it will have to join one or more data-sets. Let&rsquo;s see what options Oracle has for collecting data and joining the data together. In this presentation we only look at the basic options, not the more sophisticated features. So don&rsquo;t expect this list to be complete. We will see how data can be retrieved from the database, and how tables / data-sets can be joined together. We will not yet go into the most efficient way to do it, because the most efficient way to retrieve data depends on many factors. Only when you have a basic understanding of the concepts, we can start thinking about the most efficient way to do things. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<h3 style="margin: 0cm 0cm 0pt"><span style="mso-ansi-language: en-us"><font color="#4f81bd"><font face="Cambria"><font size="3">Collecting data<o:p></o:p></font></font></font></span></h3>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font face="Calibri"><font size="3"><font color="#000000">To gather data from a table, Oracle can use 3 different options, called &lsquo;Access Paths&rsquo;:<o:p></o:p></font></font></font></span></p>
<p class="MsoListParagraphCxSpFirst" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l0 level1 lfo2"><font color="#000000"><span style="font-family: symbol; mso-ansi-language: en-us; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol"><span style="mso-list: ignore"><font size="3">&middot;</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="mso-ansi-language: en-us"><font face="Calibri"><font size="3">Full Table Scan<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -18pt; margin: 0cm 0cm 0pt 36pt; mso-list: l0 level1 lfo2"><font color="#000000"><span style="font-family: symbol; mso-ansi-language: en-us; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol"><span style="mso-list: ignore"><font size="3">&middot;</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="mso-ansi-language: en-us"><font face="Calibri"><font size="3">Index Scan / Table Access by Rowid<o:p></o:p></font></font></span></font></p>
<p class="MsoListParagraphCxSpLast" style="text-indent: -18pt; margin: 0cm 0cm 10pt 36pt; mso-list: l0 level1 lfo2"><font color="#000000"><span style="font-family: symbol; mso-ansi-language: en-us; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol"><span style="mso-list: ignore"><font size="3">&middot;</font><span style="font: 7pt 'times new roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">Index Scan<o:p></o:p></font></font></span></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">The Full Table Scan (FTS) is exactly as the name implies, a full scan of the table. All the records of the table are read into memory, and checked against the predicates in the query (where clause or Join condition). The blocks of the table don&rsquo;t have to be read in any particular order. Oracle will just try to get the blocks of the table as quickly as possible. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">When a sizable part of the table needs to be selected, this will be the most efficient access path. It will be the only one available, if there is no predicate available that matches (part of) an index. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">The &lsquo;Index Scan / Table Access by Rowid&rsquo;, will use an index to decide which rows need to be read into memory. Then based on the rowid in the index, the correct row will be retrieved. The rowid refers directly to the position on disk where the row is located.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">And the last option is the &lsquo;Index Scan&rsquo;. The difference with the previous option is that Oracle does not need to get the table data anymore. The data in the index is sufficient to answer the query. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">So which one of these is the most efficient? <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">As usual, it depends. Many people think a FTS is less efficient than an Index Scan. But consider this: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; create table xxx_access as select * from dba_objects;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Table created.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; create index xxx_access_n1 on xxx_access (object_id);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Index created.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; select object_id,object_name from xxx_access where object_id&gt;0;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">71139 rows selected.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Elapsed: 00:00:08.02<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Execution Plan<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>0<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>SELECT STATEMENT Optimizer=ALL_ROWS (Cost=287 Card=78799 Bytes=6225121)<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>1<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>0<span style="mso-spacerun: yes">&nbsp;&nbsp; </span><b style="mso-bidi-font-weight: normal">TABLE ACCESS (FULL)</b> OF &#39;XXX_ACCESS&#39; (TABLE) (Cost=287 Card=78799 Bytes=6225121)<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Statistics<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>5803<span style="mso-spacerun: yes">&nbsp; </span>consistent gets<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>2727442<span style="mso-spacerun: yes">&nbsp; </span>bytes sent via SQL*Net to client<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>71139<span style="mso-spacerun: yes">&nbsp; </span>rows processed<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; select /*+ INDEX (xxx_access) */ object_id, object_name from xxx_access where object_id&gt;0;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">71139 rows selected.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Elapsed: 00:00:10.05<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Execution Plan<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">0<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </span>SELECT STATEMENT Optimizer=ALL_ROWS (Cost=1290 Card=78799 Bytes=6225121)<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">1<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>0 <span style="mso-spacerun: yes">&nbsp;</span><span style="mso-spacerun: yes">&nbsp;</span><b style="mso-bidi-font-weight: normal">TABLE ACCESS (BY INDEX ROWID)</b> OF &#39;XXX_ACCESS&#39; (TABLE) (Cost=1290 Card=78799 By=6225121)<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">2<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>1<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </span><b style="mso-bidi-font-weight: normal">INDEX (RANGE SCAN)</b> OF &#39;XXX_ACCESS_N1&#39; (INDEX) (Cost=161 Card=78799)<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Statistics<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>10771<span style="mso-spacerun: yes">&nbsp; </span>consistent gets<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>2727442<span style="mso-spacerun: yes">&nbsp; </span>bytes sent via SQL*Net to client<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>71139<span style="mso-spacerun: yes">&nbsp; </span>rows processed<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">The FTS needs 5803 I/O operations. While the Index Scan takes almost double at 10771 I/O&rsquo;s and 2 seconds more. (out of 10 sec&rsquo;s!)<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Imagine what will happen, when you try this with a multi-million row table. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">But for sure an Index Scan will be the most efficient when it can be done? Again, it depends. Consider this: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; create table test1 (l number, txt varchar2(500));<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Table created.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; create index test1_idx on test1(l,txt);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Index created.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; Begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>2<span style="mso-spacerun: yes">&nbsp; </span>For I In (Select<span style="mso-spacerun: yes">&nbsp; </span>Level L, Rpad(&#39;ABC&#39;,500,To_char(Level)) Txt <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>3<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>From Dual Connect By Level &lt;= 50000) Loop<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>4<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>Insert Into Test1 Values (I.L,I.Txt);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>5<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>If Mod(I.L,5)!=0 Then<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>6<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Delete From Test1 Where L=I.L;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>7<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>End If;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>8<span style="mso-spacerun: yes">&nbsp; </span>End Loop;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>9<span style="mso-spacerun: yes">&nbsp; </span>Commit;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;</span>10<span style="mso-spacerun: yes">&nbsp; </span>end;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;</span>11<span style="mso-spacerun: yes">&nbsp; </span>/<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">PL/SQL procedure successfully completed.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; analyze table test1 compute statistics;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Table analyzed.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; set autotrace traceonly;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; select l from test1 t where l&gt;0;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">10000 rows selected.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Execution Plan<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>0<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>SELECT STATEMENT Optimizer=ALL_ROWS (<b style="mso-bidi-font-weight: normal">Cost=773</b> Card=10000 Bytes=40000)<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>1<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>0<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>TABLE ACCESS (FULL) OF &#39;TEST1&#39; (TABLE) (Cost=773 Card=10000 Bytes=40000)<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Statistics<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><b style="mso-bidi-font-weight: normal">1393<span style="mso-spacerun: yes">&nbsp; </span>consistent gets<o:p></o:p></b></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </span>140549<span style="mso-spacerun: yes">&nbsp; </span>bytes sent via SQL*Net to client<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>10000<span style="mso-spacerun: yes">&nbsp; </span>rows processed<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; select /*+ INDEX(t,test1_idx) */ l from test1 t where l&gt;0;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">10000 rows selected.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Execution Plan<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>0<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>SELECT STATEMENT Optimizer=ALL_ROWS (<b style="mso-bidi-font-weight: normal">Cost=3338</b> Card=10000 Bytes=40000)<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>1<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>0<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>INDEX (RANGE SCAN) OF &#39;TEST1_IDX&#39; (INDEX) (Cost=3338 Card=10000 Bytes=40000)<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Statistics<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><b style="mso-bidi-font-weight: normal"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>4003<span style="mso-spacerun: yes">&nbsp; </span>consistent gets<o:p></o:p></font></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </span>140549<span style="mso-spacerun: yes">&nbsp; </span>bytes sent via SQL*Net to client<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>10000<span style="mso-spacerun: yes">&nbsp; </span>rows processed<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<h2 style="margin: 0cm 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">How can the Full Table Scan be more efficient?<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Good question. To answer it, we have to look at the amount of work that Oracle has to do to get the data. We start with the FTS:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">As mentioned, a FTS needs to scan all the blocks in a table. In my system, the table XXX_ACCESS was created with 1152 blocks. So basically Oracle will read 1152 blocks. However Oracle has optimized this process. One of the most noticeable optimizations is the db_file_multiblock_readcount, which tells Oracle to read multiple blocks in one I/O operation. So instead of doing 1152 reads, Oracle reads 4 (on my system) blocks at a time in 288 reads. (Take a look at the explain plan above again, and notice the cost of the Full Table Scan!). <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Now how much work does an Index Scan / Table Access rowid need to do? <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">To answer that question, you need to know the structure of an index. An index in Oracle is a B-Tree structure. It looks like an inverted tree, with the top being the &lsquo;Root-block&rsquo;. The lowest level contains the &lsquo;Leaf blocks&rsquo;, that hold the index keys and the matching rowid&rsquo;s. The index keys in the leaf blocks are sorted. So the lowest value will be in the utter-left block, the highest in the far right block.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">All upper level blocks show the ranges that the lower level blocks contain. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">To find a range of data, Oracle starts at the root block, and follows the pointers to the first leaf block containing an index key within the range. From here Oracle can walk the leaf blocks from left to right (or right to left, if needed). <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">See the following picture: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri"><o:p><img alt="" height="282" src="http://www.stijf.com/wordpress/wp-content/uploads/Index(1).jpg" width="906" /></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">That means that Oracle has to walk the &lsquo;height&rsquo; of the index (Index level). Then read a number of leaf blocks. And for every entry in the leaf-block, it needs to retrieve the data from the table.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">In the worst case scenario, the data is spread throughout the table. And for every index key, Oracle has to retrieve a different table block. In that case, the amount of work is: (index level &ndash; 1) + number of index leaf blocks + (Number of keys * Number of table blocks). <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">It will be obvious that is a lot more I/O than just reading the table once. The formula is not completely correct, because Oracle does not read the same table block twice, when the next rowid from the index is in the same block.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">But the formula should make it clear that with more data being retrieved, the cost of the index access / Table Rowid, is increasing faster than the cost of the Full Table Scan. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">What happened to Index Only Access?<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">The example showed that a Full Table Scan is still more efficient than using only an index. Even though Oracle would only have to walk through the index to retrieve all the data. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">This is caused by a feature of the index structure and the way the data was entered into the table. This caused the index to grow bigger than the actual table:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; select table_name,num_rows,blocks from dba_Tables where table_name=&#39;TEST1&#39;;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">TABLE_NAME<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>NUM_ROWS<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </span>BLOCKS<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;-<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">TEST1<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>10000<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><b style="mso-bidi-font-weight: normal">772</b><o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">SQL&gt; select index_name, distinct_keys, leaf_blocks from dba_indexes where index_name=&#39;TEST1_IDX&#39;;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">INDEX_NAME<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>DISTINCT_KEYS LEAF_BLOCKS<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8211;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">TEST1_IDX<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>10000<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><b style="mso-bidi-font-weight: normal">3334</b><o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font color="#000000"><font size="3"><font face="Calibri">This situation can occur when a lot of inserts and deletes are taking place in the same transaction. The space for the deleted table rows can be reused immediately. But the space for the deleted index keys only comes available after the commit. NOTE: The space in the index will be reusable after the commit!<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us"><font color="#000000"><font size="3"><font face="Calibri">Another situation where this can happen is with an index key based on a sequence. So new data is only inserted at the end of the range. When you delete a lot of values on the lower end of the range (but not all). Richard Foote has some excellent material on his website about Deleted Index Keys: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><a href="http://en.wordpress.com/tag/index-delete-operations/"><font face="Calibri" size="3">http://en.wordpress.com/tag/index-delete-operations/</font></a></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span lang="EN-CA"><font color="#4f81bd" face="Cambria" size="4">Join Mechanisms</font></span></h2>
<h2 style="margin: 10pt 0cm 0pt"><span lang="EN-CA"><o:p><font color="#4f81bd" face="Cambria" size="4">&nbsp;</font></o:p></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">I hope you&rsquo;re not yet in despair. Because so far we have only retrieved data from single tables. In most cases, we need to join tables together to get our data. Now we will look at 3 basic forms of joining data-sets together. Note that it is not necessarily only tables that we join. It can also be a result set from an earlier part of your query. For example we might collect some data from an Index Only Access and then join it to data from a Full Table Scan. </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">Oracle has 3 mechanisms to perform Joins: Nested Loops, Hash Join, Merge Join. Let&rsquo;s take a look at them.</font></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span lang="EN-CA"><font color="#4f81bd" face="Cambria" size="4">Nested Loops</font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">The Nested Loop join loops over a smaller data set, and for every record in that set, it searches a matching record in the second data set. Visually, it looks like this:</font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><o:p><font color="#000000" face="Calibri" size="3"><img alt="" height="347" src="http://www.stijf.com/wordpress/wp-content/uploads/Nested Loops.jpg" width="575" />&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">You can see that the first set is fully scanned. This is the Outer or Driving Set. For every record in this set, we look up a matching record in the second set. Usually this will be done through an index, even though this is not mandatory.</font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">The efficiency of this mechanism depends on the size of Set A, and the number of records we need to<span style="mso-spacerun: yes">&nbsp; </span>retrieve from Set B.</font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">We will see some situations where a Nested Loops join is more or less efficient. </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">The second join mechanism is the</font></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span lang="EN-CA"><font color="#4f81bd" face="Cambria" size="4">Hash Join</font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">For a Hash Join, Oracle builds a hash table from a (preferably) smaller data set (Build set), where the key is a hash value derived from the join columns. Then Oracle reads the second data set (Probe set), derives the hash value on the join columns and probes the hash table for a match. </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">Schematically, it looks like this: </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><img alt="" height="311" src="http://www.stijf.com/wordpress/wp-content/uploads/Hash.jpg" width="660" /></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">For the Hash Join, it is not relevant if the data is retrieved through an index, or from a Table scan. Both data sets need to be read fully. One of the features of hashing is that collisions may occur. A collision means that 2 different values result in the same hash value. Therefore, the full data set is stored in the hash table. When a match is found on the hash values, Oracle double-checks the actual values of the join columns to see if they match. </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">There is a major drawback for this mechanism. When the hash table does not fit into the available memory (hash_area_size). Then Oracle will dump parts of the hash table to disk (Temp tablespace). A bitmap of all possible hash values is kept in memory with a bit indicating if a hash-value is used or not. </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">So while scanning the Probe set, Oracle can check if there is a possible match. If that part of the hash table is not in memory, Oracle will set aside the records from the probe table. When finished with the probe set, the next part of the hash table is loaded into memory, and the records that were set aside are tested again. This is called a &lsquo;Multipass Hash Join&rsquo;, instead of the &lsquo;Onepass Hash Join&rsquo; where the entire hash table is held in memory.</font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">You can imagine that the hash join can be very efficient even without index access. However it can deteriorate quickly when a &lsquo;Multipass Hash Join&rsquo;<span style="mso-spacerun: yes">&nbsp; </span>is needed. </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">That brings us to the </font></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span lang="EN-CA"><font color="#4f81bd" face="Cambria" size="4">Merge Join</font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">A Merge Join is possible when 2 datasets are both ordered on their join columns. The datasets can then be read in an alternating way. You start reading the first dataset, then you read the second dataset until you find a matching value, or exceed the value. If it is a matching value, you can start building your result set. If you pass the join value, you continue reading the first dataset again. </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">Schematically, it looks like this: </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span style="mso-ansi-language: en-us; mso-no-proof: yes"><v:shape id="Object_x0020_5" o:gfxdata="UEsDBBQABgAIAAAAIQC75UiUBQEAAB4CAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbKSRvU7DMBSF<br />
dyTewfKKEqcMCKEmHfgZgaE8wMW+SSwc27JvS/v23KTJgkoXFsu+P+c7Ol5vDoMTe0zZBl/LVVlJ<br />
gV4HY31Xy4/tS3EvRSbwBlzwWMsjZrlprq/W22PELHjb51r2RPFBqax7HCCXIaLnThvSAMTP1KkI<br />
+gs6VLdVdad08ISeCho1ZLN+whZ2jsTzgcsnJwldluLxNDiyagkxOquB2Knae/OLUsyEkjenmdzb<br />
mG/YhlRnCWPnb8C898bRJGtQvEOiVxjYhtLOxs8AySiT4JuDystlVV4WPeM6tK3VaILeDZxIOSsu<br />
ti/jidNGNZ3/J08yC1dNv9v8AAAA//8DAFBLAwQUAAYACAAAACEArTA/8cEAAAAyAQAACwAAAF9y<br />
ZWxzLy5yZWxzhI/NCsIwEITvgu8Q9m7TehCRpr2I4FX0AdZk2wbbJGTj39ubi6AgeJtl2G9m6vYx<br />
jeJGka13CqqiBEFOe2Ndr+B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ozo8ryljixELB9zJDVC<br />
JtzGaD4nNCoY+IHw18V2qp5ysX2Tzu74m2v6nx4WdYiE4DLNPlMTqJsjFP53IzJqkPx3khNUZGv0<br />
vhfqQz8Y9uhD1txz3dyT3KzOU4LGo4MKqTbpeJGEdAECrNw8L+gT7QjT1VoUl8l0Td2VpwBn9D5u<br />
/xDZ2jzcgqzifTpdinXU9oz1scq29R3xvcm8mBZ3MuLtWTS/0hjQ1ge6Y0mGTKDLV+8vGWNCrj5E<br />
bqTHJqyNQKq7UC2dp0lxpizjWuS6Ifk6fBPN+RK0dRUW+nmrV5FNorn3bF48cJzZa5r3Kcp4eKJR<br />
w2qA14tWAySLjhNlW3MRkn2dZbGgWwmXIssjethllysax/xjlbyKhLa5ML+3I8xroAhBhZlBSqG9<br />
kT0GbSWyy4mrbIQfukILEE5cxnYPhIybgdCvIVTvHCB8nBUybgbCfg2h5/MkARg+DkMGzmAYNDAc<br />
9UYjYPjI3pCBMxgOagxpgkpm2LRD6uY/iuvpZzO00i4aKdUYE4nL5E32SY2eqg83H+mQJY1ZxCau<br />
bpKQOnA9Uh7deMGwGISGDYRo/sqDXT1g/HURYlgMQqMaIYanD4RoWreRDItBaNxAaBAMd3v7v64N<br />
MSx6htaYBKu5f40XvW00Wfugep04mUWJmhV+7Rt4b05ME2uadz7cZ0me6vPza06ZPeogybz1XLx5<br />
xEGn19c3RNw+bhWrur6Zfq42L2hqX314T1zMEK/rikQZm4uS2ZXIBHOITzereJX+SfINQdkkFE5O<br />
HbunRs1rDa/6e1OyvLzI4k+K803VlmGhmgImrB/J+HP0L/UjZhoyZimKLpKvinMZCaIGmhdotpeU<br />
zLbifztU9B5h3cMXmpSRXrLHsAe6XI2GsjayMPqyppc3eTRds2ygH6vmn4oX6cfPf5PN1EBba0sk<br />
fGhtqZYclHah9Cc+XJ+v/mnOZn1QycHrk0KjdA5qb6ldlHrCIyWHhx6DCEN649qpG+QJyBOQJ7hz<br />
iCBPTNw9Pfaj+ugDQAh5orMVQp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z3GBv7<br />
Wubg0wgbDO6Fd+0an9f3KaMupnYvbuDlRbtHGl8dENgYeBvGV3KHcgysCS3Vqj5w39cfjgZsUXtp<br />
xc7IC1rxIid9TPseaXutkknD9kpW0WJ7VDv9sOPuju21EQ7Y3ssmHP8XAAAA///slc1O3DAQx1/F<br />
8gvsJptP1HBZWi60qkDq3dhOYurYkW2y4e0742SBSEigXtoDp51Zj+c/Hz85SjS0TikxbJANvZW8<br />
D5JM0t0rI5TpvFYPhgwykFE9aFIndHf5hV3wH9NxNnfjT4eeD+AQzJTUFH7nhh6WOGnE+egAIvEo<br />
pthtc4BrNhkhM7k/fbcCimKPwVLUmVs3kFar8RcoxX9s2xJQy8qqOCQZJU+gvC+TKtmv+nMgHALq<br />
tCpqOOcQkFZ5mad4DqqYElOPzodraQeCRkN9cEx1fThaYyQP1i1ybLrxYbl4vhD7t1qJb0rr6PBe<br />
DvKoHZmYhuI5lyace/avI7UhJygtT3MojI0NbTULYA4jTNKbjhKmO9NQHlxsdnPZb2XC/KYEVnnF<br />
fL/UEhMsg3H20Yi4yl4y8dUIEp5GmLWxRlIsa5CCEi1BHq0YGZjSL5HMOXtap6gNdi7bFmb1PCEf<br />
6cBFIykY8Gxsdg0swbIjh7ChD3K48vXC4bKVTWIs4G2IsJgVnbRMsiIBNhGdHNApi6VbuaKTAC9V<br />
dWYnyZCzReyTnf+JneLD7OTLgv+SnfcfoHy/zw7VlqLPBwgfw3/7AO00v9CW/5biyMzEfPwAdI6N<br />
veJXLLDX/uUfAAAA//8DAFBLAwQUAAYACAAAACEAxt//ONQGAADpGwAAGgAAAGNsaXBib2FyZC90<br />
aGVtZS90aGVtZTEueG1s7FnNb9xEFL8j8T+MfG+z381G3VTZzW4DaUqUbIt6nLVn7WnGHmtmNune<br />
UHtEQkIUxIFK3DggoFIrcSl/TaAIitR/gTcztteTdWhSgqigOWTt59+87/fm6+q1ezFDh0RIypOe<br />
V79c8xBJfB7QJOx5t8ajS6sekgonAWY8IT1vTqR3b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42sEpmoT1ngd3PxDoe/AEt0ce0Bqa1tA0eIIrIVgs2Xucnpc95BT4bikF<br />
pplTmjmmlVNaOaWdU2Bxlt2Y5JQOdCp9yQG3bPrHQ/l9BqzgsvuPvKk6t3PrfwIAAP//AwBQSwME<br />
FAAGAAgAAAAhAJxmRkG7AAAAJAEAACoAAABjbGlwYm9hcmQvZHJhd2luZ3MvX3JlbHMvZHJhd2lu<br />
ZzEueG1sLnJlbHOEj80KwjAQhO+C7xD2btJ6EJEmvYjQq9QHCMk2LTY/JFHs2xvoRUHwsjCz7Dez<br />
TfuyM3liTJN3HGpaAUGnvJ6c4XDrL7sjkJSl03L2DjksmKAV201zxVnmcpTGKSRSKC5xGHMOJ8aS<br />
GtHKRH1AVzaDj1bmIqNhQaq7NMj2VXVg8ZMB4otJOs0hdroG0i+hJP9n+2GYFJ69elh0+UcEy6UX<br />
FqCMBjMHSldnnTUtXYGJhn39Jt4AAAD//wMAUEsBAi0AFAAGAAgAAAAhALvlSJQFAQAAHgIAABMA<br />
AAAAAAAAAAAAAAAAAAAAAFtDb250ZW50X1R5cGVzXS54bWxQSwECLQAUAAYACAAAACEArTA/8cEA<br />
AAAyAQAACwAAAAAAAAAAAAAAAAA2AQAAX3JlbHMvLnJlbHNQSwECLQAUAAYACAAAACEA2cWVB4UT<br />
AAB7egEAHwAAAAAAAAAAAAAAAAAgAgAAY2xpcGJvYXJkL2RyYXdpbmdzL2RyYXdpbmcxLnhtbFBL<br />
AQItABQABgAIAAAAIQDG3/841AYAAOkbAAAaAAAAAAAAAAAAAAAAAOIVAABjbGlwYm9hcmQvdGhl<br />
bWUvdGhlbWUxLnhtbFBLAQItABQABgAIAAAAIQCcZkZBuwAAACQBAAAqAAAAAAAAAAAAAAAAAO4c<br />
AABjbGlwYm9hcmQvZHJhd2luZ3MvX3JlbHMvZHJhd2luZzEueG1sLnJlbHNQSwUGAAAAAAUABQBn<br />
AQAA8R0AAAAA" o:spid="_x0000_i1025" style="width: 405pt; height: 146.25pt; visibility: visible" type="#_x0000_t75"><font size="3"><font color="#000000"><font face="Calibri"><v:imagedata cropbottom="-5377f" cropleft="-1129f" cropright="-1551f" croptop="-4705f" o:title="" src="file:///C:DOCUME~1ARIANS~1LOCALS~1Tempmsohtmlclip1 1clip_image005.png"></v:imagedata><o:lock aspectratio="f" v:ext="edit"><img alt="" height="231" src="http://www.stijf.com/wordpress/wp-content/uploads/Merge.jpg" width="597" /></o:lock></font></font></font></v:shape></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">The main requirement is of course that both data sets are ordered, before the join takes place. If that is the case, this is probably the most efficient join mechanism. It can handle all kinds of join comparisons, including range comparisons. </font></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span lang="EN-CA"><font color="#4f81bd" face="Cambria" size="4">Back to efficient SQL</font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">Now it is time to go back to the main focus of this article. How to write efficient SQL. </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">We have seen how Oracle can access data and join it together. It is the job of the Oracle Optimizer to find out the most efficient way to do that, for a given query. It does this based on statistics on the tables and indexes. It is not in the scope of this article to discuss how to gather statistics. But we will see the use of several of the statistics. These statistics include (but are not limited to) the number of rows in the table, the number of blocks, the average row length, etc. For an index, they include (but are not limited to) the number of leaf blocks, the number of keys per leaf block, the number of datablocks in the table per key, etc. </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">In an ideal world, we would be able to trust the optimizer to do the right thing all the time. </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">However, we live in an imperfect world, and the Oracle Optimizer does not always have perfect information about the data or your query. Either the statistics might not be up to date, or they might not include some dependencies within the data. Also your query might not give the optimizer all the information that you have. (see the first example in this article, where we can give the optimizer extra information by adding a predicate). </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">Consider this query: </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><font color="#000000">Select * From<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><font color="#000000">Tiny<span style="mso-spacerun: yes">&nbsp; </span>T, &#8211;7089 rec<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><font color="#000000">Small S<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>&#8211; 71151 Rec<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><font color="#000000">Where t.Object_id = s.Object_id;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">Which explain plan is more efficient: </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><font color="#000000">0 SELECT STATEMENT<span style="mso-spacerun: yes">&nbsp;&nbsp; </span><o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><font color="#000000">1<span style="mso-spacerun: yes">&nbsp; </span>HASH JOIN<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><font color="#000000">2<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>TABLE ACCESS FULL <span style="mso-spacerun: yes">&nbsp;</span>TINY <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><font color="#000000">3<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>TABLE ACCESS FULL <span style="mso-spacerun: yes">&nbsp;</span>SMALL<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font size="3"><font face="Calibri"><font color="#000000"><span lang="EN-CA">Or:</span><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><o:p></o:p></span></font></font></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><font color="#000000">0 SELECT STATEMENT<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><font color="#000000">1<span style="mso-spacerun: yes">&nbsp; </span>TABLE ACCESS BY INDEX ROWID SMALL<span style="mso-spacerun: yes">&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;</span><o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><font color="#000000">2<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>NESTED LOOPS<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><font color="#000000">3<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>TABLE ACCESS FULL<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>TINY<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><font color="#000000">4<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>INDEX RANGE SCAN<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>SMALL_IDX<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">The first explain plan uses a Hash Join, with Tiny as the Build Table. The second uses a Nested Loops Join, with Tiny as the Inner Table. </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">I hope you have decided that you don&rsquo;t know which one is the most efficient. Because you cannot know based on the information you have. If I selected 2 non-overlapping sets of data, the Nested Loop Join might be more efficient.<span style="mso-spacerun: yes">&nbsp; </span>It would scan Tiny for 7089 records, then do 7089 index lookups on Small (without result), so it would need to read approximately 7089+7089=14178 blocks.</font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">If the 2 sets would have a 1-n relationship, and every occurrence of object_id in Small is also in Tiny, both tables would need to be read fully and the Hash Join would be more efficient. </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3">That means that to write efficient SQL, you&rsquo;ll need to have an understanding of the data. And you must have considered the optimal execution plan for your query. When you write your query, keep in mind the mantra in first part of this article. Less is Better, More is Better. You want to give Oracle as much information as possible, and you want to get as small as possible result sets. </font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA">The last part that we will do in this part, is to look at the</span></font></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA"><font color="#4f81bd" face="Cambria" size="4">Explain plan</font></span></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA">To see what Oracle will do when executing a query, you can make an explain plan. Many tools have built-in options to show explain plans on queries. Alternatively, you can use the Oracle commands:</span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">SQL&gt; Explain plan for<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><span style="mso-spacerun: yes">&nbsp; </span>2<span style="mso-spacerun: yes">&nbsp; </span>Select * From<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><span style="mso-spacerun: yes">&nbsp; </span>3<span style="mso-spacerun: yes">&nbsp; </span>Tiny<span style="mso-spacerun: yes">&nbsp; </span>T, &#8211;7089 rec<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><span style="mso-spacerun: yes">&nbsp; </span>4<span style="mso-spacerun: yes">&nbsp; </span>Small S<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>&#8211; 71151 Rec<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><span style="mso-spacerun: yes">&nbsp; </span>5<span style="mso-spacerun: yes">&nbsp; </span>Where t.Object_id = s.Object_id;<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">Explained.<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">SQL&gt; select * from table( dbms_xplan.display() );<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">PLAN_TABLE_OUTPUT<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">Plan hash value: 803478362<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">| Id<span style="mso-spacerun: yes">&nbsp; </span>| Operation<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>| Name<span style="mso-spacerun: yes">&nbsp; </span>| Rows<span style="mso-spacerun: yes">&nbsp; </span>| Bytes | Cost (%CPU)| Time<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </span>|<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">|<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>0 | SELECT STATEMENT<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>|<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>|<span style="mso-spacerun: yes">&nbsp; </span>7089 |<span style="mso-spacerun: yes">&nbsp; </span>1287K|<span style="mso-spacerun: yes">&nbsp; </span>1264<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>(1)| 00:00:16 |<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">|*<span style="mso-spacerun: yes">&nbsp; </span>1 |<span style="mso-spacerun: yes">&nbsp; </span>HASH JOIN<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>|<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>|<span style="mso-spacerun: yes">&nbsp; </span>7089 |<span style="mso-spacerun: yes">&nbsp; </span>1287K|<span style="mso-spacerun: yes">&nbsp; </span>1264<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>(1)| 00:00:16 |<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">|<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>2 |<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>TABLE ACCESS FULL| TINY<span style="mso-spacerun: yes">&nbsp; </span>|<span style="mso-spacerun: yes">&nbsp; </span>7089 |<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>650K|<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>213<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>(0)| 00:00:03 |<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">|<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>3 |<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>TABLE ACCESS FULL| SMALL | 71151 |<span style="mso-spacerun: yes">&nbsp; </span>6392K|<span style="mso-spacerun: yes">&nbsp; </span>1049<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>(1)| 00:00:13 |<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">PLAN_TABLE_OUTPUT<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">Predicate Information (identified by operation id):<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>1 &#8211; access(&quot;T&quot;.&quot;OBJECT_ID&quot;=&quot;S&quot;.&quot;OBJECT_ID&quot;)<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">15 rows selected.</span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA">I took the previous query, and ran an explain plan on it. First I should tell you how I created tiny and small, so you can verify: </span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">create table tiny as select * from dba_objects where mod(object_id,10)=0;<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">create table small as select * from dba_objects;<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">create index tiny_idx on tiny(object_id);<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">create index small_idx on small(object_id);<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">Analyze Table Tiny Compute Statistics;<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt">analyze table small compute statistics;<o:p></o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA">You can see that both tables were created from dba_objects and tiny is a subset of small. Therefore a Hash Join makes most sense. </span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA">Let&rsquo;s take a closer look at the explain plan now. Keep in mind that all the numbers are estimates from the optimizer. They are based on the statistics available, and the runtime numbers might be completely different. </span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA">The execution starts at the rows furthest right. And top down. In this case that means that we start with a Full Table Scan of Tiny. Then we do a Full Table Scan of Small, and finally we Hash join the 2 sets together. </span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA">The result of the Hash Join is returned, and becomes the result of the query (Select).</span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA">Let&rsquo;s take a closer look at the Full Table Scans. After the name of the table, we see &lsquo;Rows&rsquo;,&rsquo;Bytes&rsquo;,&rsquo;Cost&rsquo; and &lsquo;Time&rsquo;. </span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA">The &lsquo;Time&rsquo; is an estimate of the amount of time it will take to complete this step. It is useful in query tuning<span style="mso-spacerun: yes">&nbsp; </span>to see which step will take the most time.</span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA">The &lsquo;Bytes&rsquo; are an estimate of the amount of data used to complete this step. I find it useful when a hash join is involved. Because when it exceeds my hash_area_size, Oracle will need a &lsquo;Multi-Pass Hash Join&rsquo;. </span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA">The &lsquo;Cost&rsquo; is often used for query tuning, and people will try to &lsquo;tune down&rsquo; the cost. This makes sense, because the cost is an estimate for the amount of I/O Oracle needs to do for this step. However, there is a logical trap in this. </span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA">Oracle has used the cost of different explain plans for the original query to decide the most efficient one. Now when we change the query, the cost can no longer be compared to the original query. After all, it is a different query. It will return a different result. Unless, of course there is some information about the data we are selecting, that we didn&rsquo;t give the optimizer initially. </span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA">To me, it makes more sense to look at the &lsquo;Rows&rsquo;. This is the number of records Oracle expects from that step in the query. If this is very different from the number you are expecting, something is wrong. Either the statistics are outdated, or the Optimizer is missing some information that you have, or you are not selecting the data you are expecting. </span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA"><o:p>&nbsp;</o:p></span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><font color="#000000" face="Calibri" size="3"><span lang="EN-CA">In the query above, we see that Oracle has made the perfect assumptions. Tiny will return 7089 rows, Small will return 71151 rows and there is a 1-1 relationship<span style="mso-spacerun: yes">&nbsp; </span>between them. So the join will return one record for each record in Tiny. No use looking for a more efficient plan here. Unless again, we did not query what we are looking for.</span></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt">&nbsp;</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-CA" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stijf.com/wordpress/2010/03/writing-efficient-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Advanced Queues (AQ)</title>
		<link>http://www.stijf.com/wordpress/2010/03/oracle-advanced-queues-aq/</link>
		<comments>http://www.stijf.com/wordpress/2010/03/oracle-advanced-queues-aq/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 21:28:08 +0000</pubDate>
		<dc:creator>Arian Stijf</dc:creator>
				<category><![CDATA[Internals]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[dbms_aq]]></category>
		<category><![CDATA[dbms_aqadm]]></category>
		<category><![CDATA[dequeue]]></category>
		<category><![CDATA[eBS]]></category>
		<category><![CDATA[enqueue]]></category>
		<category><![CDATA[IOT]]></category>
		<category><![CDATA[payload]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[queue]]></category>
		<category><![CDATA[queue table]]></category>

		<guid isPermaLink="false">http://www.stijf.com/wordpress/?p=392</guid>
		<description><![CDATA[Oracle Advanced Queuing (AQ) &#160; A customer asked me to do a presentation about AQ (Advanced Queuing). This article is a rewrite of that presentation. We&#8217;ll be getting some hands-on experience with AQ, and then some tips on the issues that might occur. As always, your comments to this article are more than welcome. If [...]]]></description>
			<content:encoded><![CDATA[<h2 style="margin: 10pt 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">Oracle Advanced Queuing (AQ)<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">A customer asked me to do a presentation about AQ (Advanced Queuing). This article is a rewrite of that presentation. We&rsquo;ll be getting some hands-on experience with AQ, and then some tips on the issues that might occur. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">As always, your comments to this article are more than welcome. If you enjoy this article, find it useful or maybe not at all, please let me know by leaving a comment on the site.</font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri"><o:p>The article is also available in PDF format from <a href="http://www.stijf.com/wordpress/PDF/Oracle queues.pdf">here.</a></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">Queuing: I don&rsquo;t want to queue. <o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The title might be true in many cases, but there are also situations where a queue is very convenient. For example in the case of batch processing where a batch process handles multiple incoming messages from an online process. Or when 2 processes need inter-process communication, but still need to function independently of each other. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">In eBS we use queues for the workflow system. (Deferred items, notifications for the workflow mailer and the Business Event System). Some more queues are found for concurrent processing and SFM. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">So whether you like it or not, you&rsquo;ll have to queue. The trick is to manage these queues to get optimal performance for your system. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="4"><font color="#4f81bd"><font face="Cambria">(Advanced) Queue design<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Before we can start building queues, there are some things to consider. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">AQ supports both point-to-point queues and publish-subscribe-queues (also called multi-consumer queues). <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Point-to-point queues are emptied by only one specific process. One or more processes can enqueue messages on the queue, but only one process can dequeue them. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">In contrast, a publish-subscribe queue can have many processes reading the messages in the queue. Either the messages are broadcasted, or the receivers have to subscribe to a certain kind of messages. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Of course the publish-subscribe queue has some very interesting properties. But we&rsquo;ll start our item with the point-to-point queue. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">So you&rsquo;ll first have to decide who the senders and receivers of the queue data will be. In this article, we start with using a point-to-point queue. After that we start using multi-consumer queues.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Another thing to consider is the payload of the message. Of course, the messages will need some content to give it a meaning to the receiver. This content is called the payload. And you can either use a custom type (including XML), or a raw type. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">During this article, we&rsquo;ll see some more features of AQ. But when we decide on the type of queue and the payload type, we can build our own queues. All queues are built on queue-tables. These tables hold the data in the queue. On top of these tables, the actual queue and some management views are built. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">To build a queue-table, we use the dbms_aqadm package:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">dbms_aqadm.create_queue_table(queue_table =&gt;&rsquo;&lt;table_name&gt;&rsquo;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>,queue_payload_type =&gt; [&lsquo;RAW&rsquo;|&lt;custom_type&gt;]);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;</span><o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">This creates the queue table including a LOB segment for the payload, some indexes, and an &lsquo;Error queue&rsquo;:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">dbms_aqadm.create_queue_table(queue_table=&gt;&rsquo;xxx_test&rsquo; <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-tab-count: 4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>,queue_payload_type=&gt;&rsquo;RAW&rsquo;);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">End;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Select object_name,object_type from dba_objects where created&gt;sysdate-1/24;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 6pt; mso-ansi-language: en-us"><font color="#000000">OBJECT_NAME<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>OBJECT_TYPE<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 6pt; mso-ansi-language: en-us"><font color="#000000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&#8212;&#8212;&#8212;&#8211;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 6pt; mso-ansi-language: en-us"><font color="#000000">SYS_C0011768<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>INDEX<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 6pt; mso-ansi-language: en-us"><font color="#000000">XXX_TEST<span style="mso-tab-count: 1"> </span><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>TABLE<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 6pt; mso-ansi-language: en-us"><font color="#000000">SYS_LOB0000073754C00029$$<span style="mso-tab-count: 1">&nbsp;&nbsp; </span>LOB<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 6pt; mso-ansi-language: en-us"><font color="#000000">SYS_LOB0000073754C00028$$<span style="mso-tab-count: 1">&nbsp;&nbsp; </span>LOB<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 6pt; mso-ansi-language: en-us"><font color="#000000">AQ$_XXX_TEST_T<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>INDEX<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 6pt; mso-ansi-language: en-us"><font color="#000000">AQ$_XXX_TEST_I<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>INDEX<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 6pt; mso-ansi-language: en-us"><font color="#000000">AQ$_XXX_TEST_E<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>QUEUE<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 6pt; mso-ansi-language: en-us"><font color="#000000">AQ$_XXX_TEST_F<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>VIEW<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'courier new'; font-size: 6pt; mso-ansi-language: en-us"><font color="#000000">AQ$XXX_TEST<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>VIEW<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">This created the base-table for a point-to-point queue. The table is a regular heap-oriented table. And you are free to create extra indexes on it, if you feel the urge. The necessary indexes have been created already. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The queue that is created now is the default error queue. Messages that failed dequeuing will be set on this queue. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Now it&rsquo;s time to create the actual queue. The queue-tables are the infrastructure for storing the messages and related information. The queue can now be created to control the queuing and dequeuing of messages. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri"><span style="mso-spacerun: yes">&nbsp;</span><o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">For both point-to-point as publish-subscriber queues, the command is: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; color: black; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">dbms_aqadm.create_queue (queue_table =&gt;&rsquo;&lt;table_name&gt;&rsquo;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp; </span>queue_name =&gt; &lsquo;&lt;queue_name&gt;&rsquo;);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; color: black; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">So for us we run: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">dbms_aqadm.create_queue (queue_name =&gt; &#39;xxx_test_q&#39;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 108pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span>,queue_table =&gt; &#39;xxx_mc_test&#39;);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">End;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">This creates an object of type QUEUE. This is the object that will control the contents of the underlying tables / IOT&rsquo;s. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Before we can start using our queues, we also have to &lsquo;start&rsquo; them. On starting, we indicate whether the queue is available for queuing, dequeuing or both: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;</span>dbms_aqadm.start_queue(queue_name=&gt;&rsquo;xxx_test_q&rsquo;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 72pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;</span>,enqueue=&gt;TRUE<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 72pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;</span>,dequeue=&gt;TRUE);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">End;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Our queue is now enabled for both queueing and dequeuing. Let&rsquo;s first verify if things are working correctly. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">To enqueue (or dequeue) a message, we use the dbms_aq package. It has an enqueue and dequeue procedure. Both with their own parameters. The parameters include en-/dequeue options, message properties, a message_id and of course the message itself: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Declare<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_payload Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_msgid Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_enq_options Dbms_aq.Enqueue_options_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">v_msg_properties dbms_aq.message_properties_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_payload:=Utl_raw.Cast_to_raw(&#39;Hello world!&#39;);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Dbms_aq.Enqueue(Queue_name=&gt;&#39;xxx_test_q&#39;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,Message_properties=&gt;V_msg_properties<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,Enqueue_options=&gt;V_enq_options<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,Payload=&gt;V_payload<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,Msgid=&gt;V_msgid);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Dbms_output.Put_line(rawtohex(V_msgid));<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">end;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">This enqueues a &lsquo;Hello world!&rsquo; message, and returns the message id. If everything works correctly, you&rsquo;ll see the msgid as a hexadecimal string. (Don&rsquo;t forget to set serveroutput on).<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">We created 2 extra parameters: v_enq_options with the options used to enqueue this message. And v_msg_properties to set additional information about the message. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">V_enq_options is of type &lsquo;dbms_aq.enqueue_options_t&rsquo;. This is a record of:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; text-indent: -36pt; margin: 0cm 0cm 0pt 36pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Visibility<span style="mso-tab-count: 1">&nbsp;&nbsp; </span>BINARY_INTEGER<span style="mso-spacerun: yes">&nbsp; </span>&#8211;Options are: dbms_aq.on_commit and dbms_aq.immediate. This indicates whether the enqueue is part of the current transaction, or done autonomously. <o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; text-indent: -36pt; margin: 0cm 0cm 0pt 36pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Relative_msgid<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>RAW(16)<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&#8211;If the message needs to be enqueued at a specific position, it will be relative to this msgid.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; text-indent: -36pt; margin: 0cm 0cm 0pt 36pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Sequence_deviation BINARY_INTEGER &ndash;-Options are: DBMS_AQ.BEFORE, DBMS_AQ.TOP or NULL (default). If before then the message is before the relative_msgid. If top, the message will be the first to be dequeued.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">V_msg_properties is of type &lsquo;dbms_aq.message_properties_t&rsquo;. This is a record of:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; text-indent: -36pt; margin: 0cm 0cm 0pt 36pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">priority<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>BINARY_INTEGER <span style="mso-spacerun: yes">&nbsp;</span>&#8211; Any integer, to set the priority. Smaller is higher priority. The default is 1.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; text-indent: -36pt; margin: 0cm 0cm 0pt 36pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">delay<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>BINARY_INTEGER <span style="mso-spacerun: yes">&nbsp;</span>&#8211; If the message needs to be delayed before it can be dequeued, set the time in seconds here. The default is dbms_aq.no_delay.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; text-indent: -36pt; margin: 0cm 0cm 0pt 36pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">expiration<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>BINARY_INTEGER <span style="mso-spacerun: yes">&nbsp;</span>&#8211; For messages that need to expire after a certain time, set the expiration time in seconds. (Offset from the delay). The default is dbms_aq.never.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; text-indent: -36pt; margin: 0cm 0cm 0pt 36pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">correlation<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </span>VARCHAR2(128)<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>&#8211; A free text field that can be used to identify groups of messages. <o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; text-indent: -36pt; margin: 0cm 0cm 0pt 36pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">attempts<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>BINARY_INTEGER<span style="mso-spacerun: yes">&nbsp; </span>&#8211; Number of failed attempts to dequeue, before the message will be failed and marked as expired.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; text-indent: -36pt; margin: 0cm 0cm 0pt 36pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">recipient_list<span style="mso-spacerun: yes">&nbsp; </span>DBMS_AQ.AQ$_RECIPIENT_LIST_T &ndash;- Only valid for multi-consumer queues. Sets the designated recipients.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; text-indent: -36pt; margin: 0cm 0cm 0pt 36pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">exception_queue VARCHAR2(51) <span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</span>&#8211; The exception queue to use, when it is not the default.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; text-indent: -36pt; margin: 0cm 0cm 0pt 36pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">enqueue_time<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>DATE<span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp; </span>&#8211; Set automatically during enqueue <o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; text-indent: -36pt; margin: 0cm 0cm 0pt 36pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">state<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>BINARY_INTEGER<span style="mso-spacerun: yes">&nbsp; </span>&#8211; Automatically maintained by AQ, to indicate the status of the message.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Let&rsquo;s see if the dequeue also works. For this the procedure dequeue is used, with similar parameters. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Declare<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_payload Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_msgid Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_deq_options Dbms_aq.dequeue_options_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">v_msg_properties dbms_aq.message_properties_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Dbms_aq.dequeue(Queue_name=&gt;&#39;xxx_test_q&#39;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,Message_properties=&gt;V_msg_properties<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span>,dequeue_options=&gt;V_deq_options<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span>,Payload=&gt;V_payload<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>,Msgid=&gt;V_msgid);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Dbms_output.Put_line(utl_raw.cast_to_varchar2(V_payload));<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">End;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">This time, our message should be displayed. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">For the dequeue, we used v_deq_options of type &lsquo;dbms_aq.dequeue_options_t&rsquo;. This is a record of:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; text-indent: -36pt; margin: 0cm 0cm 0pt 36pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">consumer_name<span style="mso-spacerun: yes">&nbsp; </span>VARCHAR2(30) <span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&#8211; Indicates the consumer for multi-consumer queues.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; text-indent: -36pt; margin: 0cm 0cm 0pt 36pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">dequeue_mode<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>BINARY_INTEGER &ndash;- How to dequeue the messages. Either leave it on the queue, or remove it. Either dbms_aq.browse and dbms_aq.remove (default).<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; text-indent: -36pt; margin: 0cm 0cm 0pt 36pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">navigation<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </span>BINARY_INTEGER &ndash;- Indicate where to start dequeuing. Dbms_aq.next_message (default), to continue from the previous dequeue. Dbms_aq.first_message to start at the top of the queue. Dbms_aq.next_transaction to skip the rest of this message group.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; text-indent: -36pt; margin: 0cm 0cm 0pt 36pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">visibility<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </span>BINARY_INTEGER &ndash;- same as dbms_aq.enqueue_options_t.visibility.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; text-indent: -36pt; margin: 0cm 0cm 0pt 36pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">wait<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>BINARY_INTEGER &ndash;- The time (in seconds) the package should wait if no message is available. Default is dbms_aq.forever.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; text-indent: -36pt; margin: 0cm 0cm 0pt 36pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">msgid<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>RAW(16) <span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span>&#8211; When specified, only the message with this msgid will be dequeued.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; text-indent: -36pt; margin: 0cm 0cm 0pt 36pt; mso-layout-grid-align: none"><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">correlation<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>VARCHAR2(128) <span style="mso-spacerun: yes">&nbsp;</span>&#8211; Only messages with this correlation will be dequeued (may include wildcards).<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Note how message_properties and payload are now out-parameters. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">This is probably the simplest queue possible. We enqueued and dequeued a raw message. We didn&rsquo;t specify the visibility. So your session still needs to commit these actions.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Now let&rsquo;s enqueue our message again, and see how it works behind the curtain.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Declare<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_payload Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_msgid Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_enq_options Dbms_aq.Enqueue_options_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">v_msg_properties dbms_aq.message_properties_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_payload:=Utl_raw.Cast_to_raw(&#39;Hello world!&#39;);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Dbms_aq.Enqueue(Queue_name=&gt;&#39;xxx_test_q&#39;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,Message_properties=&gt;V_msg_properties<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,Enqueue_options=&gt;V_enq_options<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,Payload=&gt;V_payload<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,Msgid=&gt;V_msgid);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Dbms_output.Put_line(&#39;Msg_id: &#39;||rawtohex(V_msgid));<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">end;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Msg_id: 499CE4809F2641E1BFBC8AFBC8DB5AFA<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">The queue table is an ordinary heap-table, so we can query it.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">select q_name, rawtohex(msgid) msg_id, priority, state, enq_time, enq_uid<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">from <span style="mso-spacerun: yes">&nbsp;&nbsp;</span>xxx_test;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 6pt; mso-ansi-language: en-us"><font color="#000000">q_name<span style="mso-tab-count: 1">&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp; </span>msg_id<span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;</span>priority state enq_time<span style="mso-spacerun: yes">&nbsp;&nbsp; </span><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>enq_uid<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 6pt; mso-ansi-language: en-us"><font color="#000000">XXX_TEST_Q<span style="mso-spacerun: yes">&nbsp; </span>499CE4809F2641E1BFBC8AFBC8DB5AFA<span style="mso-tab-count: 1">&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp; </span>1<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </span>0 21-03-10 17:24:01,876000000<span style="mso-tab-count: 1"> </span>SYSTEM<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 6pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">We see our msgid again. A priority flag. A state flag, the time of enqueueing the message, and the user that enqueued the message. The message is also in the table, but since it is a blob, we won&rsquo;t bother selecting from it yet. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">There are more columns in the table, that control the order and by who the messages are dequeued. Most of them are still null, so we will see them when needed. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">A useful alternative to the table is to query the queue-view aq$&lt;table_name&gt;. This will show the translated values of the state. (0 = READY). And especially when using multi-consumer queues, it will use a join to select a more complete picture of the queue.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">When we dequeue the message, it will disappear from the queue. (And be deleted from the queue table). However, this can be controlled by the retention parameter of the queue.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Let&rsquo;s set this parameter, so we can check the data after the dequeue.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">We set the retention time to 240 (seconds): <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">DBMS_AQADM.ALTER_QUEUE(queue_name =&gt;&#39;xxx_test_q&#39;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 72pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,retention_time =&gt; 240);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">end;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Now when we dequeue the message, it will remain in the queue:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Declare<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_payload Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_msgid Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_deq_options Dbms_aq.dequeue_options_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">v_msg_properties dbms_aq.message_properties_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Dbms_aq.dequeue(Queue_name=&gt;&#39;xxx_test_q&#39;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,Message_properties=&gt;V_msg_properties<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span>,dequeue_options=&gt;V_deq_options<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span>,Payload=&gt;V_payload<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,Msgid=&gt;V_msgid);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Dbms_output.Put_line(utl_raw.cast_to_varchar2(V_payload));<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">End;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">select <span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>queue<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>rawtohex(msg_id)msg_id<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>msg_priority<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>msg_state<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>enq_timestamp<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>enq_user_id<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>deq_timestamp<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>deq_user_id<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">from <span style="mso-tab-count: 1">&nbsp; </span>aq$xxx_test<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 6pt; mso-ansi-language: en-us"><font color="#000000">QUEU<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </span>MSG_ID<span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>MSG_PRIO MSG_STATE ENQ_TIMESTAMP<span style="mso-tab-count: 1">&nbsp; </span>ENQ_USER DEQ_TIMESTAMP<span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </span>DEQ_USER_ID<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 6pt; mso-ansi-language: en-us"><font color="#000000">XXX_TEST_Q AEC2CD2E34514363B6739969E8E8D353<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span>1 PROCESSED 19-03-10 18:31:40 SYSTEM<span style="mso-tab-count: 1"> </span>19-03-10 21:26:45 SYSTEM<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Now the message has been set to state &lsquo;PROCESSED&rsquo;, and some dequeue information has been added. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">It&rsquo;s time to start navigating queues when there are multiple messages in the queue. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">Messages are by default dequeued in the order in which they are enqueued. On creation of the queue table, you can set other dequeue orders. But it is also possible to dequeue messages in a different order by navigating the queues, or using filter-criteria. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">To show the dequeueing order we enqueue 10 different messages. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Declare<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_payload Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_msgid Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_enq_options Dbms_aq.Enqueue_options_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">v_msg_properties dbms_aq.message_properties_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_enq_options.visibility := dbms_aq.immediate;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">for i in 1..10 loop<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>V_payload:=Utl_raw.Cast_to_raw(&#39;This is the &#39;||to_char(to_date(i,&#39;J&#39;),&#39;jspth&#39;)||&#39; message&#39;);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>Dbms_aq.Enqueue(Queue_name=&gt;&#39;xxx_test_q&#39;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 72pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>,Message_properties=&gt;V_msg_properties<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</span>,Enqueue_options=&gt;V_enq_options<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</span>,Payload=&gt;V_payload<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</span>,Msgid=&gt;V_msgid);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>Dbms_output.Put_line(rawtohex(V_msgid));<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">end loop;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">end;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">This enqueues the text &lsquo;This is the first message&rsquo; till &lsquo;This is the tenth message&rsquo;. On dequeuing, the messages come out in the same order: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Declare<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_payload Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_msgid Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_deq_options Dbms_aq.dequeue_options_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">v_msg_properties dbms_aq.message_properties_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">for i in 1..10 loop<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>Dbms_aq.dequeue(Queue_name=&gt;&#39;xxx_test_q&#39;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</span>,Message_properties=&gt;V_msg_properties<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;</span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</span>,dequeue_options=&gt;V_deq_options<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>,Payload=&gt;V_payload<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</span>,Msgid=&gt;V_msgid);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>Dbms_output.Put_line(utl_raw.cast_to_varchar2(V_payload));<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">end loop;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">End;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">This is the first message<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">This is the second message<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">&hellip;&hellip;&hellip;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">This is the tenth message<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">When we created the queue table, we choose the default sort order. This is by enqueue_time. We can also build a queue that uses priority dequeuing. First we create a queue:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">dbms_aqadm.create_queue_table(queue_table=&gt;&#39;xxx_test_prio&#39;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>,<b style="mso-bidi-font-weight: normal">sort_list =&gt; &#39;PRIORITY,ENQ_TIME&#39;<o:p></o:p></b></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;</span>,queue_payload_type=&gt;&#39;RAW&#39;);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">dbms_aqadm.create_queue(queue_name=&gt;&#39;xxx_test_prio_q&#39;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>,queue_table=&gt;&#39;xxx_test_prio&#39;);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">dbms_aqadm.start_queue(queue_name=&gt;&#39;xxx_test_prio_q&#39;);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">end;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">We indicated a sort_list now. The options are &lsquo;ENQ_TIME&rsquo; (default), &lsquo;ENQ_TIME,PRIORITY&rsquo;,&lsquo;PRIORITY&rsquo;,&rsquo;PRIORITY,ENQ_TIME&lsquo;. Now we enqueue some messages with reversed priorities:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Declare<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_payload Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_msgid Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_enq_options Dbms_aq.Enqueue_options_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">v_msg_properties dbms_aq.message_properties_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_enq_options.visibility := dbms_aq.immediate;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">for i in 1..10 loop<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>V_payload:=Utl_raw.Cast_to_raw(&#39;This is the &#39;||to_char(to_date(i,&#39;J&#39;),&#39;jspth&#39;)||&#39; message&#39;);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>v_msg_properties.priority:=11-i;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>Dbms_aq.Enqueue(Queue_name=&gt;&#39;xxx_test_prio_q&#39;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 72pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>,Message_properties=&gt;V_msg_properties<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</span>,Enqueue_options=&gt;V_enq_options<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</span><span style="mso-spacerun: yes">&nbsp;</span><span style="mso-tab-count: 1">&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</span>,Payload=&gt;V_payload<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</span>,Msgid=&gt;V_msgid);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>Dbms_output.Put_line(rawtohex(V_msgid));<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">end loop;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">end;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font color="#000000"><font face="Calibri">And we dequeue them again:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; color: #0000f0; font-size: 10pt; mso-ansi-language: en-us"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Declare<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_payload Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_msgid Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_deq_options Dbms_aq.dequeue_options_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">v_msg_properties dbms_aq.message_properties_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">for i in 1..10 loop<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>Dbms_aq.dequeue(Queue_name=&gt;&#39;xxx_test_prio_q&#39;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</span>,Message_properties=&gt;V_msg_properties<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;</span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</span><span style="mso-spacerun: yes">&nbsp;</span>,dequeue_options=&gt;V_deq_options<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;</span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</span>,Payload=&gt;V_payload<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</span>,Msgid=&gt;V_msgid);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>Dbms_output.Put_line(utl_raw.cast_to_varchar2(V_payload));<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">end loop;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">End;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">This is the tenth message<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">This is the ninth message<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">&hellip;&hellip;&hellip;&hellip;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">This is the second message<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">This is the first message<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><span lang="EN-US" style="font-family: 'times new roman', 'serif'; font-size: 12pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><font color="#000000">Now it&rsquo;s time to look at queueing navigation. It is possible to dequeue specific messages from the queue. You can select messages with a specific msg_id, correlation or recipient_list (for mc-queueus).<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><span lang="EN-US" style="font-family: 'times new roman', 'serif'; font-size: 12pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><font color="#000000">We&rsquo;ll first search for a specific correlation and then a message_id. We enqueue ten messages, with different correlations:<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Declare<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_payload Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_msgid Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_enq_options Dbms_aq.Enqueue_options_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">v_msg_properties dbms_aq.message_properties_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_enq_options.visibility := dbms_aq.immediate;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">for i in 1..10 loop<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>V_payload:=Utl_raw.Cast_to_raw(&#39;This is the &#39;||to_char(to_date(i,&#39;J&#39;),&#39;jspth&#39;)||&#39; message&#39;);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>v_msg_properties.correlation:=to_char(&#39;Corr&#39;||i);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>Dbms_aq.Enqueue(Queue_name=&gt;&#39;xxx_test_q&#39;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</span>,Message_properties=&gt;V_msg_properties<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</span>,Enqueue_options=&gt;V_enq_options<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</span>,Payload=&gt;V_payload<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</span>,Msgid=&gt;V_msgid);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>dbms_output.Put_line(&#39;Msg_id: &#39;||rawtohex(V_msgid)||&#39; Correlation: Corr&#39;||i);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">end loop;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">end;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'times new roman', 'serif'; font-size: 12pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Msg_id: E8BE83A2A2A04F1EA74863B4A7C78DAF Correlation: Corr1<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Msg_id: 7159B80BC3194C7AAA6910AB10E753C5 Correlation: Corr2<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Msg_id: 4AF3693CF7EE4994B0F78830371437B9 Correlation: Corr3<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Msg_id: 44DBC0CB09C94BB98DF2D7E48971849C Correlation: Corr4<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Msg_id: 98F3E119041E47F5BF46604E014120BF Correlation: Corr5<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Msg_id: B71B7F097A9E4EDBA696958326BF6300 Correlation: Corr6<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Msg_id: C4F5050B02904EEEAD2842405A0BDE2A Correlation: Corr7<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Msg_id: E4D923A4CB4B4DF2B64B8421A88FFC42 Correlation: Corr8<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Msg_id: BE199053188648AE8FA238A01A5C9CD1 Correlation: Corr9<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Msg_id: 8991E793D2DB41F5B3F9D00D283B6F6D Correlation: Corr10<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'times new roman', 'serif'; font-size: 12pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'times new roman', 'serif'; font-size: 12pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><font color="#000000">Now we can dequeue the 5th (correlation) and 8th (msg_id) message: <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Declare<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_payload Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_msgid Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_deq_options Dbms_aq.dequeue_options_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">v_msg_properties dbms_aq.message_properties_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">v_deq_options.correlation:=&#39;Corr5&#39;;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Dbms_aq.dequeue(Queue_name=&gt;&#39;xxx_test_q&#39;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,Message_properties=&gt;V_msg_properties<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,dequeue_options=&gt;V_deq_options<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,Payload=&gt;V_payload<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,Msgid=&gt;V_msgid);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Dbms_output.Put_line(utl_raw.cast_to_varchar2(V_payload));<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">v_deq_options.correlation:=NULL;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">v_deq_options.msgid:=&#39;E4D923A4CB4B4DF2B64B8421A88FFC42&#39;;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Dbms_aq.dequeue(Queue_name=&gt;&#39;xxx_test_q&#39;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,Message_properties=&gt;V_msg_properties<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,dequeue_options=&gt;V_deq_options<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </span>,Payload=&gt;V_payload<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">,Msgid=&gt;V_msgid);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Dbms_output.Put_line(utl_raw.cast_to_varchar2(V_payload));<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">End;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">This is the fifth message<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">This is the eighth message<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'times new roman', 'serif'; font-size: 12pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'times new roman', 'serif'; font-size: 12pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><font color="#000000">Note how we have to set the correlation back to NULL for the second dequeue. Otherwise we would be trying to dequeue a message with correlation &lsquo;Corr5&rsquo; and the specified msg_id. Since that message does not exist, our procedure will just wait for the message to appear. <o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'times new roman', 'serif'; font-size: 12pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'times new roman', 'serif'; font-size: 12pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><font color="#000000">By default when you dequeue from an empty queue, or try to dequeue a non-available message, the dequeue will wait indefinitely for a message to appear. You can control this behavior with the dequeue options. <o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'times new roman', 'serif'; font-size: 12pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_deq_options.wait := 10; &#8212; to wait 10 seconds</font><a name="74727"></a><font color="#000000">. Any number of 0 or higher is allowed. <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_deq_options.wait := dbms_aq.no_wait; &#8212; not waiting for the message.<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_deq_options.wait := dbms_aq.forever; &#8212; wait indefinitely<span style="mso-spacerun: yes">&nbsp; </span><o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><a name="74729"></a><font color="#000000"><span lang="EN-US" style="font-family: 'times new roman', 'serif'; font-size: 12pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl">Do note that when the time-out is reached an </span><span lang="EN-US" style="font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us">&rsquo;ORA-25228: timeout in dequeue from &lt;queue&gt; while waiting for a message&rsquo;</span><span lang="EN-US" style="font-family: 'times new roman', 'serif'; font-size: 12pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"> raised. So you will need to handle the exception.<o:p></o:p></span></font></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><span lang="EN-US" style="font-family: 'times new roman', 'serif'; font-size: 12pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><font color="#000000">One more feature to consider is the browsing mode. So far we have seen the messages that we dequeued were removed from the queue (or at least got status &lsquo;Processed&rsquo;). By setting the dequeue options, we can first inspect messages before dequeuing them. Consider the following. We have 8 messages left in our queue: <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Declare<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_payload Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_msgid Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_deq_options Dbms_aq.dequeue_options_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">v_deq_options_rm dbms_aq.dequeue_options_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">v_msg_properties dbms_aq.message_properties_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">v_deq_options.wait:=dbms_aq.no_wait;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">v_deq_options.dequeue_mode:=DBMS_AQ.BROWSE;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">for i in 1..10 loop<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>Dbms_aq.dequeue(Queue_name=&gt;&#39;xxx_test_q&#39;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>,Message_properties=&gt;V_msg_properties<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>,dequeue_options=&gt;V_deq_options<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>,Payload=&gt;V_payload<o:p></o:p></font></span></p>
<p class="MsoNormal" style="text-indent: 36pt; margin: 0cm 0cm 0pt 36pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>,Msgid=&gt;V_msgid);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>Dbms_output.Put_line(utl_raw.cast_to_varchar2(V_payload));<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>dbms_output.put_line(v_msg_properties.correlation);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>if v_msg_properties.correlation=&#39;Corr6&#39; then<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>v_deq_options.dequeue_mode:=DBMS_AQ.REMOVE;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>v_deq_options.msgid:=v_msgid;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Dbms_aq.dequeue(Queue_name=&gt;&#39;xxx_test_q&#39;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>,Message_properties=&gt;V_msg_properties<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>,dequeue_options=&gt;V_deq_options<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>,Payload=&gt;V_payload<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>,Msgid=&gt;V_msgid);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Dbms_output.Put_line(utl_raw.cast_to_varchar2(V_payload));<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>v_deq_options.dequeue_mode:=DBMS_AQ.BROWSE;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>v_deq_options.msgid:=NULL;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>end if;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>exception<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>when others then <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>null;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>end;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">end loop;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">End;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'times new roman', 'serif'; font-size: 12pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'times new roman', 'serif'; font-size: 12pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><font color="#000000">This removed only the 6<sup>th</sup> message from the queue, and left the others intact. <o:p></o:p></font></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt"><span lang="EN-US" style="font-family: 'times new roman', 'serif'; font-size: 12pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'times new roman', 'serif'; font-size: 12pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><font color="#000000">There are more options to the queuing / dequeuing like retrying failed attempts (rollback after a dequeue is considered a failed attempt) and queuing with a delay or an expiration time. But I think the information so far will allow you to test these options on a need-by basis. <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'times new roman', 'serif'; font-size: 12pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<h2 style="margin: 10pt 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><font size="4"><font color="#4f81bd"><font face="Cambria">Multi-consumer or publish-subscribe queues<o:p></o:p></font></font></font></span></h2>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'times new roman', 'serif'; font-size: 12pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Both &lsquo;publish-subscribe&rsquo; and &lsquo;multi-consumer&rsquo; are used for these queues. I think &lsquo;multi-consumer&rsquo; is most often used informally. That will also be the one I will use in this article (even though &lsquo;publish-subscribe&rsquo; is more accurate).<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">We build multi-consumer queues with dbms_aqadm again. But on creating the queue-table, we say that it has to be a multi-consumer queue-table: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">dbms_aqadm.create_queue_table (queue_table=&gt;&rsquo;xxx_mc_test&rsquo; <o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-tab-count: 4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>,multiple_consumers=&gt;TRUE<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>,queue_payload_type=&gt;&rsquo;RAW&rsquo;);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">End;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Now we see more objects being created. The most important ones are: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font color="#000000"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us">Xxx_mc_test</span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"> <span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;</span>The queue table itself. <o:p></o:p></font></font></span></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us"><font face="Calibri" size="3">Table </font></span><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us">aq$_xxx_mc_test_s</span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"> with information about the subscribers to the queue<o:p></o:p></font></font></span></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us"><font face="Calibri" size="3">Table </font></span><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us">aq$_xxx_mc_test_r</span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"> with information about the rules for the subscriptions<o:p></o:p></font></font></span></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us"><font face="Calibri" size="3">IOT </font></span><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us">aq$_xxx_mc_test_h</span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"> with historic information about dequeuing<o:p></o:p></font></font></span></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us"><font face="Calibri" size="3">IOT </font></span><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us">aq$_xxx_mc_test_i</span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"> with dequeuing information<o:p></o:p></font></font></span></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">As you can see, a lot more information is stored for multi-consumer queues. In part this information has to do with the subscription and subscriber mechanism. But there is also the need to keep a history of the dequeuing, to know when a message has been dequeued by all subscribers.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">We will be seeing the use of all the objects in a few minutes, when we start queuing and dequeuing messages. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us"><font face="Calibri" size="3">When we try to enqueue messages on this queue now, we receive an </font></span><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us">ORA-24033:</span><span class="apple-converted-space"><span lang="EN-CA" style="font-family: 'arial', 'sans-serif'; color: black"><font size="3">&nbsp;</font></span></span><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us">no recipients for message</span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">. This means we need to set up subscribers first. If we enqueue without a recipient list, the message will be made available for all subscribers. <o:p></o:p></font></font></span></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us"><font face="Calibri" size="3">To add a subscriber, we use the dbms_aqadm package and a new object_type: </font></span><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us">sys.aq$_agent</span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">. <o:p></o:p></font></font></span></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">This type is defined as an object of name , address and protocol. The last 2 are used in inter-system communication only.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">We can just call the following procedure:<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'times new roman', 'serif'; font-size: 12pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;</span><o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">DECLARE<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_agent sys.aq$_agent;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">BEGIN<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>V_agent:= sys.aq$_agent(&#39;Agent1&#39;,NULL,NULL);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>DBMS_AQADM.ADD_SUBSCRIBER(queue_name=&gt;&#39;xxx_mc_test_q&#39;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 108pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>,subscriber=&gt;v_agent);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">END;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 10pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font color="#000000"><span lang="EN-US" style="mso-ansi-language: en-us"><font face="Calibri" size="3">We can see the subscribers from the view </font></span><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us">aq$xxx_mc_test_s</span><span lang="EN-US" style="mso-ansi-language: en-us"><font face="Calibri" size="3"> (or the underlying table: </font></span><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us">aq$_xxx_mc_test_s</span><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri">):<o:p></o:p></font></font></span></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><o:p><font color="#000000" face="Calibri" size="3">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">select * from aq$xxx_mc_test_s;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">QUEUE<span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>NAME<span style="mso-spacerun: yes">&nbsp;&nbsp; </span>ADDRESS<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>PROTOCOL TRANSFORMATION<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8212;-<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </span>&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8211;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">XXX_MC_TEST_Q<span style="mso-tab-count: 1"> </span>AGENT1<span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>0<span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 10pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="mso-ansi-language: en-us"><font size="3"><font face="Calibri"><font color="#000000">Now let&rsquo;s enqueue a message: <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 10pt; mso-ansi-language: en-us; mso-fareast-font-family: 'times new roman'; mso-fareast-language: nl"><o:p><font color="#000000">&nbsp;</font></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Declare<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_payload Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_msgid Raw(200);<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">V_enq_options Dbms_aq.enqueue_options_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">v_msg_properties dbms_aq.message_properties_t;<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">Begin<o:p></o:p></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span lang="EN-US" style="line-height: 115%; font-family: 'courier new'; font-size: 8pt; mso-ansi-language: en-us"><font color="#000000">v_payload := utl_raw.cast_t
