ALTER DATABASE character set INTERNAL_USE ZHS16GBK; 

 ALTER DATABASE CHARACTER SET ZHS16GBK; 

oracle修改字符编码    1

1    打开命令窗口    2

2    查看当前字符编码    3

3    执行命令    4

 

 

oracle修改字符编码

 

  1. 打开命令窗口

sqlplus shybt/shybt@localhost:1521/orcl

 

 

  1. 查看当前字符编码

    1. select userenv('language') from dual;

 

 

 

 

 

  1. 执行命令

 

 

 

 

 

 

  1. shutdown immediate;

  1. startup mount
  2. ALTER SYSTEM ENABLE RESTRICTED SESSION;
  3. ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;

 

 

 

 

 

  1. ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;

 

  1. ALTER SYSTEM SET AQ_TM_PROCESSES=0;
  2. alter database open;

 

 

  1. ALTER DATABASE character set INTERNAL_USE AL32UTF8;
  2. shutdown immediate
  3. startup

执行成功

posted on 2017-09-12 06:40  天之城  阅读(2078)  评论(0编辑  收藏  举报