zoukankan      html  css  js  c++  java
  • exp导出之EXP-00091解决方法

    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字符集其他篇章再来描述。

  • 相关阅读:
    PBI REFRESH ERROR
    PTE
    Python
    Chromedriver下载地址
    python pip安装selenium时报错, ..has requirement websocket-client==0.48.0, but you'll have websocket -client 0.57.0 which is incoopatibale.
    在打开方式里只有wps,找不到默认的MS OFFICE办公PPT打开方式 解决方案
    POWER BI
    POWER BI
    [未解决]POWER BI
    POWER BI 生成日期表
  • 原文地址:https://www.cnblogs.com/alexy/p/exp00091.html
Copyright © 2011-2022 走看看