Home  >  Article  >  Database  >  oracle中文乱码解决的办法

oracle中文乱码解决的办法

WBOY
WBOYOriginal
2016-06-07 17:56:031239browse

oracle中文乱码解决的办法,需要的朋友可以参考一下

服务器为windows server 2003,正常安装完oracle客户端后,插入数据时,发现中文都是?。

异常:

PLL/SQL中输入select userenv('LANGUAGE') From Dual,结果为AMERICAN_AMERICA.US7ASCII,

注册表中[HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraClient10g_home]下的
NLS_LANG为SIMPLIFIED CHINESE_CHINA.ZHS16GBK。

解决方法:

我的电脑---右击---属性---高级---环境变量---系统变量---新建

变量名:NLS_LANG

变量值:SIMPLIFIED CHINESE_CHINA.ZHS16GBK,确定后再试试,OK。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn