如何查询和修改Oracle的字符集

查询Oracle的字符集 修改字符集 这个不是很常用,特此记一下。

查询Oracle的字符集

方法一



SQL> select userenv(’language’) from dual;

USERENV(’LANGUAGE’)

—————————————————-

AMERICAN_AMERICA.WE8ISO8859P1





方法二



SQL> select * from v$nls_parameters;

PARAMETER VALUE

—————————————————————- —————————————————————-

NLS_LANGUAGE AMERICAN

NLS_TERRITORY AMERICA

NLS_CURRENCY $

NLS_ISO_CURRENCY AMERICA

NLS_NUMERIC_CHARACTERS .,

NLS_CALENDAR GREGORIAN

NLS_DATE_FORMAT DD-MON-RR

NLS_DATE_LANGUAGE AMERICAN

NLS_CHARACTERSET WE8ISO8859P1

NLS_SORT BINARY

NLS_TIME_FORMAT HH.MI.SSXFF AM

NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM

NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR

NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR

NLS_DUAL_CURRENCY $

NLS_NCHAR_CHARACTERSET AL16UTF16

NLS_COMP BINARY

NLS_LENGTH_SEMANTICS BYTE

NLS_NCHAR_CONV_EXCP FALSE







修改字符集

connect system/oracle10g as sysdba;

update props$ set value$=’UTF8′ where name=’NLS_CHARACTERSET’;

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 UTF8;

alter database national character set internal_use UTF8;

shutdown immediate;

startup;

这个不是很常用,特此记一下。

你可能感兴趣的:(oracle,Date,calendar,database,System,character)