To prove what you have said when you were young! ——Alexy Young

Follow Your Heart

PM/ACP/PRINCE2……

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

EXP-00091问题现象:在使用exp导出数据的时候总是报EXP-00091: Exporting questionable statistics.用oracle自带的oerr查看解释如下:

[oracle@ocpserver exp_imp]$ oerr exp 00091
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.
[oracle@ocpserver exp_imp]$ 

发现是在exp做statistics的时候提示not be usuable。

解决方法和思考

一、直接关闭statistics

exp jack/oracle STATISTICS=none file='/opt/oracle/exp_imp/jack01.dmp' log='/opt/oracle/exp_imp/jack01.log' tables=jack

二、解决not be usuable的问题;

1、DB字体和OS字体不一致问题

1)数据库字体查询

SQL> SELECT * FROM NLS_DATABASE_PARAMETERS WHERE PARAMETER='NLS_CHARACTERSET';               

PARAMETER               VALUE
------------------------------ ----------------------------------------
NLS_CHARACTERSET           WE8ISO8859P1

SQL> 

2)查询OS字体

[oracle@ocpserver ~]$ echo $NLS_LANG
AMERICAN_AMERICA.AL32UTF8
[oracle@ocpserver ~]$ 

果然不一致!所以,要么修改数据库的字体同步OS字体,要么修改ORACLE环境变量字体适应数据库字体。道理相同,选简单点的,修改临时环境变量数据库用户的环境变量适应数据库变量。

export $NLS_LANG=WE8ISO8859P1

echo $NLS_LANG

修改oracle字符集其他篇章再来描述。

posted on 2013-06-22 22:40  Alexy Young  阅读(1489)  评论(0编辑  收藏  举报

Alexy Young CHASEDREAM