当前位置:网站首页>解决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
边栏推荐
- [51 single chip microcomputer traffic light simulation]
- 51 single chip microcomputer stepping motor control system based on LabVIEW upper computer (upper computer code + lower computer source code + ad schematic + 51 complete development environment)
- 教你快速开发一个 狼人杀微信小程序(附源码)
- uniapp image 引入本地图片不显示
- Mui wechat payment pit
- AUTOSAR from introduction to mastery lecture 100 (84) - Summary of UDS time parameters
- 8086 of x86 architecture
- Temperature and humidity monitoring + timing alarm system based on 51 single chip microcomputer (C51 source code)
- Teach you to quickly develop a werewolf killing wechat applet (with source code)
- Three channel ultrasonic ranging system based on 51 single chip microcomputer (timer ranging)
猜你喜欢

Wonderful review | the sixth issue of "source" - open source economy and industrial investment

Pytorch: a pit about the implementation of gradreverselayer

jmeter操作redis

World Book Day: I'd like to recommend these books

Important knowledge of network layer (interview, reexamination, term end)

hbuilderx + uniapp 打包ipa提交App store踩坑记

nodejs + mysql 实现简单注册功能(小demo)

AUTOSAR from introduction to mastery 100 lectures (52) - diagnosis and communication management function unit

100 GIS practical application cases (53) - making three-dimensional image map as the base map of urban spatial pattern analysis

nodeJs + websocket 循环小案例
随机推荐
Go language array operation
Metalama简介4.使用Fabric操作项目或命名空间
拥抱机器视觉新蓝海,冀为好望开启数字经济发展新“冀”遇
Complete project data of UAV apriltag dynamic tracking landing based on openmv (LabVIEW + openmv + apriltag + punctual atom four axes)
Go language: passing slices between functions
8086 of x86 architecture
Navicat远程连接数据库 出现 1130- Host xxx is not allowed to connect to this MySQL server错误
Golang implements a five insurance and one gold calculator with web interface
The accuracy and speed are perfectly balanced, and the latest image segmentation SOTA model is released!!!
Date time type in database
【微信小程序】flex布局使用记录
Wu Enda's programming assignment - logistic regression with a neural network mindset
three. JS text ambiguity problem
Huawei cloud MVP email
100 GIS practical application cases (52) - how to keep the number of rows and columns consistent and aligned when cutting grids with grids in ArcGIS?
(personal) sorting out system vulnerabilities after recent project development
jmeter操作redis
World Book Day: I'd like to recommend these books
Recovering data with MySQL binlog
Important knowledge of network layer (interview, reexamination, term end)