当前位置:网站首页>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
边栏推荐
- 单元测试系统化讲解之Mockito
- Drools (5): drools basic syntax (3)
- Guava的基础功能与集合
- 请问有人使用oracle xstream 时出现个别capture延迟很大的吗,该如何解决延迟问题呢
- C4D云渲染平台选哪家合作?
- 零号培训平台课程-2、SSRF基础
- ADB instruction sorting
- 闭散列和开散列解决哈希冲突
- MySQL2
- The difference between critical section (the code that accesses critical resources in each thread) and mutex (mutex between processes, shared memory, virtual address)
猜你喜欢
随机推荐
在rhel8上使用soci连接oracle和postgresql和sqlite
软件测试十大必问面试题(附答案和解析)
Pg_relation_size 问题
(2022杭电多校三)1011.Taxi(曼哈顿最值+二分)
The error of QT connecting SQLite database and its modification
2022-07-25 顾宇佳 学习笔记
查看服务器重启前的 dmesg 日志
Firefox browser, when accessing Tencent cloud server, failed to establish a secure connection.
C语言实现猜数字小游戏项目实战(基于srand函数、rand函数,Switch语句、while循环、if条件判据等)
【WSL2】配置连接 USB 设备并使用主机的 USB 摄像头
使用sqlplus显示中文为乱码的解决办法
C4D动画如何提交云渲染农场快速渲染?
Oracle 组合查询
A small cotton padded jacket with air leakage
12. Integer to Roman整数转罗马数字
? Experiment 7 implementation of PHP management system based on MySQL
Instruction set x digital technology accelerates the digital transformation of government and enterprises, and builds Unicorn enterprise alliance in DT field
Routing between VLANs (explanation + verification)
【golang学习笔记2.0】 golang中的数组和切片
Analysis of memory structure of C program code









