<?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: Merge &#8211; argh!</title>
	<atom:link href="http://jonathanlewis.wordpress.com/2011/06/03/merge-argh/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com/2011/06/03/merge-argh/</link>
	<description>Just another Oracle weblog</description>
	<lastBuildDate>Fri, 24 May 2013 13:27:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Rodrigo</title>
		<link>http://jonathanlewis.wordpress.com/2011/06/03/merge-argh/#comment-52351</link>
		<dc:creator><![CDATA[Rodrigo]]></dc:creator>
		<pubDate>Fri, 28 Dec 2012 12:25:27 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=6394#comment-52351</guid>
		<description><![CDATA[Jonathan/Vikas, the issue in comment 7 was fixed. We found the database server lost connection with the client due to a sort of timeout set by the firewall, but the client didn&#039;t show any ORA error. So we enabled expire_time=10 on sqlnet.ora and the issue disappeared.
BTW, Happy New Year!!]]></description>
		<content:encoded><![CDATA[<p>Jonathan/Vikas, the issue in comment 7 was fixed. We found the database server lost connection with the client due to a sort of timeout set by the firewall, but the client didn&#8217;t show any ORA error. So we enabled expire_time=10 on sqlnet.ora and the issue disappeared.<br />
BTW, Happy New Year!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2011/06/03/merge-argh/#comment-52345</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Fri, 28 Dec 2012 11:21:25 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=6394#comment-52345</guid>
		<description><![CDATA[Vikas,

If you&#039;re asking about the problem reported in the main article, then comment 5 answers your question.
If you&#039;re asking about the problem in comment 7, then I&#039;ll have to leave it to Rodrigo to see Wordpress sends him an email prompt about your question.]]></description>
		<content:encoded><![CDATA[<p>Vikas,</p>
<p>If you&#8217;re asking about the problem reported in the main article, then comment 5 answers your question.<br />
If you&#8217;re asking about the problem in comment 7, then I&#8217;ll have to leave it to Rodrigo to see WordPress sends him an email prompt about your question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vikas G K</title>
		<link>http://jonathanlewis.wordpress.com/2011/06/03/merge-argh/#comment-52339</link>
		<dc:creator><![CDATA[Vikas G K]]></dc:creator>
		<pubDate>Fri, 28 Dec 2012 06:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=6394#comment-52339</guid>
		<description><![CDATA[Hi,

We are facing the same problem in Oracle data integrator. Was this problem fixed ,if so please share the same . . .]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>We are facing the same problem in Oracle data integrator. Was this problem fixed ,if so please share the same . . .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2011/06/03/merge-argh/#comment-48747</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Tue, 07 Aug 2012 17:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=6394#comment-48747</guid>
		<description><![CDATA[Rodrigo,

In the absence of any reported error, I can&#039;t think of any reason why the merge should roll back.

As a first step I would keep tracing the code and check the trace file for the text &quot;ERR&quot; - it&#039;s possible that an error is being raised and then silently discarded; if so it should still be visible in the trace with the originating ORA- error number. 

Without some idea of why this is happening there is little point in speculating whether you can work around it by putting it into a package.]]></description>
		<content:encoded><![CDATA[<p>Rodrigo,</p>
<p>In the absence of any reported error, I can&#8217;t think of any reason why the merge should roll back.</p>
<p>As a first step I would keep tracing the code and check the trace file for the text &#8220;ERR&#8221; &#8211; it&#8217;s possible that an error is being raised and then silently discarded; if so it should still be visible in the trace with the originating ORA- error number. </p>
<p>Without some idea of why this is happening there is little point in speculating whether you can work around it by putting it into a package.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rodrigo</title>
		<link>http://jonathanlewis.wordpress.com/2011/06/03/merge-argh/#comment-48318</link>
		<dc:creator><![CDATA[Rodrigo]]></dc:creator>
		<pubDate>Tue, 24 Jul 2012 14:50:13 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=6394#comment-48318</guid>
		<description><![CDATA[Hi Jonathan, 
          I&#039;m facing a very weird situation with a MERGE command and I&#039;m quite lost. The database version is 10.2.0.4 and the OS is solaris 64 bits sparc. Basically, I have a particular MERGE command that runs for 30-40 min and suddenly starts to rollback the transaction (sometimes it runs successfully and the execution plan is exactly the same when the job fails). This is part of a sql script executed within an informatica job (it drops the indexes before the indexes, runs the MERGE and recreate the indexes), the application doesn&#039;t fire an error and no error is seen in the alert.log. I tried to trace a 10046 event and nothing is seen, the rollback activity is also traced.
The immediate sql statement after the MERGE command is not executed when this MERGE is rolled back. While the session is rolling back , the status is of the session is ACTIVE, so this is not killed externally. I cannot trap any error from the informatica session since that tool &quot;thinks&quot; the session is still running. 
One of the times I found an ORA 12170 in the server&#039;s sqlnet.log, but the next time the job failed this sqlnet error was not observed. 
I opened a SR in Metalink a week ago and so far they have no clue about this problem. This issue is also seen once in a while in a QA environment with a completely different network.  We run several MERGE&#039;s jobs from informatica and they don&#039;t have any problem.
As a workaround, would it help to develop a procedure including the entire process and invoke the procedure from the client?
I know you are not a magician but you are one of the best on troubleshooting weird issues. Hope you can help me out to dig into this issue.
Thanks in advance]]></description>
		<content:encoded><![CDATA[<p>Hi Jonathan,<br />
          I&#8217;m facing a very weird situation with a MERGE command and I&#8217;m quite lost. The database version is 10.2.0.4 and the OS is solaris 64 bits sparc. Basically, I have a particular MERGE command that runs for 30-40 min and suddenly starts to rollback the transaction (sometimes it runs successfully and the execution plan is exactly the same when the job fails). This is part of a sql script executed within an informatica job (it drops the indexes before the indexes, runs the MERGE and recreate the indexes), the application doesn&#8217;t fire an error and no error is seen in the alert.log. I tried to trace a 10046 event and nothing is seen, the rollback activity is also traced.<br />
The immediate sql statement after the MERGE command is not executed when this MERGE is rolled back. While the session is rolling back , the status is of the session is ACTIVE, so this is not killed externally. I cannot trap any error from the informatica session since that tool &#8220;thinks&#8221; the session is still running.<br />
One of the times I found an ORA 12170 in the server&#8217;s sqlnet.log, but the next time the job failed this sqlnet error was not observed.<br />
I opened a SR in Metalink a week ago and so far they have no clue about this problem. This issue is also seen once in a while in a QA environment with a completely different network.  We run several MERGE&#8217;s jobs from informatica and they don&#8217;t have any problem.<br />
As a workaround, would it help to develop a procedure including the entire process and invoke the procedure from the client?<br />
I know you are not a magician but you are one of the best on troubleshooting weird issues. Hope you can help me out to dig into this issue.<br />
Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noons</title>
		<link>http://jonathanlewis.wordpress.com/2011/06/03/merge-argh/#comment-40645</link>
		<dc:creator><![CDATA[Noons]]></dc:creator>
		<pubDate>Mon, 06 Jun 2011 22:54:49 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=6394#comment-40645</guid>
		<description><![CDATA[jgarr: I think it&#039;ll be a while before 11.2.0.3 percolates to the less popular ports, such as Aix. Ah well, that delays our 11g upgade for a while more.  No way I&#039;m going to let go of a stable system and replace it with a beta release...
(no: I don&#039;t care if I&#039;m out of prime support, if this is what passes for prime)]]></description>
		<content:encoded><![CDATA[<p>jgarr: I think it&#8217;ll be a while before 11.2.0.3 percolates to the less popular ports, such as Aix. Ah well, that delays our 11g upgade for a while more.  No way I&#8217;m going to let go of a stable system and replace it with a beta release&#8230;<br />
(no: I don&#8217;t care if I&#8217;m out of prime support, if this is what passes for prime)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joel garry</title>
		<link>http://jonathanlewis.wordpress.com/2011/06/03/merge-argh/#comment-40644</link>
		<dc:creator><![CDATA[joel garry]]></dc:creator>
		<pubDate>Mon, 06 Jun 2011 22:41:28 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=6394#comment-40644</guid>
		<description><![CDATA[That&#039;s perfectly reasonable, it just looks scary with no qualification on 12, no way to find out when 12 will be available, and no easy way to find backports.  Or am I missing some flashy MOS thing?  I haven&#039;t missed MOS 742060.1, no 11.2.0.3 there.  (Excuse the grumpiness, I&#039;m on Itanium).]]></description>
		<content:encoded><![CDATA[<p>That&#8217;s perfectly reasonable, it just looks scary with no qualification on 12, no way to find out when 12 will be available, and no easy way to find backports.  Or am I missing some flashy MOS thing?  I haven&#8217;t missed MOS 742060.1, no 11.2.0.3 there.  (Excuse the grumpiness, I&#8217;m on Itanium).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2011/06/03/merge-argh/#comment-40638</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Sun, 05 Jun 2011 11:51:02 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=6394#comment-40638</guid>
		<description><![CDATA[Lars,

Interesting little oddity - the important thing now is to work out whether this is going to cause a real problem.]]></description>
		<content:encoded><![CDATA[<p>Lars,</p>
<p>Interesting little oddity &#8211; the important thing now is to work out whether this is going to cause a real problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars</title>
		<link>http://jonathanlewis.wordpress.com/2011/06/03/merge-argh/#comment-40633</link>
		<dc:creator><![CDATA[Lars]]></dc:creator>
		<pubDate>Sat, 04 Jun 2011 12:12:32 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=6394#comment-40633</guid>
		<description><![CDATA[Hmm... well, if you don&#039;t like too lazy constraint checking, maybe you prefer the over eagerness of direct path constraint checking...
[sourcecode]
create table my_test (col1 varchar(30) not null, col2 varchar(30) not null);

insert into my_test (col1) select &#039;x&#039; from dual where 1=0;
[/sourcecode]
--&gt; works w/o problem
[sourcecode]
insert /*+ APPEND */ into my_test (col1) select &#039;x&#039; from dual where 1=0;

ERROR at line 1:
ORA-01400: cannot insert NULL into (&quot;MY_TEST&quot;.&quot;COL2&quot;)
[/sourcecode]
No rows are inserted, but still we get an error.

Once a default value for the second column is defined, the error is not thrown anymore...

Funny, isn&#039;t it?]]></description>
		<content:encoded><![CDATA[<p>Hmm&#8230; well, if you don&#8217;t like too lazy constraint checking, maybe you prefer the over eagerness of direct path constraint checking&#8230;</p>
<pre class="brush: plain; title: ; notranslate">
create table my_test (col1 varchar(30) not null, col2 varchar(30) not null);

insert into my_test (col1) select 'x' from dual where 1=0;
</pre>
<p>&#8211;&gt; works w/o problem</p>
<pre class="brush: plain; title: ; notranslate">
insert /*+ APPEND */ into my_test (col1) select 'x' from dual where 1=0;

ERROR at line 1:
ORA-01400: cannot insert NULL into (&quot;MY_TEST&quot;.&quot;COL2&quot;)
</pre>
<p>No rows are inserted, but still we get an error.</p>
<p>Once a default value for the second column is defined, the error is not thrown anymore&#8230;</p>
<p>Funny, isn&#8217;t it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2011/06/03/merge-argh/#comment-40632</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Sat, 04 Jun 2011 11:01:34 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=6394#comment-40632</guid>
		<description><![CDATA[Sokrates,

Thanks for the follow-up.]]></description>
		<content:encoded><![CDATA[<p>Sokrates,</p>
<p>Thanks for the follow-up.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
