博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
使用exp导出报错EXP-00091
阅读量:7105 次
发布时间:2019-06-28

本文共 1918 字,大约阅读时间需要 6 分钟。

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

exp user/pwd@db file=/home/a.dmp log=/home/a.log

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

. . exporting table                   T         0 rows exportedEXP-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:
查询服务器端字符集:

SQL> select userenv('language') from dual;USERENV('LANGUAGE')-------------------------------------------------------AMERICAN_AMERICA.AL32UTF8

设置客户端字符集:

[oracle@Node]~>export NLS_LANG=AMERICAN_AMERICA.AL32UTF8

执行导出命令:

[oracle@Node]~>exp user/pwd@db file=/home/a.dmp log=/home/a.log. . exporting table          T          0 rows exported

不再报错。

方案2:

exp user/pwd@db file=/home/a.dmp log=/home/a.log statistics=none

统计信息字段statistics设置为none。

执行导出命令:

[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,导出的信息最全面。

转载地址:http://vvjhl.baihongyu.com/

你可能感兴趣的文章
ORA-12541: TNS: 无监听程序 怎么解决
查看>>
自定义UIButton--iPhone按钮控件点击效果写法
查看>>
HDOJ_ACM_CUP
查看>>
陶哲轩实分析习题8.5.11
查看>>
软件工程随堂小作业——(C++)
查看>>
搭建个人专用的谷歌搜索镜像站---学习笔记
查看>>
三步轻松打造微信聊天机器人(附源码)
查看>>
11月24日学习内容整理:django基础,安装,创建项目,设置配置文件中的信息,简单的登录验证举例...
查看>>
expect和assert的联合用法,git删除本地和远端分支
查看>>
利用Handler延时机制实现点击两次退出程序
查看>>
suse11 oracle11g 安装 3
查看>>
模拟+位运算 HDOJ 5491 The Next
查看>>
ZOJ 3157 Weapon
查看>>
Luogu_3239 [HNOI2015]亚瑟王
查看>>
如何将两个列表变成一个python字典
查看>>
js math函数解释
查看>>
2018年7月28日笔记
查看>>
Implementing multi-level trees in MS SQL Server
查看>>
重温微积分1|散度定理的证明
查看>>
linux磁盘管理系列二:软RAID的实现
查看>>