当前位置:网站首页>Solve the problem of database insert data garbled in PL / SQL developer
Solve the problem of database insert data garbled in PL / SQL developer
2020-11-06 01:23:00 【itread01】
I've been studying recently SSM Project development , be used oracle Database ,
Using management software PL/sql developer Record garbled code when inserting data into database table .
The results are as follows :
You can see that the Chinese materials are all garbled ??????? Question mark ,
Read the solutions of the big guys on the Internet , It's because of oracle Server side character encoding and Oracle Client character encoding inconsistency caused by .
( But my oracle Server side and Oracle The client character encoding is the same , I wonder , But the same solution is used , Get it done !!!)
First step :
Log in PL/sql developer, Check Oracle Server side character encoding , use
select userenv('language') from dual;
The following results are obtained :
It turns out :
SIMPLIFIED CHINESE_CHINA.ZHS16GBK
The second step :
Look at Oracle Client character encoding , use
select * from V$NLS_PARAMETERS;
The following results are obtained :
You can see my oracle Server side and Oracle The client character encoding is the same , It doesn't matter. Keep looking down
The third step :
stay windows Zhongchuang Build one called “NLS_LANG” System environment variables of ,
Set the value to “SIMPLIFIED CHINESE_CHINA.ZHS16GBK”, Follow oracle Server side character encoding is consistent , And then restart pl/sql developer
Can solve the problem of garbled code !!!
Add 1:( Problem solving can ignore the following )
After the students who have the same problem with me finish the above steps , Login again PL/Sql developer The data still shows garbled code .
Then the solution is :
Delete the table , Please delete the table , Instead of just deleting the data in the table ,
And then rebuild the watch , Re insert data , Find the problem and solve it !!!
Add 2: Because it's using idea Do development , So it's direct use idea in database Connect to the database , And then rebuild the watch , Insert data ,
Direct use PL/Sql developer Never tried , It should also be possible .
&n
版权声明
本文为[itread01]所创,转载请带上原文链接,感谢
边栏推荐
猜你喜欢

Filecoin最新动态 完成重大升级 已实现四大项目进展!

Subordination judgment in structured data

Using Es5 to realize the class of ES6

IPFS/Filecoin合法性:保护个人隐私不被泄露

一篇文章教会你使用HTML5 SVG 标签

Flink的DataSource三部曲之二:内置connector

一篇文章带你了解CSS3圆角知识

100元扫货阿里云是怎样的体验?

Existence judgment in structured data

Character string and memory operation function in C language
随机推荐
Don't go! Here is a note: picture and text to explain AQS, let's have a look at the source code of AQS (long text)
IPFS/Filecoin合法性:保护个人隐私不被泄露
ES6学习笔记(二):教你玩转类的继承和类的对象
Skywalking series blog 2-skywalking using
vue任意关系组件通信与跨组件监听状态 vue-communication
[C / C + + 1] clion configuration and running C language
Network security engineer Demo: the original * * is to get your computer administrator rights! 【***】
5.4 static resource mapping
Examples of unconventional aggregation
Arrangement of basic knowledge points
git rebase的時候捅婁子了,怎麼辦?線上等……
Troubleshooting and summary of JVM Metaspace memory overflow
How long does it take you to work out an object-oriented programming interview question from Ali school?
Using Es5 to realize the class of ES6
Use of vuepress
Want to do read-write separation, give you some small experience
(2)ASP.NET Core3.1 Ocelot路由
H5 makes its own video player (JS Part 2)
Group count - word length
Real time data synchronization scheme based on Flink SQL CDC