SQL> select * from v$version;
BANNER
Oracle Database
PL/SQL Release
CORE
TNS for Linux: Version
NLSRTL Version
create table player (id number(
確認數據庫字符集 american_america
SQL> select name
NAME VALUE$
DICT
DEFAULT_TEMP_TABLESPACE TEMP
DEFAULT_PERMANENT_TABLESPACE USERS
DEFAULT_EDITION ORA$BASE
Flashback Timestamp TimeZone GMT
TDE_MASTER_KEY_ID
DEFAULT_TBS_TYPE SMALLFILE
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS
NLS_CHARACTERSET AL
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH
NLS_TIMESTAMP_FORMAT DD
NLS_TIME_TZ_FORMAT HH
NLS_TIMESTAMP_TZ_FORMAT DD
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL
NLS_RDBMS_VERSION
GLOBAL_DB_NAME ORA
EXPORT_VIEWS_VERSION
WORKLOAD_CAPTURE_MODE
WORKLOAD_REPLAY_MODE
DBTIMEZONE
SQL>
深入確認字符集
SELECT DISTINCT (NLS_CHARSET_NAME(CHARSETID)) CHARACTERSET
DECODE(TYPE#
DECODE(CHARSETFORM
DECODE(CHARSETFORM
DECODE(CHARSETFORM
DECODE(CHARSETFORM
FROM SYS
WHERE CHARSETFORM IN (
AND TYPE# IN (
確認操作系統字符集設置
[ora
SQL> insert into player values (
SQL> insert into player values (
SQL> set pagesize
SQL> select * from player;
ID NAME
SQL>
SQL> select * from player order by nlssort(name
ID NAME
SQL> select * from player order by nlssort(name
ID NAME
SQL> select * from player order by nlssort(name
ID NAME
囧
SQL> select * from v$version;
BANNER
Oracle Database
PL/SQL Release
CORE
TNS for Linux: Version
NLSRTL Version
SQL> select * from player order by nlssort(name
ID NAME
SQL> select * from player order by nlssort(name
ID NAME
SQL> select * from player order by nlssort(name
ID NAME
SQL>
這個結果似乎比較符合預期結果
NLS_SORT=SCHINESE_RADICAL_M 按照部首排序
NLS_SORT=SCHINESE_STROKE_M 按照筆畫排序
NLS_SORT=SCHINESE_PINYIN_M 按照拼音排序
From:http://tw.wingwit.com/Article/program/Oracle/201311/17664.html