当前位置:网站首页>Oracle modify database character set
Oracle modify database character set
2022-07-02 09:10:00 【Axi-ZYTao】
1、 Modify database character set , If the logged in client and server are not on the same server , It is suggested that the character sets on both sides should be consistent .
View the client character set :
select * from v$nls_parameters

NLS_LANGUAGE # typeface
NLS_TERRITORY # region
NLS_CHARACTERSET # Character set
environment variable nls_lang It is composed of these three parts : typeface region . Character set
such as :
SIMPLIFIED CHINESE_CHINA.ZHS16GBK
View the server character set :
select sys_context('userenv', 'language') from dual

2、 Modify client character set
Modify registry ,win+R, Input regedit, Enter the registry ; Find the following path HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\ORACLE\KEY_OraDb11g_home2
( Be careful :KEY_OraDb11g_home2 Corresponding to the database you want to modify )
find NLS_LANG,
Right click , Modify numerical data , Modify to client / The character set corresponding to the server ( Use the first step to query ); preservation , close .
3、 Change the server-side character set
Get into oracle Of sqlplus window , Sign in dba;
conn user name as sysdba
Enter the following commands in turn :
shutdown immediate; # stop it database
startup mount; # Reopen database
alter system enable restricted session;
alter system set job_queue_processes=0;
alter system set aq_tm_processes=0;
alter database open;
alter database character set utf8;
alter database character set internal_use utf8; # Cast encoding format , It may cause the Chinese in the database to become garbled
shutdown immediate;
>startup; # restart oracle
————————————————————————————————————
Reference resources :
https://blog.csdn.net/laukicn/article/details/60962052
https://blog.csdn.net/chenwang2018/article/details/75051482
边栏推荐
- Minecraft module service opening
- QT drag event
- Jd.com interviewer asked: what is the difference between using on or where in the left join association table and conditions
- Troubleshooting and handling of an online problem caused by redis zadd
- Matplotlib剑客行——布局指南与多图实现(更新)
- commands out of sync. did you run multiple statements at once
- WSL安装、美化、网络代理和远程开发
- 西瓜书--第六章.支持向量机(SVM)
- Openshift container platform community okd 4.10.0 deployment
- 将一串数字顺序后移
猜你喜欢

Flink-使用流批一体API统计单词数量

Move a string of numbers backward in sequence
![[staff] time sign and note duration (full note | half note | quarter note | eighth note | sixteenth note | thirty second note)](/img/bf/2b0b9c640bdad2c55293f905a22055.jpg)
[staff] time sign and note duration (full note | half note | quarter note | eighth note | sixteenth note | thirty second note)

Jd.com interviewer asked: what is the difference between using on or where in the left join association table and conditions

机器学习之数据类型案例——基于朴素贝叶斯法,用数据辩男女

cmd窗口中中文呈现乱码解决方法

Function ‘ngram‘ is not defined

C language - Blue Bridge Cup - 7 segment code

commands out of sync. did you run multiple statements at once

WSL安装、美化、网络代理和远程开发
随机推荐
Synchronize files using unison
Move a string of numbers backward in sequence
Openshift container platform community okd 4.10.0 deployment
十年開發經驗的程序員告訴你,你還缺少哪些核心競爭力?
What is the future value of fluorite mine of karaqin Xinbao Mining Co., Ltd. under zhongang mining?
C nail development: obtain all employee address books and send work notices
Taking the upgrade of ByteDance internal data catalog architecture as an example, talk about the performance optimization of business system
Function ‘ngram‘ is not defined
[staff] time mark and note duration (staff time mark | full note rest | half note rest | quarter note rest | eighth note rest | sixteenth note rest | thirty second note rest)
Oracle related statistics
[go practical basis] how to bind and use URL parameters in gin
QT qtimer class
Servlet全解:继承关系、生命周期、容器和请求转发与重定向等
2022/2/14 summary
【Go实战基础】gin 如何自定义和使用一个中间件
History of Web Technology
Don't spend money, spend an hour to build your own blog website
C call system sound beep~
win10使用docker拉取redis镜像报错read-only file system: unknown
Mirror protocol of synthetic asset track