Oracle修改字符集为SIMPLIFIED CHINESE_CHINA.ZHS16GBK

查询字符集

复制代码
select userenv('language') from dual;

修改前字符集为:SIMPLIFIED CHINESE_CHINA.AL32UTF8

SQL> shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.
SQL> startup mount;

ORACLE instance started.

Total System Global Area 5027385344 bytes

Fixed Size 2261888 bytes

Variable Size 1006636160 bytes

Database Buffers 4009754624 bytes

Redo Buffers 8732672 bytes

Database mounted.
SQL> alter system enable restricted session;

System altered.

SQL> alter system set JOB_QUEUE_PROCESSES=0;

System altered.

SQL> alter system set AQ_TM_PROCESSES=0;

System altered.

SQL> alter database open;

Database altered.

SQL> alter database character set internal_use ZHS16GBK;

Database altered.

SQL> shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.
SQL> startup

ORACLE instance started.

Total System Global Area 5027385344 bytes

Fixed Size 2261888 bytes

Variable Size 1006636160 bytes

Database Buffers 4009754624 bytes

Redo Buffers 8732672 bytes

Database mounted.

Database opened.

复制代码
select userenv('language') from dual;
USERENV('LANGUAGE')
----------------------------------------------------
SIMPLIFIED CHINESE_CHINA.ZHS16GBK
相关推荐
雷工笔记3 分钟前
用AI快速解决SQL报错问题1064
数据库·sql
摇滚侠4 分钟前
Public Key Retrieval is not allowed
java·数据库·mysql
猫的玖月9 分钟前
(四)SQL-DDL
数据库·sql·oracle
冷小鱼10 分钟前
Redis 技术全景解析:从缓存基石到 AI 时代的数据引擎
数据库·redis·缓存
猫的玖月11 分钟前
(三)SQL-DML
数据库·sql
田井中律.11 分钟前
neo4j图数据库安装教程(windows)
数据库·neo4j
p@ssword12 分钟前
解决idea-2025.3.3重启项目/停止项目要点两次问题才生效问题
javascript·数据库·intellij-idea
iwS2o90XT12 分钟前
仿写一个简化版Redis,理解内存数据库
数据库·redis·缓存
星马梦缘13 分钟前
数据库第4章 : 中级 SQL
数据库·sql
ZPC821018 分钟前
手眼标定原理
数据库·数码相机·postgresql