<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" 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/" version="2.0"><channel><atom:link href="http://feed.feedsky.com/BrotherxiaosHome" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/BrotherxiaosHome" type="application/rss+xml"></fs:self_link><lastBuildDate>Sun, 27 Sep 2009 07:48:16 GMT</lastBuildDate><title>Brotherxiao's Home</title><description>Brotherxiao\'s Home</description><link>http://www.imdba.net/blog</link><language>en</language><pubDate>Sun, 27 Sep 2009 08:12:04 GMT</pubDate><item><title>11gr2 IGNORE_ROW_ON_DUPKEY_INDEX hint bug</title><link>http://www.imdba.net/blog/?p=158</link><content:encoded>&lt;h5&gt;Oracle 11gR2 New feature中引入了IGNORE_ROW_ON_DUPKEY_INDEX hint以解决insert &amp;#8230;select 碰到的唯一性冲突问题，测试了一把，没有成功。看来新功能还有带检验。&lt;/h5&gt;
&lt;pre&gt;Copyright (c) 1982, 2009, Oracle.  All rights reserved.&lt;/pre&gt;
&lt;pre&gt;Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning and Real Application Testing options&lt;/pre&gt;
&lt;pre&gt;SQL&amp;gt; show user
USER is &quot;SYS&quot;&lt;/pre&gt;
&lt;pre&gt;SQL&amp;gt; create table t1 as select * from dba_objects;&lt;/pre&gt;
&lt;pre&gt;Table created.&lt;/pre&gt;
&lt;pre&gt;SQL&amp;gt; select count(*) from t1;&lt;/pre&gt;
&lt;pre&gt;COUNT(*)
----------
65690&lt;/pre&gt;
&lt;pre&gt;SQL&amp;gt; insert into t1 select * from t1 where rownum&amp;lt;10000;&lt;/pre&gt;
&lt;pre&gt;9999 rows created.&lt;/pre&gt;
&lt;pre&gt;SQL&amp;gt; commit;&lt;/pre&gt;
&lt;pre&gt;Commit complete.&lt;/pre&gt;
&lt;pre&gt;SQL&amp;gt; select count(*) from t1;&lt;/pre&gt;
&lt;pre&gt;COUNT(*)
----------
75689&lt;/pre&gt;
&lt;pre&gt;SQL&amp;gt; create table t2 as select * from t1 where 1=0;&lt;/pre&gt;
&lt;pre&gt;Table created.&lt;/pre&gt;
&lt;pre&gt;SQL&amp;gt; alter table t2 add primary key(object_id);&lt;/pre&gt;
&lt;pre&gt;Table altered.&lt;/pre&gt;
&lt;pre&gt;SQL&amp;gt; insert into t2 select * from t1;
insert into t2 select * from t1
*
ERROR at line 1:
ORA-00001: unique constraint (SYS.SYS_C007007) violated&lt;/pre&gt;
&lt;pre&gt;SQL&amp;gt; insert /*+ IGNORE_ROW_ON_DUPKEY_INDEX */ into t2 select * from t1;
insert /*+ IGNORE_ROW_ON_DUPKEY_INDEX */ into t2 select * from t1
*
ERROR at line 1:
ORA-00001: unique constraint (SYS.SYS_C007007) violated&lt;/pre&gt;
&lt;pre&gt;SQL&amp;gt; insert /*+ IGNORE_ROW_ON_DUPKEY_INDEX(t2,SYS_C007007) */ into t2
select * from t1;
insert /*+ IGNORE_ROW_ON_DUPKEY_INDEX(t2,SYS_C007007) */ into t2 select * from t1
*
ERROR at line 1:
ORA-00600: internal error code, arguments: [qerltcInsertSelectRop_bad_state],
[], [], [], [], [], [], [], [], [], [], []&lt;/pre&gt;
&lt;pre&gt;SQL&amp;gt; insert into t2 select * from dba_objects;&lt;/pre&gt;
&lt;pre&gt;65692 rows created.&lt;/pre&gt;
&lt;pre&gt;SQL&amp;gt; commit;&lt;/pre&gt;
&lt;pre&gt;Commit complete.&lt;/pre&gt;
&lt;pre&gt;SQL&amp;gt; insert /*+ IGNORE_ROW_ON_DUPKEY_INDEX(t2,SYS_C007007) */ into t2
select * from t1;
insert /*+ IGNORE_ROW_ON_DUPKEY_INDEX(t2,SYS_C007007) */ into t2
select * from t1
*
ERROR at line 1:
ORA-00600: internal error code, arguments: [qerltcInsertSelectRop_bad_state],&lt;span style=&quot;color: #ff0000;&quot;&gt;

[], [], [], [], [], [], [], [], [], [], []&lt;/span&gt;&lt;/pre&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/276120658/BrotherxiaosHome/feedsky/s.gif?r=http://www.imdba.net/blog/?p=158&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/BrotherxiaosHome/276120658/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/BrotherxiaosHome/276120658/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.imdba.net/blog/?feed=rss2&amp;p=158</wfw:commentRss><description>Oracle 11gR2 New feature中引入了IGNORE_ROW_ON_DUPKEY_INDEX hint以解决insert &amp;#8230;select 碰到的唯一性冲突问题，测试了一把，没有成功。看来新功能还有带检验。
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning and Real Application Testing options
SQL&amp;#62; show user
USER is &quot;SYS&quot;
SQL&amp;#62; create table t1 as select * from dba_objects;
Table created.
SQL&amp;#62; select count(*) from t1;
COUNT(*)
----------
65690
SQL&amp;#62; insert into t1 select * from t1 [...]&lt;img src=&quot;http://www1.feedsky.com/t1/276120658/BrotherxiaosHome/feedsky/s.gif?r=http://www.imdba.net/blog/?p=158&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/BrotherxiaosHome/276120658/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/BrotherxiaosHome/276120658/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>数据库</category><pubDate>Sun, 27 Sep 2009 15:48:16 +0800</pubDate><author>brotherxiao</author><comments>http://www.imdba.net/blog/?p=158#comments</comments><guid isPermaLink="false">http://www.imdba.net/blog/?p=158</guid><dc:creator>brotherxiao</dc:creator><fs:srclink>http://www.imdba.net/blog/?p=158</fs:srclink><fs:srcfeed>http://www.imdba.net/blog/feed</fs:srcfeed><fs:itemid>feedsky/BrotherxiaosHome/~6987050/276120658/5094996</fs:itemid></item></channel></rss>