oracle數據庫字符集查詢
阿新 • • 發佈:2017-06-30
oracle數據 eric ica nls_sort nbsp format param binary 2.0 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_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 11.2.0.2.0
1>數據庫服務器字符集
select * from nls_database_parameters,其來源於props$,是表示數據庫的字符集。
查詢結果如下
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET AL32UTF8
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
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_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 11.2.0.2.0
1.1>NLS_CHARACTERSET和NLS_NCHAR_CHARACTERSET的區別
NLS_CHARACTERSET:是數據庫字符集;
NLS_NCHAR_CHARACTERSET:是國家字符集;
oracle中有兩大類字符型數據:
VARCHAR2:是按照數據庫字符集來存儲數據。
NVARCHAR2:是按照國家字符集存儲數據的。
CHAR:是按照數據庫字符集來存儲數據。
NCHAR:是按照國家字符集存儲數據的。
2>客戶端字符集環境
select * from nls_instance_parameters,其來源於v$parameter,
oracle數據庫字符集查詢