当前位置:网站首页>The solution of using sqlplus to display Chinese as garbled code
The solution of using sqlplus to display Chinese as garbled code
2022-07-27 07:28:00 【hawanglc】
The company is still using oracle database , occasionally , Only use sqlplus To log in to the database . Refer to the information on the Internet , For solution sqlplus To show the problem that Chinese is garbled .
1、 Use sqlplus Sign in oracle database , View character set
SQL> select userenv('language') from dual;
USERENV('LANGUAGE')
----------------------------------------------------
AMERICAN_AMERICA.ZHS16GBK
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
2、 View the character set of the session logging into the operating system
[[email protected] ~]$ echo $NLS_LANG
AMERICAN_AMERICA.ZHS16GBK
3、 Modify the character set of this session
export NLS_LANG=AMERICAN_AMERICA.UTF8
4、 Log in to the database again
边栏推荐
猜你喜欢

Zabbix: 将收集到值映射为易读的语句

Routing between VLANs (explanation + verification)

Instruction set x digital technology accelerates the digital transformation of government and enterprises, and builds Unicorn enterprise alliance in DT field

VLAN trunk实验

Jmeter: interface automation test - BeanShell compares database data and return data

MySQL2

VLAN trunk experiment

C语言程序设计 | 程序编译与预处理

C4D云渲染平台选哪家合作?

Array method and loop in JS
随机推荐
Port forwarding summary
C4D云渲染平台选哪家合作?
Shell系统学习之Shell条件测试,判断语句和运算符
查看服务器重启前的 dmesg 日志
oracle的触发器的使用举例
Introduction to network -- overview of VLAN and trunk
使用pip命令切换不同的镜像源
js中的数组方法与循环
35. Search insert position
软件测试十大必问面试题(附答案和解析)
MySQL2
MySQL2
Flutter实战-请求封装(一)
Array method and loop in JS
Tcp/ip protocol analysis (tcp/ip three handshakes & four waves + OSI & TCP / IP model)
Cadence(十一)丝印调整和后续事项
请问有人使用oracle xstream 时出现个别capture延迟很大的吗,该如何解决延迟问题呢
端口转发小结
docker安装MySQL8.0.28
Drools (5): drools advanced syntax