<?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: Deadlock on Oracle 11g but Not on 10g</title>
	<atom:link href="http://hoopercharles.wordpress.com/2010/01/07/deadlock-on-oracle-11g-but-not-on-10g/feed/" rel="self" type="application/rss+xml" />
	<link>http://hoopercharles.wordpress.com/2010/01/07/deadlock-on-oracle-11g-but-not-on-10g/</link>
	<description>Miscellaneous Random Oracle Topics: Stop, Think, ... Understand</description>
	<lastBuildDate>Thu, 23 May 2013 04:02:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: So&#8230; so you think you are ready to migrate to Oracle 11 ? &#171; Paolocastle&#039;s Blog</title>
		<link>http://hoopercharles.wordpress.com/2010/01/07/deadlock-on-oracle-11g-but-not-on-10g/#comment-4306</link>
		<dc:creator><![CDATA[So&#8230; so you think you are ready to migrate to Oracle 11 ? &#171; Paolocastle&#039;s Blog]]></dc:creator>
		<pubDate>Wed, 18 Jan 2012 10:18:39 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=730#comment-4306</guid>
		<description><![CDATA[[...] http://hoopercharles.wordpress.com/2010/01/07/deadlock-on-oracle-11g-but-not-on-10g/ [...]]]></description>
		<content:encoded><![CDATA[<p>[...] <a href="http://hoopercharles.wordpress.com/2010/01/07/deadlock-on-oracle-11g-but-not-on-10g/" rel="nofollow">http://hoopercharles.wordpress.com/2010/01/07/deadlock-on-oracle-11g-but-not-on-10g/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2010/01/07/deadlock-on-oracle-11g-but-not-on-10g/#comment-3325</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Fri, 03 Jun 2011 18:59:36 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=730#comment-3325</guid>
		<description><![CDATA[Good point.  I thought that as of Oracle Database 9i it is also possible that the full table locking problem could be avoided even if the leading column in an index is not the column specified with the foreign key constraint in the child table - that Oracle Database could perform an index skip scan of the index to avoid a full table (TM enqueue) lock.  I just reproduced the test case in this article, adding the following index definition:
&lt;pre&gt;
CREATE INDEX IND_T2_C1_C2 ON T2 (C1, C2);
&lt;/pre&gt;

The above index definition did NOT help avoid the TM enqueue and the resulting deadlock on Oracle Database 11.2.0.2, so what you stated still appears to be correct for the latest version of Oracle Database.]]></description>
		<content:encoded><![CDATA[<p>Good point.  I thought that as of Oracle Database 9i it is also possible that the full table locking problem could be avoided even if the leading column in an index is not the column specified with the foreign key constraint in the child table &#8211; that Oracle Database could perform an index skip scan of the index to avoid a full table (TM enqueue) lock.  I just reproduced the test case in this article, adding the following index definition:</p>
<pre>
CREATE INDEX IND_T2_C1_C2 ON T2 (C1, C2);
</pre>
<p>The above index definition did NOT help avoid the TM enqueue and the resulting deadlock on Oracle Database 11.2.0.2, so what you stated still appears to be correct for the latest version of Oracle Database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paresh</title>
		<link>http://hoopercharles.wordpress.com/2010/01/07/deadlock-on-oracle-11g-but-not-on-10g/#comment-3318</link>
		<dc:creator><![CDATA[Paresh]]></dc:creator>
		<pubDate>Fri, 03 Jun 2011 03:25:18 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=730#comment-3318</guid>
		<description><![CDATA[Hi Charles,

I came to this old thread from your latest blog post &quot;Insert Error on Oracle 11g but Not on 10g&quot;. In addition to what Jonathan wrote above  &quot;it’s not commonly realised that the “foreign key index” doesn’t have to be an exact match for the foreign key; it merely has to start with the foreign key columns (which can be in any order) to avoid the locking issue&quot;, he also mentions in his book Practical Oracle 8i to compress this index to save space (which will reduce number of Index Blocks so as to reduce IO and improve Buffer Cache efficiency).]]></description>
		<content:encoded><![CDATA[<p>Hi Charles,</p>
<p>I came to this old thread from your latest blog post &#8220;Insert Error on Oracle 11g but Not on 10g&#8221;. In addition to what Jonathan wrote above  &#8220;it’s not commonly realised that the “foreign key index” doesn’t have to be an exact match for the foreign key; it merely has to start with the foreign key columns (which can be in any order) to avoid the locking issue&#8221;, he also mentions in his book Practical Oracle 8i to compress this index to save space (which will reduce number of Index Blocks so as to reduce IO and improve Buffer Cache efficiency).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2010/01/07/deadlock-on-oracle-11g-but-not-on-10g/#comment-2841</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Mon, 14 Feb 2011 15:35:23 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=730#comment-2841</guid>
		<description><![CDATA[Thank you for linking to the Metalink (MOS) note 5909305.  It might be interesting to see what happens when disabling the fix for bug 5909305.  I cannot remember for certain if I tried that - I recall doing some experimentation with _FIX_CONTROL, and I did not have any success rolling back a bug fix, but I cannot remember if it was this particular bug number.  More information on _FIX_CONTROL (read the warning before experimenting):
http://www.pythian.com/news/1002/undocumented-parameter-_fix_control-or-how-to-break-your-database/
http://coskan.wordpress.com/2011/01/17/11-2-0-2-performance-stories/]]></description>
		<content:encoded><![CDATA[<p>Thank you for linking to the Metalink (MOS) note 5909305.  It might be interesting to see what happens when disabling the fix for bug 5909305.  I cannot remember for certain if I tried that &#8211; I recall doing some experimentation with _FIX_CONTROL, and I did not have any success rolling back a bug fix, but I cannot remember if it was this particular bug number.  More information on _FIX_CONTROL (read the warning before experimenting):<br />
<a href="http://www.pythian.com/news/1002/undocumented-parameter-_fix_control-or-how-to-break-your-database/" rel="nofollow">http://www.pythian.com/news/1002/undocumented-parameter-_fix_control-or-how-to-break-your-database/</a><br />
<a href="http://coskan.wordpress.com/2011/01/17/11-2-0-2-performance-stories/" rel="nofollow">http://coskan.wordpress.com/2011/01/17/11-2-0-2-performance-stories/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: al0</title>
		<link>http://hoopercharles.wordpress.com/2010/01/07/deadlock-on-oracle-11g-but-not-on-10g/#comment-2839</link>
		<dc:creator><![CDATA[al0]]></dc:creator>
		<pubDate>Mon, 14 Feb 2011 15:12:43 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=730#comment-2839</guid>
		<description><![CDATA[It rather seems to be 5909305 (https://support.oracle.com/CSP/main/article?cmd=show&amp;type=NOT&amp;id=5909305.8).
I dare say &quot;the remedy is worse than the disease&quot;. See as well http://jonathanlewis.wordpress.com/2010/02/15/lock-horror.]]></description>
		<content:encoded><![CDATA[<p>It rather seems to be 5909305 (<a href="https://support.oracle.com/CSP/main/article?cmd=show&#038;type=NOT&#038;id=5909305.8" rel="nofollow">https://support.oracle.com/CSP/main/article?cmd=show&#038;type=NOT&#038;id=5909305.8</a>).<br />
I dare say &#8220;the remedy is worse than the disease&#8221;. See as well <a href="http://jonathanlewis.wordpress.com/2010/02/15/lock-horror" rel="nofollow">http://jonathanlewis.wordpress.com/2010/02/15/lock-horror</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2010/01/07/deadlock-on-oracle-11g-but-not-on-10g/#comment-2837</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Mon, 14 Feb 2011 14:18:30 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=730#comment-2837</guid>
		<description><![CDATA[I wonder if this is related:
http://tkyte.blogspot.com/2010/04/something-i-recently-unlearned.html

And from a comment in the above article, possibly the fix for &quot;Bug 5970280  MERGE has wrong TM lock modes for foreign key constraints&quot;
https://supporthtml.oracle.com/ep/faces/secure/km/DocumentDisplay.jspx?id=5970280.8]]></description>
		<content:encoded><![CDATA[<p>I wonder if this is related:<br />
<a href="http://tkyte.blogspot.com/2010/04/something-i-recently-unlearned.html" rel="nofollow">http://tkyte.blogspot.com/2010/04/something-i-recently-unlearned.html</a></p>
<p>And from a comment in the above article, possibly the fix for &#8220;Bug 5970280  MERGE has wrong TM lock modes for foreign key constraints&#8221;<br />
<a href="https://supporthtml.oracle.com/ep/faces/secure/km/DocumentDisplay.jspx?id=5970280.8" rel="nofollow">https://supporthtml.oracle.com/ep/faces/secure/km/DocumentDisplay.jspx?id=5970280.8</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: al0</title>
		<link>http://hoopercharles.wordpress.com/2010/01/07/deadlock-on-oracle-11g-but-not-on-10g/#comment-2835</link>
		<dc:creator><![CDATA[al0]]></dc:creator>
		<pubDate>Mon, 14 Feb 2011 10:21:57 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=730#comment-2835</guid>
		<description><![CDATA[Any guesses why Oracle introduced this change?]]></description>
		<content:encoded><![CDATA[<p>Any guesses why Oracle introduced this change?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oracle11g: New Locking Modes When Policing FK Constraints (A Wolf at the Door) &#171; Richard Foote&#8217;s Oracle Blog</title>
		<link>http://hoopercharles.wordpress.com/2010/01/07/deadlock-on-oracle-11g-but-not-on-10g/#comment-2100</link>
		<dc:creator><![CDATA[Oracle11g: New Locking Modes When Policing FK Constraints (A Wolf at the Door) &#171; Richard Foote&#8217;s Oracle Blog]]></dc:creator>
		<pubDate>Wed, 10 Nov 2010 09:30:26 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=730#comment-2100</guid>
		<description><![CDATA[[...] locking issues such as this, increasing the likelihood of hitting deadlock scenarios (as discussed here previously by Charles Hooper) and can therefore potentially reduce the overall concurrency [...]]]></description>
		<content:encoded><![CDATA[<p>[...] locking issues such as this, increasing the likelihood of hitting deadlock scenarios (as discussed here previously by Charles Hooper) and can therefore potentially reduce the overall concurrency [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Upgrade Pain01 &#171; Thinking Out Loud</title>
		<link>http://hoopercharles.wordpress.com/2010/01/07/deadlock-on-oracle-11g-but-not-on-10g/#comment-2096</link>
		<dc:creator><![CDATA[Upgrade Pain01 &#171; Thinking Out Loud]]></dc:creator>
		<pubDate>Sun, 07 Nov 2010 13:59:03 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=730#comment-2096</guid>
		<description><![CDATA[[...] google: deadlock 11g and found Deadlock on Oracle 11g but Not on 10g [...]]]></description>
		<content:encoded><![CDATA[<p>[...] google: deadlock 11g and found Deadlock on Oracle 11g but Not on 10g [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2010/01/07/deadlock-on-oracle-11g-but-not-on-10g/#comment-1855</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Sun, 19 Sep 2010 13:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=730#comment-1855</guid>
		<description><![CDATA[Kayvan,

The problem that you described is not related to a deadlock which appears in Oracle Database 11g which does not appear in Oracle Database 10g, as described in this blog article.

This blog is not a question and answer forum, however it is a place where I try to help people understand how to find good answers.  I am not familiar with &quot;developer 10g&quot; and Oracle Database 11g now includes four different releases (11.1.0.6, 11.1.0.7, 11.2.0.1, 11.2.0.2), each with potentially different behavior.  When asking questions it is a very good idea to be very specific, otherwise you may receive an answer which is useless, thus wasting the time of the person answering the question and your own time.

Ask yourself what might prevent you from making changes to any table.  My first thought is that you might have established a read-only connection between &quot;developer 10g&quot; and Oracle Database 11g (one of 11.1.0.6, 11.1.0.7, 11.2.0.1, 11.2.0.2).  In such a case, you might try a Google search (http://www.google.com) of the Oracle documentation (assuming that &quot;developer 10g&quot; is an Oracle product).  The search keywords might look like this:
[code]
oracle developer 10g &quot;read only&quot; connection site:download.oracle.com
[/code]

My second thought is that there is a limitation applied to the database user account that you are using in &quot;developer 10g&quot;.  Maybe that account has SELECT permission on the tables, but lacks the UPDATE permission on the tables.  To see how to do that, you would use search keywords like this:
[code]
oracle grant update permission site:download.oracle.com
[/code]
I would also try to verify that the same problem is present when using that same user account with another program, such as SQL*Plus.

Before attempting to ask a question:
* Identify the best place to ask a question - it does little good to ask a question on a site that does not answer specific user supplied questions.  If there are multiple forums at the site, make certain that you pick the most appropriate forum for your question.
* Clarify what is &quot;developer 10g&quot;, for example, who makes the product and the exact product name.
* Determine the exact Oracle Database release, for example 11.2.0.2.
* Document exactly what you tried when attempting to resolve the problem.

When asking the question:
* Be polite, and do not mention the word &quot;urgent&quot;.
* Provide the table definition of one of the tables and any triggers on the table.
* Provide the EXACT error message that you received from the  &quot;developer 10g&quot; product
* Specify the exact Oracle Database release
* Describe the steps that you performed to investigate the problem.

If the question is an Oracle Database type question, pick a question/answer forum that is appropriate for your question.  Some of the better sites include:
http://asktom.oracle.com
http://groups.google.com/group/comp.databases.oracle.server/
http://forums.oracle.com/forums/forum.jspa?forumID=61]]></description>
		<content:encoded><![CDATA[<p>Kayvan,</p>
<p>The problem that you described is not related to a deadlock which appears in Oracle Database 11g which does not appear in Oracle Database 10g, as described in this blog article.</p>
<p>This blog is not a question and answer forum, however it is a place where I try to help people understand how to find good answers.  I am not familiar with &#8220;developer 10g&#8221; and Oracle Database 11g now includes four different releases (11.1.0.6, 11.1.0.7, 11.2.0.1, 11.2.0.2), each with potentially different behavior.  When asking questions it is a very good idea to be very specific, otherwise you may receive an answer which is useless, thus wasting the time of the person answering the question and your own time.</p>
<p>Ask yourself what might prevent you from making changes to any table.  My first thought is that you might have established a read-only connection between &#8220;developer 10g&#8221; and Oracle Database 11g (one of 11.1.0.6, 11.1.0.7, 11.2.0.1, 11.2.0.2).  In such a case, you might try a Google search (<a href="http://www.google.com" rel="nofollow">http://www.google.com</a>) of the Oracle documentation (assuming that &#8220;developer 10g&#8221; is an Oracle product).  The search keywords might look like this:</p>
<pre class="brush: plain; title: ; notranslate">
oracle developer 10g &quot;read only&quot; connection site:download.oracle.com
</pre>
<p>My second thought is that there is a limitation applied to the database user account that you are using in &#8220;developer 10g&#8221;.  Maybe that account has SELECT permission on the tables, but lacks the UPDATE permission on the tables.  To see how to do that, you would use search keywords like this:</p>
<pre class="brush: plain; title: ; notranslate">
oracle grant update permission site:download.oracle.com
</pre>
<p>I would also try to verify that the same problem is present when using that same user account with another program, such as SQL*Plus.</p>
<p>Before attempting to ask a question:<br />
* Identify the best place to ask a question &#8211; it does little good to ask a question on a site that does not answer specific user supplied questions.  If there are multiple forums at the site, make certain that you pick the most appropriate forum for your question.<br />
* Clarify what is &#8220;developer 10g&#8221;, for example, who makes the product and the exact product name.<br />
* Determine the exact Oracle Database release, for example 11.2.0.2.<br />
* Document exactly what you tried when attempting to resolve the problem.</p>
<p>When asking the question:<br />
* Be polite, and do not mention the word &#8220;urgent&#8221;.<br />
* Provide the table definition of one of the tables and any triggers on the table.<br />
* Provide the EXACT error message that you received from the  &#8220;developer 10g&#8221; product<br />
* Specify the exact Oracle Database release<br />
* Describe the steps that you performed to investigate the problem.</p>
<p>If the question is an Oracle Database type question, pick a question/answer forum that is appropriate for your question.  Some of the better sites include:<br />
<a href="http://asktom.oracle.com" rel="nofollow">http://asktom.oracle.com</a><br />
<a href="http://groups.google.com/group/comp.databases.oracle.server/" rel="nofollow">http://groups.google.com/group/comp.databases.oracle.server/</a><br />
<a href="http://forums.oracle.com/forums/forum.jspa?forumID=61" rel="nofollow">http://forums.oracle.com/forums/forum.jspa?forumID=61</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
