当前位置:网站首页>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
边栏推荐
- gocv拆分颜色通道
- Loadbalancer dynamically refreshes Nacos server
- Shengshihaotong and Guoao (Shenzhen) new energy Co., Ltd. build the charging pile industry chain
- 「Redis源码系列」关于源码阅读的学习与思考
- Gocv split color channel
- 长篇总结(代码有注释)数构(C语言)——第四章、串(上)
- Programmers with ten years of development experience tell you, what core competitiveness do you lack?
- Pdf document of distributed service architecture: principle + Design + practice, (collect and see again)
- Introduction to the basic concept of queue and typical application examples
- 队列管理器running状态下无法查看通道
猜你喜欢
[go practical basis] how to bind and use URL parameters in gin
[go practical basis] how to set the route in gin
commands out of sync. did you run multiple statements at once
"Redis source code series" learning and thinking about source code reading
Redis zadd导致的一次线上问题排查和处理
远程连接IBM MQ报错AMQ4036解决方法
[staff] time sign and note duration (full note | half note | quarter note | eighth note | sixteenth note | thirty second note)
[staff] common symbols of staff (Hualian clef | treble clef | bass clef | rest | bar line)
History of Web Technology
Cloudrev self built cloud disk practice, I said that no one can limit my capacity and speed
随机推荐
Jingdong senior engineer has developed for ten years and compiled "core technology of 100 million traffic website architecture"
gocv拆分颜色通道
【Go实战基础】gin 如何绑定与使用 url 参数
gocv图片裁剪并展示
MYSQL安装出现问题(The service already exists)
西瓜书--第六章.支持向量机(SVM)
[go practical basis] how to set the route in gin
Installing Oracle database 19C for Linux
Leetcode sword finger offer brush questions - day 23
gocv图片读取并展示
1、 QT's core class QObject
知识点很细(代码有注释)数构(C语言)——第三章、栈和队列
QT qtimer class
C nail development: obtain all employee address books and send work notices
Gocv image cutting and display
一篇详解带你再次重现《统计学习方法》——第二章、感知机模型
Oracle delete tablespace and user
Right click menu of QT
微服务实战|手把手教你开发负载均衡组件
图像变换,转置