1/5用友股份-LE支持服务业务本部技术方案--《在EXP导出时出现EXP-00091错误的解决方案》建立日期:2013-10-20修改日期:xxxx-xx-xx文档属性:客户文控编号:LE-DY-JS-2013-01322/5文档控制创建记录适用范围审阅人日期审阅签字所属部门发布范围发布人姓名所属部门发布时间内部员工伙伴客户日期作者所属部门邮件地址版本2013-10-20冯建民技术支持部V1.0版本领域模块备注3/5目录在EXP导出时出现EXP-00091错误的解决方案....................................................4一、问题描述............................................................................................................4二、问题分析............................................................................................................4三、解决方法与步骤................................................................................................54/5在EXP导出时出现EXP-00091错误的解决方案一、问题描述EXP-00091:Exportingquestionablestatistics.二、问题分析查看EXP-00091的oracleerrormessage说明:00091,00000,"Exportingquestionablestatistics."//*Cause:Exportwasableexportstatistics,butthestatisticsmaynotbe//usuable.Thestatisticsarequestionablebecauseoneormoreof//thefollowinghappenedduringexport:arowerroroccurred,client//charactersetorNCHARSETdoesnotmatchwiththeserver,aquery//clausewasspecifiedonexport,onlycertainpartitionsor//subpartitionswereexported,orafatalerroroccurredwhile//processingatable.//*Action:Toexportnon-questionablestatistics,changetheclientcharacter//setorNCHARSETtomatchtheserver,exportwithnoqueryclause,//exportcompletetables.Ifdesired,importparameterscanbe//suppliedsothatonlynon-questionablestatisticswillbeimported,//andallquestionablestatisticswillberecalculated.在我们做exp的过程中可能经常会遇到EXP-00091:Exportingquestionablestatistics.这样的EXP信息,其实它就是exp的errormessage,它产生的原因是因为我们exp工具所在的环境变量中的NLS_LANG与DB中的NLS_CHARACTERSET不一致。5/5三、解决方法与步骤⑴我们来查看DB中的NLS_CHARACTERSET的值(提供两种方法):select*fromnls_database_parameterstwheret.parameter='NLS_CHARACTERSET';PARAMETERVALUE----------------------------------------NLS_CHARACTERSETAL32UTF8或者select*fromv$nls_parameterswhereparameter='NLS_CHARACTERSET';PARAMETERVALUE----------------------------------------NLS_CHARACTERSETAL32UTF8(2)根据第1步查出的NLS_CHARACTERSET(AL32UTF8)來设定exp的环境变量:WINNT>setNLS_LANG=AMERICAN_AMERICA.AL32UTF8LINUX>exportNLS_LANG=AMERICAN_AMERICA.AL32UTF8(3)再用EXP导出数据