使用exp时经常会碰到EXP-00091: Exporting questionable statistics。这是因为使用exp工具的客户端NLS_LANG环境变量和数据库字符集不一致造成,需要在倒出时临时修改为一致。
比如数据库字符集为:SIMPLIFIED CHINESE_CHINA.AL32UTF8,客户端NLS_LANG为:SIMPLIFIED CHINESE_CHINA.ZHS16GBK。
如果不修改NLS_LANG,执行exp提示:
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
server uses AL32UTF8 character set (possible charset conversion)
设置NLS_LANG同数据库字符集一致:
$ export NLS_LANG="SIMPLIFIED CHINESE_CHINA.AL32UTF8"
再执行exp,不会再提示该错误:
Export done in AL32UTF8 character set and AL16UTF16 NCHAR character set
|