<?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>AnySQL.net &#187; Where</title>
	<atom:link href="http://www.anysql.net/tag/where/feed" rel="self" type="application/rss+xml" />
	<link>http://www.anysql.net</link>
	<description>SQLULDR2, DataCopy, DataSync, WebChart, OraMon, AUL/MyDUL, 性能优化及容量分析</description>
	<lastBuildDate>Sun, 29 Aug 2010 00:14:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>如何指定exp的query参数以导出部份记录?</title>
		<link>http://www.anysql.net/oracle/exp_param_query.html</link>
		<comments>http://www.anysql.net/oracle/exp_param_query.html#comments</comments>
		<pubDate>Wed, 24 Jan 2007 23:58:32 +0000</pubDate>
		<dc:creator>anysql</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Export]]></category>
		<category><![CDATA[Query]]></category>
		<category><![CDATA[Where]]></category>

		<guid isPermaLink="false">http://www.anysql.net/wordpress/uncategorized/%e5%a6%82%e4%bd%95%e6%8c%87%e5%ae%9aexp%e7%9a%84query%e5%8f%82%e6%95%b0%e4%bb%a5%e5%af%bc%e5%87%ba%e9%83%a8%e4%bb%bd%e8%ae%b0%e5%bd%95.html</guid>
		<description><![CDATA[&#160; &#160; Oracle的exp工具有一个query参数可以指定一个where条件来有条件地导出记录, 对于不经常用这个选项的人来说, 经常会遇到这样的错误: LRM-00112: multiple values not allowed for parameter &#8216;query&#8217; EXP-00019: failed to process parameters, type &#8216;EXP HELP=Y&#8217; for help EXP-00000: Export terminated unsuccessfully &#160; &#160; 这是因为在where条件中一般都会有空格, 而命令行下就会被释成几个命令行参数, 需要用单引号或双引号将整个where条件括起来, 就可以了. 在Windows下, 如何指定query参数: exp &#8230; query=&#8217;where deptno=10&#8242; exp &#8230; query=&#8217;where deptno=&#8221;10&#8221;&#8217; exp &#8230; query=&#8217;where deptno&#8221;]]></description>
			<content:encoded><![CDATA[<p>&nbsp; &nbsp; Oracle的exp工具有一个query参数可以指定一个where条件来有条件地导出记录, 对于不经常用这个选项的人来说, 经常会遇到这样的错误: </p>
<blockquote class="prefont"><p>
LRM-00112: multiple values not allowed for parameter &#8216;query&#8217;</p>
<p>EXP-00019: failed to process parameters, type &#8216;EXP HELP=Y&#8217; for help<br />
EXP-00000: Export terminated unsuccessfully
</p></blockquote>
<p>&nbsp; &nbsp; 这是因为在where条件中一般都会有空格, 而命令行下就会被释成几个命令行参数, 需要用单引号或双引号将整个where条件括起来, 就可以了. 在Windows下, 如何指定query参数:</p>
<blockquote class="prefont"><p>
exp &#8230; query=&#8217;where deptno=10&#8242;<br />
exp &#8230; query=&#8217;where deptno=&#8221;10&#8221;&#8217;<br />
exp &#8230; query=&#8217;where deptno&#8221;<"10'
</p></blockquote>
<p>&nbsp; &nbsp; 在Solaris(C shell)下, 如何指定query参数:</p>
<blockquote class="prefont"><p>
exp &#8230;.. query=\&#8221;where col1 \&lt; 1000\&#8221;<br />
exp &#8230;.. query=\&#8221;where col1 \&lt; &#8217;1000&#8242;\&#8221;
</p></blockquote>
<p>&nbsp; &nbsp; 其他Unix平台的应当和Solaris下的一样, 我自已也经常搞错. 在上面的例子中已经说明了如何在query值中使用单引号, 因此在看完这篇后, 就应当可以写出正确的where条件了. 最好是写在一个参数文件里, 这样的话就不用注意这些了.</p>
<h3  class="related_post_title">Relative Posts:</h3><ul class="related_post"><li>2010/06/19 -- <a href="http://www.anysql.net/tools/sqluldr2-non-free-features.html" title="2011年起SQLULDR2中的收费功能">2011年起SQLULDR2中的收费功能</a> (3)</li><li>2009/04/16 -- <a href="http://www.anysql.net/dba/oracle_direct_export.html" title="猜想Oracle Direct方式">猜想Oracle Direct方式</a> (0)</li><li>2009/02/05 -- <a href="http://www.anysql.net/dba/change_export_tablespace.html" title="导出时如何统一表空间?">导出时如何统一表空间?</a> (2)</li><li>2008/05/15 -- <a href="http://www.anysql.net/dba/aul_better_for_nchar.html" title="将dmp数据导入到另一个表">将dmp数据导入到另一个表</a> (3)</li><li>2008/02/27 -- <a href="http://www.anysql.net/dba/oracle_lob_export_parallel.html" title="容易遗忘的手工并行">容易遗忘的手工并行</a> (4)</li><li>2008/02/20 -- <a href="http://www.anysql.net/dba/export_charset_convert.html" title="导出时的字符集转换">导出时的字符集转换</a> (1)</li><li>2008/01/25 -- <a href="http://www.anysql.net/tools/ociuldr_update_20080125.html" title="ociuldr更新(2008/01/25)">ociuldr更新(2008/01/25)</a> (15)</li><li>2007/11/28 -- <a href="http://www.anysql.net/dba/oracle_export_parallel.html" title="Hack了一把Oracle的exp工具">Hack了一把Oracle的exp工具</a> (9)</li><li>2007/11/28 -- <a href="http://www.anysql.net/oracle/tune_oracle_exp_imp.html" title="如何提高Oracle exp/imp的速度?">如何提高Oracle exp/imp的速度?</a> (7)</li><li>2007/08/22 -- <a href="http://www.anysql.net/tools/ociuldr_option_array.html" title="ociuldr的更新, 为了更好的long类型支持">ociuldr的更新, 为了更好的long类型支持</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.anysql.net/oracle/exp_param_query.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
