首页 > 数据库技术 > 详细

修改ORACLE字符集

时间:2014-02-22 15:30:36      阅读:386      评论:0      收藏:0      [点我收藏+]

修改oracle字符集

原来安装oracle总是不注意,把字符集按默认安装了,导致应用显示不对,在网上找了一些解决办法,但都报错,但

SQL> ALTER DATABASE character set INTERNAL_USE ZHS16CGB231280;

# 使用INTERNAL_USE可以跳过超集的检查,ALTER DATABASE character set INTERNAL_USE

加这个以后,就可以彻底解决修改的问题,即使报错也能修改,下面是完整的例子.

修改Oracle10g数据库字符集

SQL> connect sys/oracle as sysdba

SQL> startup mount

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> set linesize 120;

SQL> alter database character set zhs16gbk;

alter database character set zhs16gbk

*

ERROR at line 1:

ORA-12712: new character set must be a superset of old character set

SQL> ALTER DATABASE character set INTERNAL_USE ZHS16CGB231280;

# 使用INTERNAL_USE可以跳过超集的检查,ALTER DATABASE character set INTERNAL_USE

Database altered.

SQL> shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> STARTUP

SQL> select name,value$ from props$ where name like ‘%NLS%‘;


修改ORACLE字符集

原文:http://hehehe.blog.51cto.com/2506576/1361693

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