zoukankan      html  css  js  c++  java
  • 修改oracle字符集将字符编码WE8MSWIN1252修改为AL32UTF8

    本方法根据我目前掌握的知识只能应用于新库,有数据的库不建议使用

    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    
    Total System Global Area  918618112 bytes
    Fixed Size          2258640 bytes
    Variable Size         549456176 bytes
    Database Buffers      360710144 bytes
    Redo Buffers            6193152 bytes
    Database mounted.
    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>  alter database character set INTERNAL_USE UTF8;
    
    Database altered.
    
    SQL> update props$ set VALUE$='UTF8' where NAME='NLS_NCHAR_CHARACTERSET';
    
    1 row updated.
    
    SQL> commit ;
    
    Commit complete.
    
    SQL> shutdown  immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    
    Total System Global Area  918618112 bytes
    Fixed Size          2258640 bytes
    Variable Size         549456176 bytes
    Database Buffers      360710144 bytes
    Redo Buffers            6193152 bytes
    Database mounted.
    Database opened.
    SQL> show parameter undo_undo_retention
    SQL> show parameter undo_retention

    数据库字符集验证:

  • 相关阅读:
    手机获取ip地址
    CoreGraphics 自定义button
    抽奖及背景图片的透明度设置时连着转盘图片也跟着虚幻解决方法
    多个UIcollctionView,返回个数不对错误
    collectionview item 间距
    判断键盘的高度
    orcle 11g 的安装图解
    clone()详解
    isAssignableFrom ,isInstance , Instanceof() 区别
    三元表达式
  • 原文地址:https://www.cnblogs.com/zjpeng/p/11360762.html
Copyright © 2011-2022 走看看