当前位置:网站首页>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
边栏推荐
- 我服了,MySQL表500W行,居然有人不做分区?
- QT drag event
- 2022/2/14 summary
- Essay: RGB image color separation (with code)
- Matplotlib剑客行——容纳百川的艺术家教程
- 【Go实战基础】gin 如何设置路由
- Programmers with ten years of development experience tell you, what core competitiveness do you lack?
- Redis sorted set data type API and application scenario analysis
- Tensorflow2 keras classification model
- Kubernetes deploys Loki logging system
猜你喜欢
盘点典型错误之TypeError: X() got multiple values for argument ‘Y‘
查看was发布的应用程序的端口
Multi version concurrency control mvcc of MySQL
机器学习实战:《美人鱼》属于爱情片还是动作片?KNN揭晓答案
【Go实战基础】如何安装和使用 gin
The channel cannot be viewed when the queue manager is running
Jd.com interviewer asked: what is the difference between using on or where in the left join association table and conditions
Matplotlib swordsman Tour - an artist tutorial to accommodate all rivers
数构(C语言--代码有注释)——第二章、线性表(更新版)
Complete solution of servlet: inheritance relationship, life cycle, container, request forwarding and redirection, etc
随机推荐
Minecraft install resource pack
Flink - use the streaming batch API to count the number of words
【Go实战基础】gin 如何设置路由
Redis安装部署(Windows/Linux)
Solution and analysis of Hanoi Tower problem
微服务实战|熔断器Hystrix初体验
【Go实战基础】gin 高效神器,如何将参数绑定到结构体
"Redis source code series" learning and thinking about source code reading
NPOI 导出Word 字号对应
Essay: RGB image color separation (with code)
双非本科生进大厂,而我还在底层默默地爬树(上)
C4D quick start tutorial - C4d mapping
Pyspark de duplication dropduplicates, distinct; withColumn、lit、col; unionByName、groupBy
C language implementation of mine sweeping game
一个经典约瑟夫问题的分析与解答
Matplotlib剑客行——没有工具用代码也能画图的造型师
Installing Oracle database 19C RAC on Linux
聊聊消息队列高性能的秘密——零拷贝技术
Troubleshooting and handling of an online problem caused by redis zadd
Cloudreve自建云盘实践,我说了没人能限制得了我的容量和速度