zoukankan      html  css  js  c++  java
  • linux下oracl字符集修改(WE8ISO8859P1 --> ZHS16GBK)

    ***************************************************************** 
    *  更改字符集步骤方法(WE8ISO8859P1 --> ZHS16GBK)            * 
    *****************************************************************
    SQL> select userenv('language') from dual;
    
    USERENV('LANGUAGE')
    --------------------------------------------------------------------------------
    AMERICAN_AMERICA.WE8MSWIN1252
    
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area  845348864 bytes
    Fixed Size      1339796 bytes
    Variable Size    499125868 bytes
    Database Buffers   339738624 bytes
    Redo Buffers      5144576 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 ZHS16GBK;
    Database altered.
    
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    
    SQL> startup
    ORACLE instance started.
    Total System Global Area  845348864 bytes
    Fixed Size      1339796 bytes
    Variable Size    499125868 bytes
    Database Buffers   339738624 bytes
    Redo Buffers      5144576 bytes
    Database mounted.
    Database opened.
    
    SQL> conn test/test
    Connected.
    
    SQL> select userenv('language') from dual;
    
    USERENV('LANGUAGE')
    ----------------------------------------------------
    AMERICAN_AMERICA.ZHS16GBK
    
    SQL> select '你好' from dual;
    
    '你
    ----
    你好
  • 相关阅读:
    解决Chrome 70及以上版本的证书问题:Failed to load resource: net::ERR_CERT_SYMANTEC_LEGACY
    VUE使用axios数据请求时报错 TypeError: Cannot set property 'xxxx' of undefined 的解决办法
    生辰八字推算
    OneNote巧妙设置标题
    Kibana安装与介绍
    Logstash入门简介
    Metricbeat入门简介
    FileBeats入门简介
    ElasticSearch集群部署
    ElasticSearch安装与介绍
  • 原文地址:https://www.cnblogs.com/wangzihong/p/9029061.html
Copyright © 2011-2022 走看看