使用exp导出报错EXP-00091

简介: 使用如下命令执行导出操作:exp user/pwd@db file=/home/a.dmp log=/home/a.

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

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

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

. . 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:
查询服务器端字符集:

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

目录
相关文章
|
Oracle 关系型数据库 Linux
解决Linux系统下exp导入EXP-00028异常
问题描述:     在Linux系统中,对某个数据库用户进行exp导出备份时,出现下述异常: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options EXP-00028:  /home/xxxx.dmp д : expdat.dmp > 无法成功导出 解决步骤:     起初是怀疑权限不够,所以对数据库所在目录赋权。
1828 0
|
Oracle 关系型数据库 OLAP
|
SQL Oracle 关系型数据库
[20180224]exp参数RECORDLENGTH.txt
[20180224]exp参数RECORDLENGTH.txt --//虽然已经很少使用exp导致,如果加入direct=y参数,设置RECORDLENGTH参数能加快数据导出.
1576 0
|
Oracle 关系型数据库 数据库
|
关系型数据库 Oracle Linux
|
Oracle 关系型数据库 OLAP
[20170315]11.2.0.4 exp可以导出空表.txt
[20170315]11.2.0.4 exp可以导出空表.txt --链接http://www.itpub.net/thread-2084282-1-1.html,11.
1181 0
|
Shell Windows 关系型数据库
[20160809]exp语法问题.txt
[20160809]exp语法问题.txt http://blog.itpub.net/267265/viewspace-2122890/ --一开始以为上面的语法是shell有关.
918 0
|
Oracle 关系型数据库 OLAP
[20160803]exp/imp语法问题.txt
[20160803]exp/imp语法问题.txt --那个给我解析exp这种语法: 1.环境: SCOTT@book> @ &r/ver1 PORT_STRING                    VERSION        BANNER ...
985 0
|
SQL Oracle 关系型数据库