关于EXP-00091错误的linux和windows解决方法

关于EXP-00091错误的linux和windows解决方法
说明:
EXP-00091: 出口可疑的统计。
EXP-00091: Exporting questionable statistics.

产生:
在数据库的服务器端和客户端字符集不同的情况下,导出(dump)数据库表时,会产生这个错误。
虽然产生这个错误,但好像对导入没有影响。

解决:

服务器端数据的字符集查看方法:
1、打开SQLPLUS,用sys用户登录。
2、执行SELECT * FROM V$NLS_PARAMETERS WHERE PARAMETER='NLS_CHARACTERSET';。
   其中'NLS_CHARACTERSET'必须为大写。

PARAMETER
--------------------
VALUE
--------------------
NLS_CHARACTERSET
ZHS16GBK

(Linux)
在oracle用户的.bash_profile文件加入
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK

(Windows)
1、打开注册表,依次进入HKEY_LOCAL_MACHINE→SOFTWARE→ORACLE→HOME0目录。
2、察看NLS_LANG的值。
3、将其修改为数据库服务器端字符集相同的字符。

临时设定环境变量
set NLS_LANG=AMERICAN_AMERICA.ZHS16GBK

附上exp-91的oracle error message 解決方案說明:

 oerr exp 91
00091, 00000, "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.

 

你可能感兴趣的:(关于EXP-00091错误的linux和windows解决方法)