<?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 on: Hints for Direct-path Insert Statements</title>
	<atom:link href="http://antognini.ch/2009/10/hints-for-direct-path-insert-statements/feed/" rel="self" type="application/rss+xml" />
	<link>http://antognini.ch/2009/10/hints-for-direct-path-insert-statements/</link>
	<description></description>
	<lastBuildDate>Fri, 10 Sep 2010 07:45:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Christian Antognini</title>
		<link>http://antognini.ch/2009/10/hints-for-direct-path-insert-statements/comment-page-1/#comment-6407</link>
		<dc:creator>Christian Antognini</dc:creator>
		<pubDate>Thu, 17 Dec 2009 08:02:13 +0000</pubDate>
		<guid isPermaLink="false">http://antognini.ch/?p=741#comment-6407</guid>
		<description>Hi Kerry

Sorry, I never did tests using the SYS_DL_CURSOR hint.

Cheers,
Chris</description>
		<content:encoded><![CDATA[<p>Hi Kerry</p>
<p>Sorry, I never did tests using the SYS_DL_CURSOR hint.</p>
<p>Cheers,<br />
Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kerry Osborne</title>
		<link>http://antognini.ch/2009/10/hints-for-direct-path-insert-statements/comment-page-1/#comment-6347</link>
		<dc:creator>Kerry Osborne</dc:creator>
		<pubDate>Mon, 14 Dec 2009 23:58:17 +0000</pubDate>
		<guid isPermaLink="false">http://antognini.ch/?p=741#comment-6347</guid>
		<description>Hi Christian,

Are you familiar with SYS_DL_CURSOR hint? Do you know if the APPEND_VALUES hint is functionally the same.

Kerry</description>
		<content:encoded><![CDATA[<p>Hi Christian,</p>
<p>Are you familiar with SYS_DL_CURSOR hint? Do you know if the APPEND_VALUES hint is functionally the same.</p>
<p>Kerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Houri Mohamed</title>
		<link>http://antognini.ch/2009/10/hints-for-direct-path-insert-statements/comment-page-1/#comment-6285</link>
		<dc:creator>Houri Mohamed</dc:creator>
		<pubDate>Fri, 11 Dec 2009 07:38:39 +0000</pubDate>
		<guid isPermaLink="false">http://antognini.ch/?p=741#comment-6285</guid>
		<description>Thanks Christian,
Always we learn something new. 
Today is : in 11g we can use direct path insert with insert/values using the hint 
/*+ append_values */
Regards</description>
		<content:encoded><![CDATA[<p>Thanks Christian,<br />
Always we learn something new.<br />
Today is : in 11g we can use direct path insert with insert/values using the hint<br />
/*+ append_values */<br />
Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Antognini</title>
		<link>http://antognini.ch/2009/10/hints-for-direct-path-insert-statements/comment-page-1/#comment-6284</link>
		<dc:creator>Christian Antognini</dc:creator>
		<pubDate>Fri, 11 Dec 2009 06:33:22 +0000</pubDate>
		<guid isPermaLink="false">http://antognini.ch/?p=741#comment-6284</guid>
		<description>Hi Mohamed

DML error logging is not yet supported with direct inserts.

Here is an example:

&lt;pre&gt;SQL&gt; SELECT * FROM v$version WHERE rownum = 1;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

SQL&gt; CREATE TABLE t (n NUMBER, pad VARCHAR2(100), CONSTRAINT t_n_uk UNIQUE (n));

SQL&gt; INSERT INTO t VALUES (1,&#039;bla&#039;);

SQL&gt; exec dbms_errlog.create_error_log (&#039;t&#039;)

SQL&gt; INSERT /*+ append_values */ INTO t VALUES (1,&#039;bla&#039;) LOG ERRORS;
INSERT /*+ append_values */ INTO t VALUES (1,&#039;bla&#039;) LOG ERRORS
*
ERROR at line 1:
ORA-00001: unique constraint (CHA.T_N_UK) violated

SQL&gt; SELECT ora_err_mesg$ FROM err$_t;

no rows selected

SQL&gt; INSERT INTO t VALUES (1,&#039;bla&#039;) LOG ERRORS;
INSERT INTO t VALUES (1,&#039;bla&#039;) LOG ERRORS
*
ERROR at line 1:
ORA-00001: unique constraint (CHA.T_N_UK) violated

SQL&gt; SELECT ora_err_mesg$ FROM err$_t;

ORA_ERR_MESG$
--------------------------------------------------------------------------------
ORA-00001: unique constraint (CHA.T_N_UK) violated&lt;/pre&gt;

Cheers,
Chris</description>
		<content:encoded><![CDATA[<p>Hi Mohamed</p>
<p>DML error logging is not yet supported with direct inserts.</p>
<p>Here is an example:</p>
<p><pre>SQL&gt; SELECT * FROM v$version WHERE rownum = 1;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

SQL&gt; CREATE TABLE t (n NUMBER, pad VARCHAR2(100), CONSTRAINT t_n_uk UNIQUE (n));

SQL&gt; INSERT INTO t VALUES (1,&#039;bla&#039;);

SQL&gt; exec dbms_errlog.create_error_log (&#039;t&#039;)

SQL&gt; INSERT /*+ append_values */ INTO t VALUES (1,&#039;bla&#039;) LOG ERRORS;
INSERT /*+ append_values */ INTO t VALUES (1,&#039;bla&#039;) LOG ERRORS
*
ERROR at line 1:
ORA-00001: unique constraint (CHA.T_N_UK) violated

SQL&gt; SELECT ora_err_mesg$ FROM err$_t;

no rows selected

SQL&gt; INSERT INTO t VALUES (1,&#039;bla&#039;) LOG ERRORS;
INSERT INTO t VALUES (1,&#039;bla&#039;) LOG ERRORS
*
ERROR at line 1:
ORA-00001: unique constraint (CHA.T_N_UK) violated

SQL&gt; SELECT ora_err_mesg$ FROM err$_t;

ORA_ERR_MESG$
--------------------------------------------------------------------------------
ORA-00001: unique constraint (CHA.T_N_UK) violated</pre></p>
<p>Cheers,<br />
Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Houri Mohamed</title>
		<link>http://antognini.ch/2009/10/hints-for-direct-path-insert-statements/comment-page-1/#comment-6181</link>
		<dc:creator>Houri Mohamed</dc:creator>
		<pubDate>Thu, 03 Dec 2009 16:25:30 +0000</pubDate>
		<guid isPermaLink="false">http://antognini.ch/?p=741#comment-6181</guid>
		<description>Hi Christian,

Does the dml logging error during insert /*+ append */ select is 
supported by the new oracle release? Particulary for unique and
primary keys?

Mohamed</description>
		<content:encoded><![CDATA[<p>Hi Christian,</p>
<p>Does the dml logging error during insert /*+ append */ select is<br />
supported by the new oracle release? Particulary for unique and<br />
primary keys?</p>
<p>Mohamed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Antognini</title>
		<link>http://antognini.ch/2009/10/hints-for-direct-path-insert-statements/comment-page-1/#comment-5808</link>
		<dc:creator>Christian Antognini</dc:creator>
		<pubDate>Tue, 10 Nov 2009 22:14:05 +0000</pubDate>
		<guid isPermaLink="false">http://antognini.ch/?p=741#comment-5808</guid>
		<description>Hi Raja

&gt; How about using APPEND in other DML Statements like DELETE, UPDATE, MERGE ?

The APPEND hint is only supported for INSERT and MERGE statements. With MERGE statements it is specified as follows:

MERGE /*+ append */ INTO ...

&gt; Does PARALLELISM get enabled by default, when APPEND hint is used ?

No. But a parallel insert automatically use direct-path to write data into the blocks...

Cheers,
Chris</description>
		<content:encoded><![CDATA[<p>Hi Raja</p>
<p>> How about using APPEND in other DML Statements like DELETE, UPDATE, MERGE ?</p>
<p>The APPEND hint is only supported for INSERT and MERGE statements. With MERGE statements it is specified as follows:</p>
<p>MERGE /*+ append */ INTO &#8230;</p>
<p>> Does PARALLELISM get enabled by default, when APPEND hint is used ?</p>
<p>No. But a parallel insert automatically use direct-path to write data into the blocks&#8230;</p>
<p>Cheers,<br />
Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raja</title>
		<link>http://antognini.ch/2009/10/hints-for-direct-path-insert-statements/comment-page-1/#comment-5727</link>
		<dc:creator>Raja</dc:creator>
		<pubDate>Tue, 03 Nov 2009 06:16:35 +0000</pubDate>
		<guid isPermaLink="false">http://antognini.ch/?p=741#comment-5727</guid>
		<description>The exceptions mentioned here for INSERT and APPEND are very useful.

Please clarify my doubts :
1. How about using APPEND in other DML Statements like DELETE, UPDATE, MERGE ?
2. Does PARALLELISM get enabled by default, when APPEND hint is used ?</description>
		<content:encoded><![CDATA[<p>The exceptions mentioned here for INSERT and APPEND are very useful.</p>
<p>Please clarify my doubts :<br />
1. How about using APPEND in other DML Statements like DELETE, UPDATE, MERGE ?<br />
2. Does PARALLELISM get enabled by default, when APPEND hint is used ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blogroll Report 16/10/2009-23/10/2009 &#171; Coskan&#8217;s Approach to Oracle</title>
		<link>http://antognini.ch/2009/10/hints-for-direct-path-insert-statements/comment-page-1/#comment-5601</link>
		<dc:creator>Blogroll Report 16/10/2009-23/10/2009 &#171; Coskan&#8217;s Approach to Oracle</dc:creator>
		<pubDate>Mon, 26 Oct 2009 23:55:20 +0000</pubDate>
		<guid isPermaLink="false">http://antognini.ch/?p=741#comment-5601</guid>
		<description>[...] Christian Antognini-Hints for Direct-path Insert Statements [...]</description>
		<content:encoded><![CDATA[<p>[...] Christian Antognini-Hints for Direct-path Insert Statements [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timur Akhmadeev</title>
		<link>http://antognini.ch/2009/10/hints-for-direct-path-insert-statements/comment-page-1/#comment-5590</link>
		<dc:creator>Timur Akhmadeev</dc:creator>
		<pubDate>Mon, 26 Oct 2009 08:55:27 +0000</pubDate>
		<guid isPermaLink="false">http://antognini.ch/?p=741#comment-5590</guid>
		<description>Hi Chris,

see &lt;a href=&quot;https://support.oracle.com/CSP/main/article?cmd=show&amp;type=NOT&amp;id=842374.1&quot; rel=&quot;nofollow&quot;&gt;Note 842374.1&lt;/a&gt; for explanation of this behavior.</description>
		<content:encoded><![CDATA[<p>Hi Chris,</p>
<p>see <a href="https://support.oracle.com/CSP/main/article?cmd=show&#038;type=NOT&#038;id=842374.1" rel="nofollow">Note 842374.1</a> for explanation of this behavior.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alberto Dell'Era</title>
		<link>http://antognini.ch/2009/10/hints-for-direct-path-insert-statements/comment-page-1/#comment-5582</link>
		<dc:creator>Alberto Dell'Era</dc:creator>
		<pubDate>Sun, 25 Oct 2009 14:57:36 +0000</pubDate>
		<guid isPermaLink="false">http://antognini.ch/?p=741#comment-5582</guid>
		<description>Ciao Chris,

very interesting - it seems to be useful when the arguments to the VALUES clause are actually arrays according to the docs
&lt;a href=&quot;http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/sql_elements006.htm#BABFIHGA&quot; rel=&quot;nofollow&quot;&gt;APPEND_VALUES Hint &lt;/a&gt;
In fact I can see no reason to insert-append a single row ...</description>
		<content:encoded><![CDATA[<p>Ciao Chris,</p>
<p>very interesting &#8211; it seems to be useful when the arguments to the VALUES clause are actually arrays according to the docs<br />
<a href="http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/sql_elements006.htm#BABFIHGA" rel="nofollow">APPEND_VALUES Hint </a><br />
In fact I can see no reason to insert-append a single row &#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
