檢視oracle服務端編碼:select * from sys.nls_database_parameters;
檢視client編碼:select * from sys.nls_session_parameters;
修改客戶端編碼:
翻開運轉器進入登錄檔編輯
運轉--》regedit
找到hkey_local_machine/
software/
oracle/key_oradb10g_home1
的變數nls_lang的值
simplified chinese_china.zhs16gbk
改動成以下的值
simplified chinese_china.al32utf8(效勞端編碼)
服務端:
1.在你的listener配置檔案中增加例項資訊
sid_list_listener =
(sid_list =
(sid_desc =
(sid_name = pl***tproc)
(oracle_home = f:\oracle\product\10.1.0\db_1)
(program = extproc) ) (
sid_desc =
(sid_name = orcl)
(oracle_home = f:\oracle\product\10.1.0\db_1)
) )
2.修改oracle字符集
sql> startup mount;
sql> alter system enable restricted session;
sql> alter system set job_queue_processes=0;
sql> alter database open;
sql> alter database character set internal_use utf8;
sql> shutdown immediate;
sql> startup
oracle檢視字符集
select userenv('language') from dual;
oracle10g,xe修改可以採用下面的方法
connect system 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 ;
老版本可以參考
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 utf8;
alter database national character set utf8;
shutdown immediate;
startup;
database character set (utf8) and client character set (zhs16gbk) are different.
character set conversion may cause unexpected results.
note: you can set the client character set through the nls_lang environment variable or the nls_lang registry key in
hkey_local_machine\software\oracle\key_oradb11g_home1.
1)c:\documents and settings\administrator>set nls_lang=american_america.al32utf8
2)c:\documents and settings\administrator>set nls_lang=simplified chinese_china.zhs16gbk
simplified chinese_china.zhs16gbk
登錄檔 hkey_local_machine->software->oracle-》key_oradb11g_home1左側的nls_lang
simplified chinese_china.zhs16gbk與simplified chinese_china.al32utf8
oracle 修改字符集
在大型資料庫管理系統中,oracle資料庫不論在資料庫管理能力還是在安全性方面都是無可非議的。國內企業使用oracle資料庫的也較多,但是由於oracle不同版本的字符集,給資料顯示 資料備份 資料轉換等實際工作帶來了不少麻煩。一 字符集引數 一旦資料庫建立後,資料庫的字符集是不能改變的。因此,考慮...
oracle 修改字符集
通過 sql select from nls database parameters 來檢查字符集引數 設定 sql shutdown immediate sql startup mount sql alter system enable restricted session sql alter s...
oracle修改字符集
檢視oracle服務端編碼 select from sys.nls database parameters 檢視client編碼 select from sys.nls session parameters 修改客戶端編碼 翻開運轉器進入登錄檔編輯 運轉 regedit 找到hkey local m...