当前位置:网站首页>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
边栏推荐
- Talk about the secret of high performance of message queue -- zero copy technology
- 2022/2/13 summary
- Cloud computing in my eyes - PAAS (platform as a service)
- QT qtimer class
- C language implementation of mine sweeping game
- Win10 uses docker to pull the redis image and reports an error read only file system: unknown
- Minecraft plug-in service opening
- Linux binary installation Oracle database 19C
- gocv opencv exit status 3221225785
- Openshift container platform community okd 4.10.0 deployment
猜你喜欢
![[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)

C4D quick start tutorial - C4d mapping

十年开发经验的程序员告诉你,你还缺少哪些核心竞争力?

C nail development: obtain all employee address books and send work notices
![[go practical basis] how to set the route in gin](/img/23/f38d68c4fd238d453b9a7670483002.png)
[go practical basis] how to set the route in gin

汉诺塔问题的求解与分析

C language - Blue Bridge Cup - 7 segment code

数构(C语言--代码有注释)——第二章、线性表(更新版)

Kubernetes deploys Loki logging system

Function ‘ngram‘ is not defined
随机推荐
一篇详解带你再次重现《统计学习方法》——第二章、感知机模型
CSDN Q & A_ Evaluation
Matplotlib剑客行——没有工具用代码也能画图的造型师
Oracle 相关统计
【Go实战基础】gin 如何验证请求参数
Servlet全解:继承关系、生命周期、容器和请求转发与重定向等
[go practical basis] how to bind and use URL parameters in gin
Image transformation, transpose
Minecraft air Island service
Qt的拖动事件
概念到方法,绝了《统计学习方法》——第三章、k近邻法
gocv图片读取并展示
【Go实战基础】gin 如何绑定与使用 url 参数
[go practical basis] how to set the route in gin
长篇总结(代码有注释)数构(C语言)——第四章、串(上)
汉诺塔问题的求解与分析
选择排序和插入排序
History of Web Technology
Leetcode sword finger offer brush questions - day 22
队列管理器running状态下无法查看通道