Home > Database > Mysql Tutorial > body text

oracle中文乱码解决的办法

WBOY
Release: 2016-06-07 17:56:03
Original
1254 people have browsed it

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。

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!