楼主: chao_ping

> 全面讨论字符集问题

[复制链接]
论坛徽章:
5
授权会员
日期:2005-10-30 17:05:33IBM软件技术精英协会成员
日期:2006-12-27 18:43:27生肖徽章2007版:鼠
日期:2008-01-02 17:35:532009新春纪念徽章
日期:2009-01-04 14:52:28itpub13周年纪念徽章
日期:2014-09-28 08:57:25
11#
发表于 2001-12-12 12:49 | 只看该作者

偶也有好多

805 815 816 817 9i for WINDOWS
815 816 817 for AIX
816 for HP_UX
815 817 for SOLARIS
816 817 for LINUX

使用道具 举报

回复
论坛徽章:
0
12#
发表于 2001-12-12 15:35 | 只看该作者

请大家把位数最好也写上。

比如SUN-64BIT,或者AIX-32BIT。。。
否则,到了现场安不上去,不是害人家吗???

给点专业精神好不好???大家都是做这个的。。。。

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
13#
发表于 2001-12-12 17:35 | 只看该作者
谁知道american_america.usc??是怎么写的,我记不清了。

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
14#
发表于 2001-12-12 18:04 | 只看该作者
着急!!!平台是aix 4.3 oracle 816,在AIX上导出的数据,因为是后台运行,所以,nls_lang取得是默认值。而我的.profile中设置的是NLS_LANG="simplified chinese_china.zhs16cgb231280"。现在,后台产生的dmp文件,不能再导入我的数据库了。也改动过nls_lang的参数设置。但是,不是不能导入,就是导入以后,产生乱码。请各位高手指点。

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
15#
发表于 2001-12-12 18:04 | 只看该作者

在AIX上导出的数据,着急!!!

着急!!!平台是aix 4.3 oracle 816,在AIX上导出的数据,因为是后台运行,所以,nls_lang取得是默认值。而我的.profile中设置的是NLS_LANG="simplified chinese_china.zhs16cgb231280"。现在,后台产生的dmp文件,不能再导入我的数据库了。也改动过nls_lang的参数设置。但是,不是不能导入,就是导入以后,产生乱码。请各位高手指点。

使用道具 举报

回复
论坛徽章:
21
ITPUB元老
日期:2005-02-28 12:57:002012新春纪念徽章
日期:2012-02-13 15:11:182012新春纪念徽章
日期:2012-02-13 15:11:182012新春纪念徽章
日期:2012-02-13 15:11:182012新春纪念徽章
日期:2012-02-13 15:11:18马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:11:18
16#
 楼主| 发表于 2001-12-12 22:00 | 只看该作者
目标数据库的字符集市什么?

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
17#
发表于 2001-12-13 09:11 | 只看该作者
它是把自己导出的数据再次导入回去。

使用道具 举报

回复
论坛徽章:
4
ITPUB元老
日期:2005-02-28 12:57:00授权会员
日期:2005-10-30 17:05:33会员2006贡献徽章
日期:2006-04-17 13:46:34生肖徽章2007版:兔
日期:2008-01-02 17:35:53
18#
发表于 2001-12-13 09:42 | 只看该作者

如何修改DATABASE的字符集?

我修改了props$中的value$
     还有session; database中的所有nl_language
可是用select userenv('language') from dual; 一查,还是原来的字符集,
究竟怎样才能改变它??

谢谢!

使用道具 举报

回复
论坛徽章:
21
ITPUB元老
日期:2005-02-28 12:57:002012新春纪念徽章
日期:2012-02-13 15:11:182012新春纪念徽章
日期:2012-02-13 15:11:182012新春纪念徽章
日期:2012-02-13 15:11:182012新春纪念徽章
日期:2012-02-13 15:11:18马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:11:18
19#
 楼主| 发表于 2001-12-13 10:49 | 只看该作者

MY TEST RESULT-1

My test results:
db_svcraids> echo $NLS_LANG
AMERICAN_AMERICA.WE8DEC
db_svcraids> sqlplus system/manage

SQL*Plus: Release 8.1.7.0.0 - Production on Thu Dec 13 10:35:25 2001

(c) Copyright 2000 Oracle Corporation.  All rights reserved.


Connected to:
Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
With the Partitioning option
JServer Release 8.1.7.2.0 - Production

SQL> drop table testforlog;

Table dropped.

SQL> create table testforchar(name varchar2(90));

Table created.

SQL> insert into testforchar values('配送合同信息表');

1 row created.

SQL> commit;

Commit complete.

SQL> exit
Disconnected from Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
With the Partitioning option
JServer Release 8.1.7.2.0 - Production
db_svcraids> exp system/manage file=testforchar tables=\(testforchar\)

Export: Release 8.1.7.2.0 - Production on Thu Dec 13 10:36:46 2001

(c) Copyright 2000 Oracle Corporation.  All rights reserved.


Connected to: Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
With the Partitioning option
JServer Release 8.1.7.2.0 - Production
Export done in WE8DEC character set and WE8DEC NCHAR character set

About to export specified tables via Conventional Path ...
. . exporting table                    TESTFORCHAR          1 rows exported
Export terminated successfully without warnings.
db_svcraids> sqlplus system/manage

SQL*Plus: Release 8.1.7.0.0 - Production on Thu Dec 13 10:36:57 2001

(c) Copyright 2000 Oracle Corporation.  All rights reserved.


Connected to:
Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
With the Partitioning option
JServer Release 8.1.7.2.0 - Production

SQL> drop table testforchar;

Table dropped.

