前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >使用exp导出报错EXP-00091

使用exp导出报错EXP-00091

作者头像
bisal
发布2019-01-29 15:29:00
1.2K0
发布2019-01-29 15:29:00
举报

使用如下命令执行导出操作:

代码语言:javascript
复制
exp user/pwd@db file=/home/a.dmp log=/home/a.log

输出如下信息,其中包含一些EXP-00091的错误提示:

代码语言:javascript
复制
. . exporting table                   T         0 rows exported
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.

但导出来的dump文件可用于导入。

看下官方对EXP-00091的介绍:

EXP-00091: Exporting questionable statistics. Cause: Export was able export statistics, but the statistics may not be usuable. The statistics are questionable because one or more of the following happened during export: a row error occurred, client character set or NCHARSET does not match with the server, a query clause was specified on export, only certain partitions or subpartitions were exported, or a fatal error occurred while processing a table. Action: To export non-questionable statistics, change the client character set or NCHARSET to match the server, export with no query clause, export complete tables. If desired, import parameters can be supplied so that only non-questionable statistics will be imported, and all questionable statistics will be recalculated.

大致意思是导出过程中,由于客户端字符集或NCHARSET参数和服务器端不一致,导致一些统计信息不可用。解决方案是可以导出不存在问题的统计信息,或者改变客户端字符集或NCHARSET参数。

实验: 方案1: 查询服务器端字符集:

代码语言:javascript
复制
SQL> select userenv('language') from dual;

USERENV('LANGUAGE')
-------------------------------------------------------
AMERICAN_AMERICA.AL32UTF8

设置客户端字符集:

代码语言:javascript
复制
[oracle@Node]~>export NLS_LANG=AMERICAN_AMERICA.AL32UTF8

执行导出命令:

代码语言:javascript
复制
[oracle@Node]~>exp user/pwd@db file=/home/a.dmp log=/home/a.log

. . exporting table          T          0 rows exported

不再报错。

方案2:

代码语言:javascript
复制
exp user/pwd@db file=/home/a.dmp log=/home/a.log statistics=none

统计信息字段statistics设置为none。 执行导出命令:

代码语言:javascript
复制
[oracle@Node]~>exp user/pwd@db file=/home/a.dmp log=/home/a.log

. . exporting table          T          0 rows exported

不再报错。但这种方式相当于未导出那些因字符集不一致错误的统计信息,导入自然也不会有这部分统计信息,如果需要,那么只能再重新收集统计信息。

因此针对这种exp报EXP-00091的错误,可以有上述两种方式workaround,但推荐的肯定还是方案1,导出的信息最全面。

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2015年11月02日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档