首页 > 数据库 > mysql教程 > Oracle修改默认字符编码

Oracle修改默认字符编码

WBOY
发布: 2016-06-07 14:55:17
原创
1168 人浏览过

--查看Oracle数据库字符集: Sql代码 select userenv('language') from dual; 查询结果: SIMPLIFIED CHINESE_CHINA.AL32UTF8 --修改oracle数据库字符集:(在SQL Plus中) Sql代码 sql conn / as sysdba; sql shutdown immediate; database closed. databas

  --查看Oracle数据库字符集:

  Sql代码

  select userenv('language') from dual;

  查询结果:

  SIMPLIFIED CHINESE_CHINA.AL32UTF8

  --修改oracle数据库字符集:(在SQL Plus中)

  Sql代码

  sql> conn / as sysdba;

  sql> shutdown immediate;

  database closed.

  database dismounted.

  oracle instance shut down.

  sql> startup mount;

  oracle instance started.

  total system global area 135337420 bytes

  fixed size 452044 bytes

  variable size 109051904 bytes

  database buffers 25165824 bytes

  redo buffers 667648 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 AL32UTF8;

  sql> shutdown immediate;

  sql> startup;

  修改oracle用户的NLS_LANG

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板