<?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>惜分飞 &#187; ORA-39064 ORA-29285</title>
	<atom:link href="https://www.xifenfei.com/tag/ora-39064-ora-29285/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Sat, 07 Nov 2026 15:45:44 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>expdp报ORA-39064 ORA-29285错误</title>
		<link>https://www.xifenfei.com/2021/05/expdp%e6%8a%a5ora-39064-ora-29285%e9%94%99%e8%af%af.html</link>
		<comments>https://www.xifenfei.com/2021/05/expdp%e6%8a%a5ora-39064-ora-29285%e9%94%99%e8%af%af.html#comments</comments>
		<pubDate>Tue, 04 May 2021 15:33:59 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[逻辑备份/恢复]]></category>
		<category><![CDATA[ORA-29285]]></category>
		<category><![CDATA[ORA-39064]]></category>
		<category><![CDATA[ORA-39064 ORA-29285]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=9213</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2021/05/expdp%e6%8a%a5ora-39064-ora-29285%e9%94%99%e8%af%af.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2021/05/expdp%e6%8a%a5ora-39064-ora-29285%e9%94%99%e8%af%af.html" target="_blank">expdp报ORA-39064 ORA-29285错误</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>expdp导出数据,报错ORA-39064 ORA-29285错误,导致datapump的logfile记录的日志不全</p>
<pre class="brush: bash; title: ; notranslate">
. . 导出了 &quot;HCP&quot;.&quot;HR_ADJ_SAL_ADV_SETUP_M&quot;                  0 KB       0 行
ORA-39064: 无法写入日志文件
ORA-29285: 文件写入错误
. . 导出了 &quot;HCP&quot;.&quot;HR_ADJ_SAL_CONFIRM&quot;                      0 KB       0 行
</pre>
<p>查询数据库NLS_CHARACTERSET</p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; select NAME, value$ from props$ where name like 'NLS_CHARACTERSET';

NAME
------------------------------
VALUE$
--------------------------------------------------------------------------------
NLS_CHARACTERSET
UTF8
</pre>
<p>查看客户端字符集</p>
<pre class="brush: bash; title: ; notranslate">

SQL&gt; select userenv('language') from dual;

USERENV('LANGUAGE')
--------------------------------------------------------------------------------
SIMPLIFIED CHINESE_CHINA.ZHS16GBK
</pre>
<p>出现这个问题,是由于expdp本身调用UTL_FILE,在Oracle Database PL/SQL Packages and Types Reference中有When data encoded in one character set is read and Globalization Support is told (such as by means of NLS_LANG) that it is encoded in another character set, the result is indeterminate. If NLS_LANG is set, it should be the same as the database character set.<br />
基于这样的情况，通过设置NLS_LANG在客户端字符集和服务端一致,就不会出现该问题</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2010/09/shell%e7%bc%96%e7%a8%8b%e2%80%94%e2%80%94%e5%9f%ba%e6%9c%ac%e8%af%ad%e6%b3%95.html" rel="bookmark" class="crp_title">shell编程——基本语法</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/08/oracle-12c-dbms_utility-expand_sql_text-%e6%9f%a5%e7%9c%8bsql%e8%a7%86%e5%9b%be%e5%9f%ba%e8%a1%a8.html" rel="bookmark" class="crp_title">ORACLE 12C dbms_utility.expand_sql_text 查看SQL视图基表</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/01/exp-00091-exporting-questionable-statistics.html" rel="bookmark" class="crp_title">EXP-00091: Exporting questionable statistics.</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2010/08/fckeditor%e4%bd%bf%e7%94%a8%e8%af%b4%e6%98%8e.html" rel="bookmark" class="crp_title">fckeditor使用说明</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/12/%e9%80%9a%e8%bf%87zhs16gbk%e5%92%8cal32utf8%e5%ad%97%e7%ac%a6%e7%bc%96%e7%a0%81%e5%88%86%e6%9e%90expimp.html" rel="bookmark" class="crp_title">通过ZHS16GBK和AL32UTF8字符编码分析exp/imp</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/03/pdu-recovery-corrupt-block.html" rel="bookmark" class="crp_title">PostgreSQL表文件损坏恢复&#8212;pdu恢复损坏的表文件</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/12/pg-replace-oid-recovery.html" rel="bookmark" class="crp_title">PostgreSQL oid文件替换实现数据访问</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/03/%e8%a7%a3%e5%86%b3imp%e5%af%bc%e5%85%a5%e6%95%b0%e6%8d%ae%e6%8a%a5imp-00028%e9%94%99%e8%af%af.html" rel="bookmark" class="crp_title">解决imp导入数据报IMP-00098错误</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/03/v%e8%a7%86%e5%9b%be%e7%94%b1%e6%9d%a5.html" rel="bookmark" class="crp_title">v$和gv$来源</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/09/bbed_wrap%e8%84%9a%e6%9c%ac%e8%8e%b7%e5%8f%96%e6%95%b0%e6%8d%ae%e5%9d%97%e5%86%85%e5%ae%b9.html" rel="bookmark" class="crp_title">bbed_wrap脚本获取数据块内容</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/11/imp%e4%b9%b1%e7%a0%81%e5%88%86%e6%9e%90-%e8%a7%a3%e5%86%b3%e5%bb%ba%e8%ae%ae.html" rel="bookmark" class="crp_title">imp乱码分析&#8211;解决建议</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/01/goldedgate-%e5%88%9d%e5%a7%8b%e5%8c%96%e6%95%b0%e6%8d%ae.html" rel="bookmark" class="crp_title">goldedgate 初始化数据</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2021/05/expdp%e6%8a%a5ora-39064-ora-29285%e9%94%99%e8%af%af.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
