Linux中客户端设置编码: export NLS_LANG=”AMERICAN_AMERICA.UTF8”
Oracle数据库修改字符集: [root@oracledb ~]# su - oracle [oracle@oracledb ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Sun Jan 24 10:13:16 2016 Copyright (c) 1982,2013,Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning,OLAP,Data Mining and Real Application Testing options SQL> set linesize 200 SQL> select * from nls_database_parameters where parameter = ‘NLS_CHARACTERSET’;
PARAMETER VALUE
NLS_CHARACTERSET WE8MSWIN1252
SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down.
SQL> startup mount ORACLE instance started. Total System Global Area 2.0444E+10 bytes Fixed Size 2262088 bytes Variable Size 1.0469E+10 bytes Database Buffers 9932111872 bytes Redo Buffers 40267776 bytes Database mounted.
SQL> alter session set sql_trace=true; Session altered.
SQL> alter system enable restricted session; System altered.
SQL> show parameter job_queue_processes;
NAME TYPE VALUE
job_queue_processes integer 1000
SQL> alter system set aq_tm_processes=0; System altered.
SQL> alter database open; Database altered.
SQL> alter database character set INTERNAL_USE AL32UTF8; Database altered.
SQL> select * from nls_database_parameters where parameter = ‘NLS_CHARACTERSET’;
PARAMETER VALUE
NLS_CHARACTERSET AL32UTF8
SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down.
SQL> startup mount ORACLE instance started. Total System Global Area 2.0444E+10 bytes Fixed Size 2262088 bytes Variable Size 1.0469E+10 bytes Database Buffers 9932111872 bytes Redo Buffers 40267776 bytes Database mounted.
SQL> alter system set job_queue_processes=1000; System altered.
SQL> alter database open; Database altered.
SQL> select * from nls_database_parameters where parameter=’NLS_CHARACTERSET’;
PARAMETER VALUE
NLS_CHARACTERSET AL32UTF8
SQL> show parameter job_queue_processes; NAME TYPE VALUE
job_queue_processes integer 1000 (编辑:李大同)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|