当前位置:网站首页>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
边栏推荐
- Analysis and solution of a classical Joseph problem
- 西瓜书--第五章.神经网络
- 概念到方法,绝了《统计学习方法》——第三章、k近邻法
- 京东高级工程师开发十年,编写出:“亿级流量网站架构核心技术”
- Minecraft module service opening
- Solution and analysis of Hanoi Tower problem
- Oracle修改表空间名称以及数据文件
- 随笔:RGB图像颜色分离(附代码)
- C language - Blue Bridge Cup - 7 segment code
- Matplotlib剑客行——没有工具用代码也能画图的造型师
猜你喜欢

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

I've taken it. MySQL table 500W rows, but someone doesn't partition it?

Installing Oracle database 19C for Linux

Cloudrev self built cloud disk practice, I said that no one can limit my capacity and speed

我服了,MySQL表500W行,居然有人不做分区?

Cloud computing in my eyes - PAAS (platform as a service)

以字节跳动内部 Data Catalog 架构升级为例聊业务系统的性能优化

C nail development: obtain all employee address books and send work notices

Matplotlib剑客行——没有工具用代码也能画图的造型师

【Go实战基础】gin 如何自定义和使用一个中间件
随机推荐
Count the number of various characters in the string
Sentinel reports failed to fetch metric connection timeout and connection rejection
History of Web Technology
Select sort and insert sort
Troubleshooting and handling of an online problem caused by redis zadd
Oracle 相关统计
1、 QT's core class QObject
Qt QTimer类
寻找链表中值域最小的节点并移到链表的最前面
C#钉钉开发:取得所有员工通讯录和发送工作通知
Oracle related statistics
[go practical basis] how to install and use gin
Win10 uses docker to pull the redis image and reports an error read only file system: unknown
十年開發經驗的程序員告訴你,你還缺少哪些核心競爭力?
C nail development: obtain all employee address books and send work notices
微服务实战|熔断器Hystrix初体验
[go practical basis] gin efficient artifact, how to bind parameters to structures
[go practical basis] how to set the route in gin
C# 百度地图,高德地图,Google地图(GPS) 经纬度转换
There is a problem with MySQL installation (the service already exists)