<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Tuning latch contention: Cache buffers chain latches</title>
	<atom:link href="http://orainternals.wordpress.com/2008/07/30/tuning-latch-contention-cache-buffers-chain-latches/feed/" rel="self" type="application/rss+xml" />
	<link>http://orainternals.wordpress.com/2008/07/30/tuning-latch-contention-cache-buffers-chain-latches/</link>
	<description>Discussions about Oracle performance tuning, RAC, Oracle internal &#38; E-business suite.</description>
	<lastBuildDate>Sun, 19 May 2013 12:13:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Bad Stats and the Strage &#34;Cache Buffers Chain Latches&#34; Wait</title>
		<link>http://orainternals.wordpress.com/2008/07/30/tuning-latch-contention-cache-buffers-chain-latches/#comment-958</link>
		<dc:creator><![CDATA[Bad Stats and the Strage &#34;Cache Buffers Chain Latches&#34; Wait]]></dc:creator>
		<pubDate>Thu, 05 Jan 2012 20:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=56#comment-958</guid>
		<description><![CDATA[[...] know what this mysterious &#8220;latch&#8221; thing was, so of course I google&#8217;d it and found an article from &#8220;orainternals&#8221;.&#160; Inside is a lot of Oracle DBA stuff that I probably don&#8217;t have access to but toward [...]]]></description>
		<content:encoded><![CDATA[<p>[...] know what this mysterious &ldquo;latch&rdquo; thing was, so of course I google&rsquo;d it and found an article from &ldquo;orainternals&rdquo;.&nbsp; Inside is a lot of Oracle DBA stuff that I probably don&rsquo;t have access to but toward [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cardinality feedback to resolve a Cache buffers chains latch contention issue - OraInternals</title>
		<link>http://orainternals.wordpress.com/2008/07/30/tuning-latch-contention-cache-buffers-chain-latches/#comment-951</link>
		<dc:creator><![CDATA[Cardinality feedback to resolve a Cache buffers chains latch contention issue - OraInternals]]></dc:creator>
		<pubDate>Sun, 01 Jan 2012 00:32:08 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=56#comment-951</guid>
		<description><![CDATA[[...] I blogged about resolving cache buffers chains latch contention in my earlier  entry , in which, root cause was excessive index access due to Nested Loops join. Recently, we resolved [...]]]></description>
		<content:encoded><![CDATA[<p>[...] I blogged about resolving cache buffers chains latch contention in my earlier  entry , in which, root cause was excessive index access due to Nested Loops join. Recently, we resolved [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: troullyTror</title>
		<link>http://orainternals.wordpress.com/2008/07/30/tuning-latch-contention-cache-buffers-chain-latches/#comment-695</link>
		<dc:creator><![CDATA[troullyTror]]></dc:creator>
		<pubDate>Fri, 08 Apr 2011 08:09:55 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=56#comment-695</guid>
		<description><![CDATA[Wow thank god almighty for orainternals.wordpress.com. That training and kindness in taking care of the whole thing was tremendous. I don&#039;t know what I would&#039;ve done if I had not come across such a point like this. I can at this moment look ahead to my future. Thank you so much for the professional and result oriented guide. I will not be reluctant to recommend the website to any person who will need recommendations on this area.]]></description>
		<content:encoded><![CDATA[<p>Wow thank god almighty for orainternals.wordpress.com. That training and kindness in taking care of the whole thing was tremendous. I don&#8217;t know what I would&#8217;ve done if I had not come across such a point like this. I can at this moment look ahead to my future. Thank you so much for the professional and result oriented guide. I will not be reluctant to recommend the website to any person who will need recommendations on this area.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CBC Latch Contention &#8211; My Experience &#171; Anand&#039;s Blog</title>
		<link>http://orainternals.wordpress.com/2008/07/30/tuning-latch-contention-cache-buffers-chain-latches/#comment-557</link>
		<dc:creator><![CDATA[CBC Latch Contention &#8211; My Experience &#171; Anand&#039;s Blog]]></dc:creator>
		<pubDate>Wed, 15 Sep 2010 17:22:56 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=56#comment-557</guid>
		<description><![CDATA[[...] http://orainternals.wordpress.com/2008/07/30/tuning-latch-contention-cache-buffers-chain-latches/ [...]]]></description>
		<content:encoded><![CDATA[<p>[...] <a href="http://orainternals.wordpress.com/2008/07/30/tuning-latch-contention-cache-buffers-chain-latches/" rel="nofollow">http://orainternals.wordpress.com/2008/07/30/tuning-latch-contention-cache-buffers-chain-latches/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Osama Karim</title>
		<link>http://orainternals.wordpress.com/2008/07/30/tuning-latch-contention-cache-buffers-chain-latches/#comment-422</link>
		<dc:creator><![CDATA[Osama Karim]]></dc:creator>
		<pubDate>Sat, 24 Oct 2009 21:01:45 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=56#comment-422</guid>
		<description><![CDATA[Riyaz,

Thanks for the lovely blog. We are facing similar problem where CPU usage is going upto 80% +. We will try to implement your Suggestion.

Thanks]]></description>
		<content:encoded><![CDATA[<p>Riyaz,</p>
<p>Thanks for the lovely blog. We are facing similar problem where CPU usage is going upto 80% +. We will try to implement your Suggestion.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: orainternals</title>
		<link>http://orainternals.wordpress.com/2008/07/30/tuning-latch-contention-cache-buffers-chain-latches/#comment-413</link>
		<dc:creator><![CDATA[orainternals]]></dc:creator>
		<pubDate>Tue, 06 Oct 2009 15:10:28 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=56#comment-413</guid>
		<description><![CDATA[Hello Muthu
   Thanks for visiting. I am glad this blog is helpful.
Cheers
Riyaj]]></description>
		<content:encoded><![CDATA[<p>Hello Muthu<br />
   Thanks for visiting. I am glad this blog is helpful.<br />
Cheers<br />
Riyaj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Muthu</title>
		<link>http://orainternals.wordpress.com/2008/07/30/tuning-latch-contention-cache-buffers-chain-latches/#comment-412</link>
		<dc:creator><![CDATA[Muthu]]></dc:creator>
		<pubDate>Mon, 05 Oct 2009 21:46:46 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=56#comment-412</guid>
		<description><![CDATA[Riyaj,

Very nice article. We&#039;re experiencing latch contention in our EBS environment off and on. I&#039;m sure, this article will help troubleshooting the issues.

Also, have you blogged with the focus on tuning the SQLs ? We&#039;ve a situation in whchi, the SQLs that were written over 3 yrs ago, during the implementation phase, has undergone some changes ; and with the growth of the database from 1 TB to around 4 TB, performance troubleshooting has become a big challenge now.

Thanks and regds.
Muthu]]></description>
		<content:encoded><![CDATA[<p>Riyaj,</p>
<p>Very nice article. We&#8217;re experiencing latch contention in our EBS environment off and on. I&#8217;m sure, this article will help troubleshooting the issues.</p>
<p>Also, have you blogged with the focus on tuning the SQLs ? We&#8217;ve a situation in whchi, the SQLs that were written over 3 yrs ago, during the implementation phase, has undergone some changes ; and with the growth of the database from 1 TB to around 4 TB, performance troubleshooting has become a big challenge now.</p>
<p>Thanks and regds.<br />
Muthu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: orainternals</title>
		<link>http://orainternals.wordpress.com/2008/07/30/tuning-latch-contention-cache-buffers-chain-latches/#comment-183</link>
		<dc:creator><![CDATA[orainternals]]></dc:creator>
		<pubDate>Fri, 16 Jan 2009 16:50:17 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=56#comment-183</guid>
		<description><![CDATA[Hi Charles

   I removed the union all branch joining with object_id and tested out.. It works fine with data_object_id outer join itself.

with bh_lc as
(select /*+ ORDERED */
 lc.addr, lc.child#, lc.gets, lc.misses, lc.immediate_gets, lc.immediate_misses, lc.spin_gets, lc.sleeps,
 bh.hladdr, bh.tch tch, bh.file#, bh.dbablk, bh.class, bh.state, bh.obj
  from
   x$kslld  ld,
   v$session_wait sw,
   v$latch_children lc,
   x$bh bh
  where lc.addr =sw.p1raw
  and sw.p2= ld.indx
  and ld.kslldnam=&#039;cache buffers chains&#039;
  and lower(sw.event) like &#039;%latch%&#039;
     --     and state=&#039;WAITING&#039;
  and bh.hladdr=lc.addr
)
select   bh_lc.hladdr, bh_lc.tch, o.owner, o.object_name, o.object_type, bh_lc.child#, bh_lc.gets, bh_lc.misses, bh_lc.immediate_gets, 
bh_lc.immediate_misses, spin_gets, sleeps
from
  bh_lc, dba_objects o
 where bh_lc.obj = o.data_object_id(+) 
order by 1,2 desc
/


Cheers
Riyaj]]></description>
		<content:encoded><![CDATA[<p>Hi Charles</p>
<p>   I removed the union all branch joining with object_id and tested out.. It works fine with data_object_id outer join itself.</p>
<p>with bh_lc as<br />
(select /*+ ORDERED */<br />
 lc.addr, lc.child#, lc.gets, lc.misses, lc.immediate_gets, lc.immediate_misses, lc.spin_gets, lc.sleeps,<br />
 bh.hladdr, bh.tch tch, bh.file#, bh.dbablk, bh.class, bh.state, bh.obj<br />
  from<br />
   x$kslld  ld,<br />
   v$session_wait sw,<br />
   v$latch_children lc,<br />
   x$bh bh<br />
  where lc.addr =sw.p1raw<br />
  and sw.p2= ld.indx<br />
  and ld.kslldnam=&#8217;cache buffers chains&#8217;<br />
  and lower(sw.event) like &#8216;%latch%&#8217;<br />
     &#8212;     and state=&#8217;WAITING&#8217;<br />
  and bh.hladdr=lc.addr<br />
)<br />
select   bh_lc.hladdr, bh_lc.tch, o.owner, o.object_name, o.object_type, bh_lc.child#, bh_lc.gets, bh_lc.misses, bh_lc.immediate_gets,<br />
bh_lc.immediate_misses, spin_gets, sleeps<br />
from<br />
  bh_lc, dba_objects o<br />
 where bh_lc.obj = o.data_object_id(+)<br />
order by 1,2 desc<br />
/</p>
<p>Cheers<br />
Riyaj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: orainternals</title>
		<link>http://orainternals.wordpress.com/2008/07/30/tuning-latch-contention-cache-buffers-chain-latches/#comment-182</link>
		<dc:creator><![CDATA[orainternals]]></dc:creator>
		<pubDate>Fri, 16 Jan 2009 14:23:41 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=56#comment-182</guid>
		<description><![CDATA[Hi Charles
  Thanks for reading my blog. 
  You had a question about union branch in latch_cbc_to_buf.sql. Problem was that x$bh.obj column has object_id in few cases and data_object_id in few other cases. Original SQL had only data_object_id, but in few specific instances, SQL didn&#039;t print some objects since object_id was populated in x$bh.obj column (which may have been a bug when I think about it now). That&#039;s why one branch joins with object_id and another with data_object_id. Of course, it is an outer join and so can&#039;t exactly use OR clause. 
  Side effect of above change is that bh_lc is materialized in the execution plan. 
  About touch_count question: In some cases, it is the # of clones that causes issues, not necessarily, touches to the buffer. As you may know, cloning buffers involves quite a bit of latching  activity too. If we sort by touch count, cloned buffers are not visible and can be misleading.  
  So, I guess, what I am saying that is probably better to get more rows and throw away junk rows manually then throwing away from SQL :-)


  Yes, I would very much appreciate, if you can enhance the script.

Cheers
Riyaj]]></description>
		<content:encoded><![CDATA[<p>Hi Charles<br />
  Thanks for reading my blog.<br />
  You had a question about union branch in latch_cbc_to_buf.sql. Problem was that x$bh.obj column has object_id in few cases and data_object_id in few other cases. Original SQL had only data_object_id, but in few specific instances, SQL didn&#8217;t print some objects since object_id was populated in x$bh.obj column (which may have been a bug when I think about it now). That&#8217;s why one branch joins with object_id and another with data_object_id. Of course, it is an outer join and so can&#8217;t exactly use OR clause.<br />
  Side effect of above change is that bh_lc is materialized in the execution plan.<br />
  About touch_count question: In some cases, it is the # of clones that causes issues, not necessarily, touches to the buffer. As you may know, cloning buffers involves quite a bit of latching  activity too. If we sort by touch count, cloned buffers are not visible and can be misleading.<br />
  So, I guess, what I am saying that is probably better to get more rows and throw away junk rows manually then throwing away from SQL <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>  Yes, I would very much appreciate, if you can enhance the script.</p>
<p>Cheers<br />
Riyaj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Schultz</title>
		<link>http://orainternals.wordpress.com/2008/07/30/tuning-latch-contention-cache-buffers-chain-latches/#comment-176</link>
		<dc:creator><![CDATA[Charles Schultz]]></dc:creator>
		<pubDate>Wed, 14 Jan 2009 20:44:23 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=56#comment-176</guid>
		<description><![CDATA[I did find one minor issue with the query; the latch_children stats are a little misleading in the report. While it may be useful to see all the objects controlled by a specific latch, I would think that during a performance problem, one would want to know what the hot objects are; those objects that are being heavily requested (ie, high touch counts). Would it be pertinent to alter the query a little to make it a top-n type query?

I am thinking it would also be nice to cross-reference with the sessions that are experiencing the wait. I&#039;ll try to play around with it some more. =)]]></description>
		<content:encoded><![CDATA[<p>I did find one minor issue with the query; the latch_children stats are a little misleading in the report. While it may be useful to see all the objects controlled by a specific latch, I would think that during a performance problem, one would want to know what the hot objects are; those objects that are being heavily requested (ie, high touch counts). Would it be pertinent to alter the query a little to make it a top-n type query?</p>
<p>I am thinking it would also be nice to cross-reference with the sessions that are experiencing the wait. I&#8217;ll try to play around with it some more. =)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
