//************************************ 方法:1.查询服务器端配置的字符集。在sqlplus中以dba用户执行: select tab1.aa||'_'||tab2.bb||'.'||tab3.cc from (select VALUE$ aa from sys.props$ where name='NLS_LANGUAGE')tab1,(select VALUE$ bb from sys.props$ where name='NLS_ISO_CURRENCY')tab2,(select VALUE$ cc from sys.props$ where name='NLS_CHARACTERSET')tab3;2.在客户端的注册表HKEY_LOCAL_MACHINE->SOFTWARE->ORACLE->HOME0中,如无系统变量NLS_LANG,则“新建”->“字符串”,重命名为“NLS_LANG”,并赋值为上述查询变量的值(注意引号内的字符应大写),再查看时不需要重启Oracle。 AMERICAN_AMERICA.ZHS16GBK SIMPLIFIED CHINESE_CHINA.ZHS16GBK //************************************《步骤1》 SQL> connect system/manager@ora80; 已连接。SQL> select tab1.aa||'_'||tab2.bb||'.'||tab3.cc from (select VALUE$ aa from sys.props$ where name='N LS_LANGUAGE')tab1,(select VALUE$ bb from sys.props$ where name='NLS_ISO_CURRENCY')tab2,(select VALUE $ cc from sys.props$ where name='NLS_CHARACTERSET')tab3;TAB1.AA||'_'||TAB2.BB||'.'||TAB3.CC ---------------------------------------------------------------------------------------------------- AMERICAN_AMERICA.ZHS16GBK《步骤2》 注册表中将SIMPLIFIED CHINESE_CHINA.ZHS16GBK改为:AMERICAN_AMERICA.ZHS16GBK
方法:1.查询服务器端配置的字符集。在sqlplus中以dba用户执行:
select tab1.aa||'_'||tab2.bb||'.'||tab3.cc from (select VALUE$ aa from sys.props$ where name='NLS_LANGUAGE')tab1,(select VALUE$ bb from sys.props$ where name='NLS_ISO_CURRENCY')tab2,(select VALUE$ cc from sys.props$ where name='NLS_CHARACTERSET')tab3;2.在客户端的注册表HKEY_LOCAL_MACHINE->SOFTWARE->ORACLE->HOME0中,如无系统变量NLS_LANG,则“新建”->“字符串”,重命名为“NLS_LANG”,并赋值为上述查询变量的值(注意引号内的字符应大写),再查看时不需要重启Oracle。
AMERICAN_AMERICA.ZHS16GBK
SIMPLIFIED CHINESE_CHINA.ZHS16GBK
//************************************《步骤1》
SQL> connect system/manager@ora80;
已连接。SQL> select tab1.aa||'_'||tab2.bb||'.'||tab3.cc from (select VALUE$ aa from sys.props$ where name='N
LS_LANGUAGE')tab1,(select VALUE$ bb from sys.props$ where name='NLS_ISO_CURRENCY')tab2,(select VALUE
$ cc from sys.props$ where name='NLS_CHARACTERSET')tab3;TAB1.AA||'_'||TAB2.BB||'.'||TAB3.CC
----------------------------------------------------------------------------------------------------
AMERICAN_AMERICA.ZHS16GBK《步骤2》
注册表中将SIMPLIFIED CHINESE_CHINA.ZHS16GBK改为:AMERICAN_AMERICA.ZHS16GBK