当前位置:网站首页>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
边栏推荐
- [go practical basis] how to bind and use URL parameters in gin
- Matplotlib剑客行——初相识Matplotlib
- gocv opencv exit status 3221225785
- Npoi export word font size correspondence
- Image transformation, transpose
- Qt——如何在QWidget中设置阴影效果
- C# 百度地图,高德地图,Google地图(GPS) 经纬度转换
- 使用递归函数求解字符串的逆置问题
- 小米电视不能访问电脑共享文件的解决方案
- WSL安装、美化、网络代理和远程开发
猜你喜欢

聊聊消息队列高性能的秘密——零拷贝技术

C#钉钉开发:取得所有员工通讯录和发送工作通知

【Go实战基础】gin 如何自定义和使用一个中间件

Function ‘ngram‘ is not defined

查看was发布的应用程序的端口

The channel cannot be viewed when the queue manager is running

Shengshihaotong and Guoao (Shenzhen) new energy Co., Ltd. build the charging pile industry chain

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

Flink - use the streaming batch API to count the number of words

How to realize asynchronous programming in a synchronous way?
随机推荐
【Go实战基础】如何安装和使用 gin
选择排序和插入排序
Multi version concurrency control mvcc of MySQL
C4D quick start tutorial - Chamfer
WSL installation, beautification, network agent and remote development
远程连接IBM MQ报错AMQ4036解决方法
Complete solution of servlet: inheritance relationship, life cycle, container, request forwarding and redirection, etc
概率还不会的快看过来《统计学习方法》——第四章、朴素贝叶斯法
【Go实战基础】gin 如何验证请求参数
京东高级工程师开发十年,编写出:“亿级流量网站架构核心技术”
Shengshihaotong and Guoao (Shenzhen) new energy Co., Ltd. build the charging pile industry chain
Solution and analysis of Hanoi Tower problem
Taking the upgrade of ByteDance internal data catalog architecture as an example, talk about the performance optimization of business system
Tensorflow2 keras classification model
AMQ6126问题解决思路
统计字符串中各类字符的个数
以字节跳动内部 Data Catalog 架构升级为例聊业务系统的性能优化
「面试高频题」难度大 1.5/5,经典「前缀和 + 二分」运用题
C call system sound beep~
[staff] common symbols of staff (Hualian clef | treble clef | bass clef | rest | bar line)