<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Intermediate SQL</title>
	<atom:link href="http://intermediatesql.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://intermediatesql.com</link>
	<description>Color Coded SQL, UNIX and Database Essays</description>
	<lastBuildDate>Wed, 22 Feb 2012 17:07:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on How ORACLE Uses Memory on AIX. Part 1: Processes by John</title>
		<link>http://intermediatesql.com/aix/how-oracle-uses-memory-on-aix-part-1-processes/comment-page-1/#comment-738</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 22 Feb 2012 17:07:38 +0000</pubDate>
		<guid isPermaLink="false">http://intermediatesql.com/?p=22#comment-738</guid>
		<description>Hi Maxym,
Nice article. Have a question of you please.... I&#039;ve executed both omem.sh and ora_mem.pl against a given instance and, despite some minor differences between them,  neither matches oracle sga_target setting. 
Is this related to what you discussed in &quot;How AIX Paging Space works&quot; paper? Mean, since we are not locking SGA, then AIX will grant memory to instance upon request rather than a &quot;sga_target&quot; size chunk upon startup. Is that so? Also, as seen below, how come requested (virtual) sometimes shows smaller than RSS? Thanks

---
SQL&gt; show parameter sga

NAME                                 TYPE        VALUE
------------------------------------ -----------
------------------------------
lock_sga                             boolean     FALSE
pre_page_sga                         boolean     FALSE
sga_max_size                         big integer 7008M
sga_target                           big integer 7008M


#######

========================================================================
=====
Memory used by ORACLE instance:
========================================================================
=====

SGA:
In Memory (RSS):     393 Mb
Requested (Virtual): 393 Mb
Segments:            28

Processes:
In Memory (RSS):     693 Mb
Requested (Virtual): 425 Mb
Processes:           27

Total:
In Memory (RSS):     1086 Mb
Requested (Virtual): 818 Mb


########


Displaying memory statistics for ORACLE instance:  Report mode: basic
Database session information has NOT been requested
...
...

---------- ---------- ---------- ---------- ---------- -----
--------------------
   PID       Total      InMem      Paging     Virtual  Pages
