轉載:修改 oracle xe 預設中文字符集成為:SIMPLIFIED CHINESE_CHINA.ZHS16GBK
修改 oracle xe 預設中文字符集成為:SIMPLIFIED CHINESE_CHINA.ZHS16GBK
2011-05-24 22:55:31| 分類: oracle xe | 標籤: |舉報 |字號大中小 訂閱
用微信 “掃一掃”
將文章分享到朋友圈。
用易信 “掃一掃”
將文章分享到朋友圈。
Oracle XE 執行安裝程式後,很簡單的預設為 SIMPLIFIED CHINESE_CHINA.AL32UTF8 ,通過如下方法可以修改成為 ZHS16GBK 。
----------------------
connect sys as sysdba
shutdown immediate
startup mount
alter system enable restricted session ;
alter system set JOB_QUEUE_PROCESSES=0;
alter system set AQ_TM_PROCESSES=0;
alter database open ;
alter database character set internal_use ZHS16GBK ;
shutdown immediate
startup
connect sys as sysdba
shutdown immediate
startup mount
alter system enable restricted session ;
alter system set JOB_QUEUE_PROCESSES=0;
alter system set AQ_TM_PROCESSES=0;
alter database open ;
alter database character set internal_use ZHS16GBK ;
shutdown immediate
startup
------------------------------------------------------------------------------
連線到:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> connect sys as sysdba
輸入口令:
已連線。
SQL> shutdown immediate;
資料庫已經關閉。
已經解除安裝資料庫。
ORACLE 例程已經關閉。
SQL> startup mount;
ORACLE 例程已經啟動。
Total System Global Area 146800640 bytes
Fixed Size 1286220 bytes
Variable Size 75501492 bytes
Database Buffers 67108864 bytes
Redo Buffers 2904064 bytes
資料庫裝載完畢。
SQL>
SQL> alter system enable restricted session ;
系統已更改。
SQL> alter system set JOB_QUEUE_PROCESSES=0;
系統已更改。
SQL> alter system set AQ_TM_PROCESSES=0;
系統已更改。
SQL> alter database open ;
資料庫已更改。
SQL>
SQL> alter database character set internal_use ZHS16GBK ;
資料庫已更改。
SQL> shutdown immediate
資料庫已經關閉。
已經解除安裝資料庫。
ORACLE 例程已經關閉。
SQL> startup mount;
ORACLE 例程已經啟動。
Total System Global Area 146800640 bytes
Fixed Size 1286220 bytes
Variable Size 75501492 bytes
Database Buffers 67108864 bytes
Redo Buffers 2904064 bytes
資料庫裝載完畢。
SQL>select userenv('language') from dual;
USERENV('LANGUAGE')
----------------------------------------------------
SIMPLIFIED CHINESE_CHINA.ZHS16GBK
重新啟動Oracle服務。
來源:http://wtdyb.blog.163.com/blog/static/1803533022011424105524321/