zoukankan      html  css  js  c++  java
  • Oracle修改默认字符编码

    --查看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

      编辑/home/oracle/.bash_profile

      Bash代码

      export NLS_LANG="SIMPLIFIED CHINESE_CHINA.AL32UTF8"

  • 相关阅读:
    javaee_正则表达式基础和常用表达式
    hello2源代码分析
    servlet_filterj简介
    hello1的web.xml解析
    Annotation
    注入(Injection)
    容器(Container)
    Building Tool(Maven/Gradle)
    JavaWeb的历史与发展趋势
    Build Tools
  • 原文地址:https://www.cnblogs.com/zr520/p/5046559.html
Copyright © 2011-2022 走看看