COMMAND
---------- ---------- ---------- ---------- ---------- -----
--------------------
TOTAL:        1377.68    1317.92      59.76    1358.47 s M   Processes:
48</description>
		<content:encoded><![CDATA[<p>Hi Maxym,<br />
Nice article. Have a question of you please&#8230;. I&#8217;ve executed both omem.sh and ora_mem.pl against a given instance and, despite some minor differences between them,  neither matches oracle sga_target setting. <br />
Is this related to what you discussed in &#8220;How <span class="caps">AIX</span> Paging Space works&#8221; paper? Mean, since we are not locking <span class="caps">SGA, </span>then <span class="caps">AIX </span>will grant memory to instance upon request rather than a &#8220;sga_target&#8221; size chunk upon startup. Is that so? Also, as seen below, how come requested (virtual) sometimes shows smaller than <span class="caps">RSS</span>? Thanks</p>
<p>&#8212;<br />
<span class="caps">SQL</span>&gt; show parameter sga</p>
<p><span class="caps">NAME                                 TYPE        VALUE</span><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8211;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
lock_sga                             boolean     <span class="caps">FALSE</span><br />
pre_page_sga                         boolean     <span class="caps">FALSE</span><br />
sga_max_size                         big integer 7008M<br />
sga_target                           big integer 7008M</p>
<p>#######</p>
<p>======================================================================<br />
=====<br />
Memory used by ORACLE instance:<br />
========================================================================<br />
===</p>
<p><span class="caps">SGA</span>:<br />
In Memory (RSS):     393 Mb<br />
Requested (Virtual): 393 Mb<br />
Segments:            28</p>
<p>Processes:<br />
In Memory (RSS):     693 Mb<br />
Requested (Virtual): 425 Mb<br />
Processes:           27</p>
<p>Total:<br />
In Memory (RSS):     1086 Mb<br />
Requested (Virtual): 818 Mb</p>
<p>########</p>
<p>Displaying memory statistics for <span class="caps">ORACLE </span>instance:  Report mode: basic<br />
Database session information has <span class="caps">NOT </span>been requested<br />
&#8230;<br />
&#8230;</p>
<p>&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8211;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
   <span class="caps">PID      </span> Total      InMem      Paging     Virtual  Pages<br />
<span class="caps">COMMAND</span><br />
&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8211;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
<span class="caps">TOTAL</span>:        1377.68    1317.92      59.76    1358.47 s M   Processes:<br />
48</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What is the difference between SQL Profile and SPM Baseline ? by Maxym Kharchenko</title>
		<link>http://intermediatesql.com/oracle/what-is-the-difference-between-sql-profile-and-spm-baseline/comment-page-1/#comment-731</link>
		<dc:creator>Maxym Kharchenko</dc:creator>
		<pubDate>Wed, 25 Jan 2012 21:50:28 +0000</pubDate>
		<guid isPermaLink="false">http://intermediatesql.com/?p=523#comment-731</guid>
		<description>Thanks, Kerry.

That makes perfect sense now :-)</description>
		<content:encoded><![CDATA[<p>Thanks, Kerry.</p>
<p>That makes perfect sense now <img src='http://intermediatesql.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What is the difference between SQL Profile and SPM Baseline ? by Kerry Osborne</title>
		<link>http://intermediatesql.com/oracle/what-is-the-difference-between-sql-profile-and-spm-baseline/comment-page-1/#comment-730</link>
		<dc:creator>Kerry Osborne</dc:creator>
		<pubDate>Wed, 25 Jan 2012 21:38:29 +0000</pubDate>
		<guid isPermaLink="false">http://intermediatesql.com/?p=523#comment-730</guid>
		<description>Hi Maxym,

  Just stumbled across this post again and noticed you had asked me a question. Sorry I didn&#039;t notice before now.

I have seen Baselines be disregarded, even without such extreme conditions as a specified index having been removed. The reason for this is that Baselines attempt to apply enough hints to limit the choices the optimizer has to a single plan, but there are situations where the set of hints is not sufficient to actually force the desired plan. What I mean is that the hints will eliminate virtually all possibility but there still may be a few that are valid and so it&#039;s possible to get a different plan. In fact, I have even seen situations where the act of creating a Baseline causes the plan to change. This is clearly not intended behavior but it can happen. I think I blogged about that once. At any rate, in these cases where the optimizer arrives at a different plan than was expected, the optimizer uses a plan generated completely without the hints (or possible picks another accepted Baseline and applies it&#039;s hints). This behavior is very different from SQL Profiles which blindly apply the hints. I should also note that SQL Profiles can also be created manually with the same set of hints that would be used in a Baseline and there is a MOS note regarding how to do this. I have blogged about that as well here: 

http://kerryosborne.oracle-guy.com/2010/07/sqlt-coe_xfr_sql_profilesql/</description>
		<content:encoded><![CDATA[<p>Hi Maxym,</p>
<p>  Just stumbled across this post again and noticed you had asked me a question. Sorry I didn&#8217;t notice before now.</p>
<p>I have seen Baselines be disregarded, even without such extreme conditions as a specified index having been removed. The reason for this is that Baselines attempt to apply enough hints to limit the choices the optimizer has to a single plan, but there are situations where the set of hints is not sufficient to actually force the desired plan. What I mean is that the hints will eliminate virtually all possibility but there still may be a few that are valid and so it&#8217;s possible to get a different plan. In fact, I have even seen situations where the act of creating a Baseline causes the plan to change. This is clearly not intended behavior but it can happen. I think I blogged about that once. At any rate, in these cases where the optimizer arrives at a different plan than was expected, the optimizer uses a plan generated completely without the hints (or possible picks another accepted Baseline and applies it&#8217;s hints). This behavior is very different from <span class="caps">SQL</span> Profiles which blindly apply the hints. I should also note that <span class="caps">SQL</span> Profiles can also be created manually with the same set of hints that would be used in a Baseline and there is a <span class="caps">MOS </span>note regarding how to do this. I have blogged about that as well here: </p>
<p><a href="http://kerryosborne.oracle-guy.com/2010/07/sqlt-coe_xfr_sql_profilesql/" rel="nofollow">http://kerryosborne.oracle-guy.com/2010/07/sqlt-coe_xfr_sql_profilesql/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What are SQL Profiles and why do we need them ? by Maxym Kharchenko</title>
		<link>http://intermediatesql.com/oracle/what-are-sql-profiles-and-why-do-we-need-them/comment-page-1/#comment-723</link>
		<dc:creator>Maxym Kharchenko</dc:creator>
		<pubDate>Thu, 05 Jan 2012 02:20:26 +0000</pubDate>
		<guid isPermaLink="false">http://intermediatesql.com/?p=496#comment-723</guid>
		<description>John, thanks for your kind words</description>
		<content:encoded><![CDATA[<p>John, thanks for your kind words</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What are SQL Profiles and why do we need them ? by John</title>
		<link>http://intermediatesql.com/oracle/what-are-sql-profiles-and-why-do-we-need-them/comment-page-1/#comment-722</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 04 Jan 2012 09:29:01 +0000</pubDate>
		<guid isPermaLink="false">http://intermediatesql.com/?p=496#comment-722</guid>
		<description>Good article clearly written - also good point re long term support</description>
		<content:encoded><![CDATA[<p>Good article clearly written &#8211; also good point re long term support</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What are SQL Profiles and why do we need them ? by Michael Fontana</title>
		<link>http://intermediatesql.com/oracle/what-are-sql-profiles-and-why-do-we-need-them/comment-page-1/#comment-718</link>
		<dc:creator>Michael Fontana</dc:creator>
		<pubDate>Thu, 22 Dec 2011 18:37:40 +0000</pubDate>
		<guid isPermaLink="false">http://intermediatesql.com/?p=496#comment-718</guid>
		<description>Good article, by the way.</description>
		<content:encoded><![CDATA[<p>Good article, by the way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What are SQL Profiles and why do we need them ? by Michael Fontana</title>
		<link>http://intermediatesql.com/oracle/what-are-sql-profiles-and-why-do-we-need-them/comment-page-1/#comment-717</link>
		<dc:creator>Michael Fontana</dc:creator>
		<pubDate>Thu, 22 Dec 2011 18:28:33 +0000</pubDate>
		<guid isPermaLink="false">http://intermediatesql.com/?p=496#comment-717</guid>
		<description>While you allude to the potential maintenance downside to profiles, you forget to mention how they could become a permanent crutch.  Rather than fix the application or design, you&#039;ll now be doing a standardized task of maintaining would could turn into hundreds of specialized instructions which will have to be supported release to release, platform to platform.  Also, their behavior COULD change due to environmental or software changes by the vendors.</description>
		<content:encoded><![CDATA[<p>While you allude to the potential maintenance downside to profiles, you forget to mention how they could become a permanent crutch.  Rather than fix the application or design, you&#8217;ll now be doing a standardized task of maintaining would could turn into hundreds of specialized instructions which will have to be supported release to release, platform to platform.  Also, their behavior <span class="caps">COULD </span>change due to environmental or software changes by the vendors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ora_cpu.pl tool for Linux by Maxym Kharchenko</title>
		<link>http://intermediatesql.com/linux/ora_cpu-pl-tool-for-linux/comment-page-1/#comment-498</link>
		<dc:creator>Maxym Kharchenko</dc:creator>
		<pubDate>Tue, 27 Sep 2011 16:19:41 +0000</pubDate>
		<guid isPermaLink="false">http://intermediatesql.com/?p=608#comment-498</guid>
		<description>Thanks, JC</description>
		<content:encoded><![CDATA[<p>Thanks, JC</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ora_cpu.pl tool for Linux by Jean-Christophe DAUCHY</title>
		<link>http://intermediatesql.com/linux/ora_cpu-pl-tool-for-linux/comment-page-1/#comment-497</link>
		<dc:creator>Jean-Christophe DAUCHY</dc:creator>
		<pubDate>Tue, 27 Sep 2011 14:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://intermediatesql.com/?p=608#comment-497</guid>
		<description>Thanks awesome, it was already really nice for AIX.. since there is not much tool for AIX (except nmon of course).</description>
		<content:encoded><![CDATA[<p>Thanks awesome, it was already really nice for <span class="caps">AIX.. </span>since there is not much tool for <span class="caps">AIX </span>(except nmon of course).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on About by Vishith Kumar</title>
		<link>http://intermediatesql.com/about/comment-page-1/#comment-487</link>
		<dc:creator>Vishith Kumar</dc:creator>
		<pubDate>Fri, 23 Sep 2011 13:26:16 +0000</pubDate>
		<guid isPermaLink="false">http:/?page_id=2#comment-487</guid>
		<description>Max, Your Style of presentation and explantion of oracle concepts is awesome man.Keep posting more in the blog

Regards,
Vishith</description>
		<content:encoded><![CDATA[<p>Max, Your Style of presentation and explantion of oracle concepts is awesome man.Keep posting more in the blog</p>
<p>Regards,<br />
Vishith</p>
]]></content:encoded>
	</item>
</channel>
</rss>

