首页 > 系统服务 > 详细

linux下oracl字符集修改(WE8ISO8859P1 --> ZHS16GBK)

时间:2018-05-12 16:42:46      阅读:238      评论:0      收藏:0      [点我收藏+]
***************************************************************** 
*  更改字符集步骤方法(WE8ISO8859P1 --> ZHS16GBK)            * 
*****************************************************************
SQL> select userenv(language) from dual;

USERENV(LANGUAGE)
--------------------------------------------------------------------------------
AMERICAN_AMERICA.WE8MSWIN1252

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.

SQL> startup mount
ORACLE instance started.
Total System Global Area  845348864 bytes
Fixed Size      1339796 bytes
Variable Size    499125868 bytes
Database Buffers   339738624 bytes
Redo Buffers      5144576 bytes
Database mounted.

SQL> alter session set sql_trace=true;
Session altered.

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  845348864 bytes
Fixed Size      1339796 bytes
Variable Size    499125868 bytes
Database Buffers   339738624 bytes
Redo Buffers      5144576 bytes
Database mounted.
Database opened.

SQL> conn test/test
Connected.

SQL> select userenv(language) from dual;

USERENV(LANGUAGE)
----------------------------------------------------
AMERICAN_AMERICA.ZHS16GBK

SQL> select 你好 from dual;

你
----
你好

 

linux下oracl字符集修改(WE8ISO8859P1 --> ZHS16GBK)

原文:https://www.cnblogs.com/wangzihong/p/9029061.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!