当前位置:网站首页>解决Oracle中文乱码的问题
解决Oracle中文乱码的问题
2022-04-23 13:06:00 【ArchieSean】
博主名取自《小羊肖恩》中的小羊肖恩,名字为:肖恩,音译为Sean,自己取的姓:阿奇,为符合我们的阅读习惯,连起来组成为ArchieSean。博主志在将博客打造成为个人线上笔记的技术栈,方便自己也方便他人。如博客中有任何错误,请各位指出,谢谢大家。
近日,我在玩Oracle时,向数据库中插入数据,查询出来,中文显示为?????,为解决这个问题,我奔走于各个网站之间,寻求解决办法,最终得以解决,此处总结一下此次的解决过程。
- 使用PL/SQL执行以下sql,查看Oracle使用的字符集
Select userenv('language') from dual;
2. 添加本地电脑的环境变量
NLS_LANG
SIMPLIFIED CHINESE_CHINA.ZHS16GBK
- 此时,需要将用户下表的数据删除,重新插入数据,才会显示正常中文
我在修改之时犯了一个错误,我添加了环境变量之后,直接查询没有任何变化,我新插入一条数据之后,再查询新查询的数据中文显示正常,删除掉之前的乱码的数据即可。
如有任何问题,欢迎留言。
版权声明
本文为[ArchieSean]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_41964942/article/details/107399683
边栏推荐
- 7_ The cell type scores obtained by addmodule and gene addition method are compared in space
- Go language array operation
- There is no need to crack the markdown editing tool typora
- Record some NPM related problems (messy records)
- 精度、速度完美平衡,最新图像分割SOTA模型重磅发布!!!
- Common problems of unity (1)
- Async void provoque l'écrasement du programme
- The use of dcast and melt in R language is simple and easy to understand
- Learning notes of AMBA protocol
- 7_Addmodule和基因加和法add 得到的细胞类型打分在空间上空转对比
猜你喜欢
The accuracy and speed are perfectly balanced, and the latest image segmentation SOTA model is released!!!
Custom nail robot alarm
Servlet监听器&过滤器介绍
AUTOSAR from introduction to mastery lecture 100 (84) - Summary of UDS time parameters
three.js文字模糊问题
Record some NPM related problems (messy records)
数据库中的日期时间类型
Customize the shortcut options in El date picker, and dynamically set the disabled date
[51 single chip microcomputer traffic light simulation]
100 GIS practical application cases (51) - a method for calculating the hourly spatial average of NC files according to the specified range in ArcGIS
随机推荐
Packet capturing and sorting -- TCP protocol [8]
初鉴canvas,展示个小小的小案例
Timing role in the project
Golang realizes regular matching: the password contains at least one digit, letter and special character, and the length is 8-16
Complete project data of UAV apriltag dynamic tracking landing based on openmv (LabVIEW + openmv + apriltag + punctual atom four axes)
Temperature and humidity monitoring + timing alarm system based on 51 single chip microcomputer (C51 source code)
[Technical Specification]: how to write technical documents?
JMeter operation redis
Go language array operation
Melt reshape decast long data short data length conversion data cleaning row column conversion
Proteus 8.10 installation problem (personal test is stable and does not flash back!)
async void 導致程序崩潰
ECDSA signature verification principle and C language implementation
AUTOSAR from introduction to mastery 100 lectures (50) - AUTOSAR memory management series - ECU abstraction layer and MCAL layer
Get the punch in record of nailing attendance machine
The first lesson is canvas, showing a small case
(personal) sorting out system vulnerabilities after recent project development
100 lectures on practical application cases of Excel (VIII) - report connection function of Excel
拥抱机器视觉新蓝海,冀为好望开启数字经济发展新“冀”遇
Design of body fat detection system based on 51 single chip microcomputer (51 + OLED + hx711 + US100)