SQL> exit
Disconnected from Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
With the Partitioning option
JServer Release 8.1.7.2.0 - Production
db_svcraids> imp system/manage file=testforchar full=y

Import: Release 8.1.7.2.0 - Production on Thu Dec 13 10:37:22 2001

(c) Copyright 2000 Oracle Corporation.  All rights reserved.


Connected to: Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
With the Partitioning option
JServer Release 8.1.7.2.0 - Production

Export file created by EXPORT:V08.01.07 via conventional path
import done in WE8DEC character set and WE8DEC NCHAR character set
. importing SYSTEM's objects into SYSTEM
. . importing table                  "TESTFORCHAR"          1 rows imported

Import terminated successfully without warnings.
db_svcraids> db_svcraids> sqlplus system/manage

SQL*Plus: Release 8.1.7.0.0 - Production on Thu Dec 13 10:37:52 2001

(c) Copyright 2000 Oracle Corporation.  All rights reserved.


Connected to:
Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
With the Partitioning option
JServer Release 8.1.7.2.0 - Production

SQL> select *from testforchar;

NAME
--------------------------------------------------------------------------------
配送合同信息表

SQL>

使用道具 举报

回复
论坛徽章:
21
ITPUB元老
日期:2005-02-28 12:57:002012新春纪念徽章
日期:2012-02-13 15:11:182012新春纪念徽章
日期:2012-02-13 15:11:182012新春纪念徽章
日期:2012-02-13 15:11:182012新春纪念徽章
日期:2012-02-13 15:11:18马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:11:18
20#
 楼主| 发表于 2001-12-13 10:54 | 只看该作者
db_svcraids> echo $NLS_LANG
AMERICAN_AMERICA.WE8DEC
db_svcraids> sqlplus system/manage

SQL*Plus: Release 8.1.7.0.0 - Production on Thu Dec 13 10:39:33 2001

(c) Copyright 2000 Oracle Corporation.  All rights reserved.


Connected to:
Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
With the Partitioning option
JServer Release 8.1.7.2.0 - Production

SQL>create table testforchar2(name varchar(90))

Table created.

SQL> insert into testforchar2 values('配送合同信息表');

1 row created.

SQL> commit;

Commit complete.

SQL> exit
Disconnected from Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
With the Partitioning option
JServer Release 8.1.7.2.0 - Production

db_svcraids> export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
db_svcraids> exp system/manage file=testforchar2 tables=\(testforchar2\)

Export: Release 8.1.7.2.0 - Production on Thu Dec 13 10:40:50 2001

(c) Copyright 2000 Oracle Corporation.  All rights reserved.


Connected to: Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
With the Partitioning option
JServer Release 8.1.7.2.0 - Production
Export done in ZHS16GBK character set and WE8DEC NCHAR character set
server uses WE8DEC character set (possible charset conversion)

About to export specified tables via Conventional Path ...
. . exporting table                   TESTFORCHAR2          1 rows exported
Export terminated successfully without warnings.
db_svcraids> sqlplus system/manage

SQL*Plus: Release 8.1.7.0.0 - Production on Thu Dec 13 10:40:59 2001

(c) Copyright 2000 Oracle Corporation.  All rights reserved.


Connected to:
Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
With the Partitioning option
JServer Release 8.1.7.2.0 - Production

SQL> select *from testforchar2;

NAME
--------------------------------------------------------------------------------
????????????±í

SQL> drop table testforchar2;

Table dropped.

SQL> exit
Disconnected from Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
With the Partitioning option
JServer Release 8.1.7.2.0 - Production

db_svcraids> export NLS_LANG=AMERICAN_AMERICA.WE8DEC
db_svcraids> sqlplus system/manage

SQL*Plus: Release 8.1.7.0.0 - Production on Thu Dec 13 10:42:58 2001

(c) Copyright 2000 Oracle Corporation.  All rights reserved.


Connected to:
Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
With the Partitioning option
JServer Release 8.1.7.2.0 - Production

SQL> select *from testforchar2;

NAME
--------------------------------------------------------------------------------
靠靠靠??靠勘

SQL> drop table testforchar2;

Table dropped.

SQL> exit
Disconnected from Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
With the Partitioning option
JServer Release 8.1.7.2.0 - Production
db_svcraids> set -o vi
db_svcraids> imp system/manage file=testforchar2 full=y

Import: Release 8.1.7.2.0 - Production on Thu Dec 13 10:43:30 2001

(c) Copyright 2000 Oracle Corporation.  All rights reserved.


Connected to: Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
With the Partitioning option
JServer Release 8.1.7.2.0 - Production

Export file created by EXPORT:V08.01.07 via conventional path
import done in WE8DEC character set and WE8DEC NCHAR character set
export client uses ZHS16GBK character set (possible charset conversion)
. importing SYSTEM's objects into SYSTEM
. . importing table                 "TESTFORCHAR2"          1 rows imported
Import terminated successfully without warnings.
db_svcraids> sqlplus system/manage

SQL*Plus: Release 8.1.7.0.0 - Production on Thu Dec 13 10:43:43 2001

(c) Copyright 2000 Oracle Corporation.  All rights reserved.


Connected to:
Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
With the Partitioning option
JServer Release 8.1.7.2.0 - Production

SQL> select *from testforchar2;

NAME
--------------------------------------------------------------------------------
靠靠靠??靠勘

SQL> exit
Disconnected from Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
With the Partitioning option
JServer Release 8.1.7.2.0 - Production
db_svc:oraids> echo $NLS_LANG
AMERICAN_AMERICA.WE8DEC
db_svc:oraids>

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表