<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MacLochlainns Weblog &#187; ORA-29400</title>
	<atom:link href="http://blog.mclaughlinsoftware.com/tag/ora-29400/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mclaughlinsoftware.com</link>
	<description>Michael McLaughlin's Technical Blog</description>
	<lastBuildDate>Wed, 28 Jul 2010 00:02:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to avoid errors when querying external tables</title>
		<link>http://blog.mclaughlinsoftware.com/2008/09/28/how-to-avoid-errors-when-querying-external-tables/</link>
		<comments>http://blog.mclaughlinsoftware.com/2008/09/28/how-to-avoid-errors-when-querying-external-tables/#comments</comments>
		<pubDate>Sun, 28 Sep 2008 23:21:44 +0000</pubDate>
		<dc:creator>maclochlainn</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[KUP-04040]]></category>
		<category><![CDATA[ORA-29400]]></category>
		<category><![CDATA[ORA-29913]]></category>
		<category><![CDATA[Oracle external tables]]></category>
		<category><![CDATA[verify external file for external table]]></category>

		<guid isPermaLink="false">http://maclochlainn.wordpress.com/?p=495</guid>
		<description><![CDATA[Somebody got to my blog searching for how to find an external file. I thought about why they might be looking for that. Since the lack of a file raises an error stack, I concluded that they want to verify whether the file exists before querying it. That way, they avoid the annoying ORA-29913, ORA-29400, [...]]]></description>
			<content:encoded><![CDATA[<p>Somebody got to my blog searching for how to find an external file. I thought about why they might be looking for that. Since the lack of a file raises an error stack, I concluded that they want to verify whether the file exists before querying it. That way, they avoid the annoying <code>ORA-29913</code>, <code>ORA-29400</code>, and <code>KUP-04040</code> error stack.</p>
<p>I&#8217;ve added <a title="How to guarantee an external file before querying" href="http://blog.mclaughlinsoftware.com/how-to-guarantee-an-external-file-before-querying/" target="_blank">a page to describe the complete set of steps</a> &#8230; The instructions let you avoid the error stack by verifying the existence of the file first.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mclaughlinsoftware.com/2008/09/28/how-to-avoid-errors-when-querying-external-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update to Oracle External File Basics</title>
		<link>http://blog.mclaughlinsoftware.com/2008/06/28/update-to-oracle-external-file-basics/</link>
		<comments>http://blog.mclaughlinsoftware.com/2008/06/28/update-to-oracle-external-file-basics/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 23:55:06 +0000</pubDate>
		<dc:creator>maclochlainn</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[external tables]]></category>
		<category><![CDATA[KUP-04080]]></category>
		<category><![CDATA[ODCIEXTTABLEOPEN]]></category>
		<category><![CDATA[ORA-29400]]></category>
		<category><![CDATA[ORA-29913]]></category>
		<category><![CDATA[position specific files]]></category>

		<guid isPermaLink="false">http://maclochlainn.wordpress.com/?p=57</guid>
		<description><![CDATA[While an earlier entry discusses CSV uploads to Oracle external tables, I neglected to mention some things. You can also upload position specific files, override the directory for log files, and override the file extensions. There are actually two syntax methods for uploading position specific file. Only one is covered in the Oracle 11g Database [...]]]></description>
			<content:encoded><![CDATA[<p>While an <a title="Oracle External Table Basics" href="http://blog.mclaughlinsoftware.com/2008/06/19/oracle-external-table-basics/" target="_blank">earlier entry</a> discusses CSV uploads to Oracle external tables, I neglected to mention some things. You can also upload <em><strong>position specific files</strong></em>, override the directory for log files, and override the file extensions.</p>
<p>There are actually two syntax methods for uploading position specific file. Only one is covered in the <a title="Oracle 11g Database Utilities" href="http://download.oracle.com/docs/cd/B28359_01/server.111/b28319/et_concepts.htm#g1017623" target="_blank">Oracle 11g Database Utilities</a> manual. It makes you wonder if Oracle supports one or both.</p>
<p>You can override default log, bad, or discard file extensions when you enclose the relative file name in single quotes. You can also specify a virtual directory that differs from your upload (data import) directory.</p>
<p>You may get a surprise if you think virtual directories are case insensitive while defining external tables. They’re not. <strong>You must enter <em>overriding</em> virtual directories in uppercase only!</strong> You’ll raise this exception stack if you attempt anything else:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">ERROR at line <span style="color: #cc66cc;">1</span>:
ORA<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">29913</span>: error <span style="color: #993333; font-weight: bold;">IN</span> executing ODCIEXTTABLEOPEN callout
ORA<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">29400</span>: <span style="color: #993333; font-weight: bold;">DATA</span> cartridge error
KUP<span style="color: #66cc66;">-</span>04080: directory object download <span style="color: #993333; font-weight: bold;">NOT</span> found</pre></div></div>

<p>The full syntax for virtual directories and extensions is in <a title="External SQL*Loader Tables" href="http://blog.mclaughlinsoftware.com/creating-an-external-table-that-uses-sqlloader/" target="_blank">this note</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mclaughlinsoftware.com/2008/06/28/update-to-oracle-external-file-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle External Table Basics</title>
		<link>http://blog.mclaughlinsoftware.com/2008/06/19/oracle-external-table-basics/</link>
		<comments>http://blog.mclaughlinsoftware.com/2008/06/19/oracle-external-table-basics/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 07:27:53 +0000</pubDate>
		<dc:creator>maclochlainn</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[data_pump]]></category>
		<category><![CDATA[external tables]]></category>
		<category><![CDATA[KUP-00554]]></category>
		<category><![CDATA[KUP-01005]]></category>
		<category><![CDATA[KUP-01007]]></category>
		<category><![CDATA[KUP-11012]]></category>
		<category><![CDATA[ORA-29400]]></category>
		<category><![CDATA[ORA-29913]]></category>
		<category><![CDATA[ORA-30656]]></category>
		<category><![CDATA[sql_loader]]></category>

		<guid isPermaLink="false">http://maclochlainn.wordpress.com/?p=38</guid>
		<description><![CDATA[External files are great tools for reading data into and writing data out of an Oracle database. You have two options for reading data into the database. One uses SQL*Loader and the other uses Oracle Data Pump. You have only one option to write data from the database into an external table file. That’s Oracle [...]]]></description>
			<content:encoded><![CDATA[<p>External files are great tools for reading data into and writing data out of an Oracle database. You have two options for reading data into the database. One uses <em>SQL*Loader</em> and the other uses <em>Oracle Data Pump</em>. You have only one option to write data from the database into an external table file. That’s <em>Oracle Data Pump</em>.</p>
<p>I thought this was pretty straightforward when recommending it as a solution. Given the questions that I got back, it appears that it isn’t. Actually, I couldn&#8217;t find an example for how you import data through an external table by using <em>Oracle Data Pump</em>. I only checked the <a title="Oracle Database Utilities 11g" href="http://download.oracle.com/docs/cd/B28359_01/server.111/b28319/toc.htm" target="_blank">Oracle Database Utilities 11<em>g</em></a> documentation, but maybe its somewhere else. </p>
<p>The &#8220;<a title="Creating an external table that uses SQL*Loader" href="http://blog.mclaughlinsoftware.com/creating-an-external-table-that-uses-sqlloader/" target="_blank">Creating an external table that uses SQL*Loader</a>&#8221; page demonstrates how you can create an input or read-only external table. The &#8220;<a title="Creating an external table that uses Oracle Data Pump" href="http://blog.mclaughlinsoftware.com/creating-an-external-table-that-uses-oracle-data-pump/" target="_blank">Creating an external table that uses Oracle Data Pump</a>&#8221; shows you how to create read-write external tables.</p>
<p><strong>Exceptions covered in the Articles</strong></p>
<p>The two referenced pages should help you understand the basics and resolve these error messages (at least on an Oracle Database 11<em>g</em> where I tested them):</p>
<p>Exception stack raised by Oracle <em>SQL*Loader</em> when you provide file extensions for log, bad, or discarded file names without enclosing them in single quotes:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">ORA<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">29913</span>: error <span style="color: #993333; font-weight: bold;">IN</span> executing ODCIEXTTABLEOPEN callout
ORA<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">29400</span>: <span style="color: #993333; font-weight: bold;">DATA</span> cartridge error
KUP<span style="color: #66cc66;">-</span>00554: error encountered while parsing access parameters
KUP<span style="color: #66cc66;">-</span>01005: syntax error: found <span style="color: #ff0000;">&quot;dot&quot;</span>: expecting one of: <span style="color: #ff0000;">&quot;badfile,
byteordermark, characterset, colon, column, data, delimited, discardfile,
disable_directory_link_check, fields, fixed, load, logfile, language,
nodiscardfile, nobadfile, nologfile, date_cache, processing, readsize, string,
skip, territory, vari&quot;</span>
KUP<span style="color: #66cc66;">-</span>01007: at line <span style="color: #cc66cc;">2</span> <span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">20</span></pre></div></div>

<p>You can also enclose a different Oracle virtual directory by using <em>&#8216;virtual_directory&#8217;:'name.extension&#8217;</em> syntax.</p>
<p>Exception stack raised by <em>Oracle Data Pump</em> when you fail to enumerate columns in the source query:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">ERROR at line <span style="color: #cc66cc;">6</span>:
ORA<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">30656</span>: <span style="color: #993333; font-weight: bold;">COLUMN</span> type <span style="color: #993333; font-weight: bold;">NOT</span> supported <span style="color: #993333; font-weight: bold;">ON</span> external organized <span style="color: #993333; font-weight: bold;">TABLE</span></pre></div></div>

<p>Exception stack raised by <em>Oracle Data Pump</em> when you try to rebuild the external table without previously dropping the external file:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">TABLE</span> item_export
<span style="color: #66cc66;">*</span>
ERROR at line <span style="color: #cc66cc;">1</span>:
ORA<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">29913</span>: error <span style="color: #993333; font-weight: bold;">IN</span> executing ODCIEXTTABLEOPEN callout
ORA<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">29400</span>: <span style="color: #993333; font-weight: bold;">DATA</span> cartridge error
KUP<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11012</span>: file item_export<span style="color: #66cc66;">.</span>dmp <span style="color: #993333; font-weight: bold;">IN</span> C:\<span style="color: #993333; font-weight: bold;">DATA</span>\Download already <span style="color: #993333; font-weight: bold;">EXISTS</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.mclaughlinsoftware.com/2008/06/19/oracle-external-table-basics/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
