注意三者的字符

1.dmp文件,可用cat aiki.dmp |od -x|head -1|awk '{print $2 $3}'|cut -c 3-6  如结果:0345  再select nls_charset_name(to_number('0354','xxxx')) from dual; //45倒过来

SQL> select nls_charset_name(to_number('0354','xxxx')) from dual;



NLS_CHARSET_NAME(TO_NUMBER('0354','XXXX'


----------------------------------------


ZHS16GBK



2.客户端字符(linux):echo $NLS_LANG  (设为与服务端一样),可加在.bash_profile(export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK)

3.服务端字符SQL> select name,value$ from props$ where name='NLS_CHARACTERSET';

NAME
------------------------------
VALUE$
--------------------------------------------------------------------------------
NLS_CHARACTERSET
ZHS16GBK


4.OK正常


备注:问号可按以上步骤处理,如果检查时发现出现口口,那么是你用的连接软件字符集没有设好,修改相应的即可;

如当用putty(utf-8)连接时出现这个问题,后改用securecrt即OK(字符集多);