码迷,mamicode.com
首页 > 数据库 > 详细

Oracle修改默认字符编码

时间:2015-08-11 10:17:09      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:oracle 字符集

查看Oracle数据库字符集:

SQL> select userenv(‘language‘) from dual; 

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

 

SQL> shutdown immediate; 

SQL> startup mount;

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 AL32UTF8;

SQL>shutdown immediate; 

SQL>startup;

 

SQL> select userenv(‘language‘) from dual; 

USERENV(‘LANGUAGE‘)
----------------------------------------------------
AMERICAN_AMERICA.AL32UTF8

export NLS_LANG="SIMPLIFIED CHINESE_CHINA.AL32UTF8"  加入oracle用户变量即可

本文出自 “大王好帅” 博客,转载请与作者联系!

Oracle修改默认字符编码

标签:oracle 字符集

原文地址:http://dawang.blog.51cto.com/4927689/1683509

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!