当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
猜你喜欢
多机器人行情共享解决方案
How do the general bottom buried points do?
熬夜总结了报表自动化、数据可视化和挖掘的要点,和你想的不一样
Natural language processing - BM25 commonly used in search
Grouping operation aligned with specified datum
How long does it take you to work out an object-oriented programming interview question from Ali school?
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)
In order to save money, I learned PHP in one day!
The road of C + + Learning: from introduction to mastery
Use of vuepress
随机推荐
Using Es5 to realize the class of ES6
Using consult to realize service discovery: instance ID customization
Synchronous configuration from git to consult with git 2consul
至联云解析:IPFS/Filecoin挖矿为什么这么难?
5.5 controlleradvice notes - SSM in depth analysis and project practice
Wechat applet: prevent multiple click jump (function throttling)
Leetcode's ransom letter
Summary of common algorithms of binary tree
vue-codemirror基本用法:实现搜索功能、代码折叠功能、获取编辑器值及时验证
6.5 request to view name translator (in-depth analysis of SSM and project practice)
The road of C + + Learning: from introduction to mastery
从海外进军中国,Rancher要执容器云市场牛耳 | 爱分析调研
PHP应用对接Justswap专用开发包【JustSwap.PHP】
Common algorithm interview has been out! Machine learning algorithm interview - KDnuggets
I'm afraid that the spread sequence calculation of arbitrage strategy is not as simple as you think
JVM memory area and garbage collection
教你轻松搞懂vue-codemirror的基本用法:主要实现代码编辑、验证提示、代码格式化
IPFS/Filecoin合法性:保护个人隐私不被泄露
Classical dynamic programming: complete knapsack problem
Windows 10 tensorflow (2) regression analysis of principles, deep learning framework (gradient descent method to solve regression parameters)