exp导出报错EXP-00091: Exporting questionable statistics问题解决
使用如下命令执行导出操作:
exp user/pass@orcl file=/bak/20180803.dmp log=/bak/20180803.log owner=username buffer=111149600 grants=y
输出如下信息,其中包含一些EXP-00091的错误提示:
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
. . exporting table ARAP_BILLCONFER 0 rows exported
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
. . exporting table ARAP_BILLMAP 336693 rows exported
导出来的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参数。
解决方法:
查询服务器端字符集:
select userenv('language') from dual;
USERENV('LANGUAGE')
SIMPLIFIED CHINESE_CHINA.ZHS16GBK
设置客户端字符集:
export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
并将这句写入到/home/oracle/.bash_profile文件的最末;
然后重新执行导出,问题解决;
或者在exp导出的时候增加参数(不推荐)
statistics=none #统计信息字段statistics设置为none
Tag标签:「oracle exp」更新时间:「2021-11-03 22:42:09」阅读次数:「783」