17,377
社区成员
发帖
与我相关
我的任务
分享
C:\Documents and Settings\Admin>chcp
活动的代码页: 936
C:\Documents and Settings\Admin>set nls_lang=AMERICAN_AMERICA.UTF8
C:\Documents and Settings\Admin>sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Oct 23 13:28:24 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> create table tt(name varchar2(100));
Table created.
SQL> insert into tt values('一');
1 row created.
SQL> insert into tt values('二');
1 row created.
SQL> commit;
Commit complete.
SQL> select * from tt;
NAME
--------------------------------------------------------------------------------
一
二
SQL>
SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
- Production
With the Partitioning, OLAP and Data Mining options
C:\Documents and Settings\Admin>set nls_lang=SIMPLIFIED CHINESE_CHINA.ZHS16GBK
C:\Documents and Settings\Admin>sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 10月 23 13:29:49 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> select * from tt;
NAME
--------------------------------------------------------------------------------
?
??
SQL> insert into tt values('三');
已创建 1 行。
SQL> insert into tt values('四');
已创建 1 行。
SQL> commit;
提交完成。
SQL> select * from tt;
NAME
--------------------------------------------------------------------------------
?
??
三
四
SQL>
SQL> 从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 断开
C:\Documents and Settings\Admin>set nls_lang=AMERICAN_AMERICA.UTF8
C:\Documents and Settings\Admin>sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Oct 23 13:30:27 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> select * from tt;
NAME
--------------------------------------------------------------------------------
一
二
涓
鍥
SQL>
SQL> select * from nls_database_parameters;
PARAMETER VALUE
------------------------------ ------------------------------
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET UTF8
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
PARAMETER VALUE
------------------------------ ------------------------------
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 UTF8
NLS_RDBMS_VERSION 10.2.0.1.0
20 rows selected.
SQL>
C:\Documents and Settings\Admin>set nls_lang=SIMPLIFIED CHINESE_CHINA.ZHS16GBK
C:\Documents and Settings\Admin>sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 10月 23 16:14:37 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> select * from tt;
NAME
--------------------------------------------------------------------------------
?
??
三
四
SQL> insert into tt values('一');
已创建 1 行。
SQL> insert into tt values('二');
已创建 1 行。
SQL> commit;
提交完成。
SQL> select name,dump(name) from tt;
NAME DUMP(NAME)
------------------------------ ------------------------------
? Typ=1 Len=2: 210,187
?? Typ=1 Len=2: 182,254
三 Typ=1 Len=3: 228,184,137
四 Typ=1 Len=3: 229,155,155
一 Typ=1 Len=3: 228,184,128
二 Typ=1 Len=3: 228,186,140
已选择6行。
SQL> select name,dump(name) from tt;
NAME DUMP(NAME)
-------------------- ------------------------------
一 Typ=1 Len=2: 210,187
二 Typ=1 Len=2: 182,254
涓? Typ=1 Len=3: 228,184,137
鍥? Typ=1 Len=3: 229,155,155