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

  • 相关阅读:
    查看硬件的一些命令
    InfluxDB部署和使用
    利用mysql时间函数监控表中有没有当天数据
    js基础_for循环(学习笔记)
    JS基础_运算符的优先级
    JS基础_相等运算符
    Apache安装与卸载(win10系统测试)
    MySQL --添加环境变量教程
    MySQL安装教程及遇到的错误提示
    如何完全卸载MySQL
  • 原文地址:https://www.cnblogs.com/alexy/p/exp00091.html
Copyright © 2011-2022 走看看