1/5用友股份-LE支持服务业务本部技术方案--《在EXP导出时出现EXP-00091错误的解决过程》建立日期:2013-07-01修改日期:xxxx-xx-xx文档属性:客户文控编号:LE-DY-JS-2013-00652/5文档控制创建记录适用范围审阅人日期审阅签字所属部门发布范围内部员工伙伴客户发布人姓名所属部门发布时间日期作者所属部门邮件地址版本2013-7-01冯建民产品支持部V1.0版本领域模块备注3/5目录在EXP导出时,出现EXP-00091错误的解决过程..................................................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二、解决方法与步骤:(1)我们来查看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导出数据