oracle导出中文utf8乱码,ORACLE导入导出后发生中文乱码的原因及解决办法

从数据库服务器上使用exp导出时显示如下:

[oracle@kf15-1]:/users/oracle>$ exp username/passwd@kf15-1/i1000 tables=table_name file=table_name_unix.dmp satistics=none buffer=1000000

Export: Release 10.2.0.4.0 - Production on 星期四 8月 26 16:37:08 2010

Copyright (c) 1982, 2007, Oracle. All rights reserved.

连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

已导出 ZHS16CGB231280 字符集和 AL16UTF16 NCHAR 字符集

即将导出指定的表通过常规路径...

. . 正在导出表 TABLE_NAME导出了 11174 行

成功终止导出, 没有出现警告。

=================================================================

从数据库客户端上使用exp导出时显示如下:

C:/Documents and Settings/user>exp username/passwd@kf15-1/i1000 tables=table_name file=table_name_win.dmp statistics=none buffer=1000000

Export: Release 10.2.0.1.0 - Production on 星期四 8月 26 16:40:31 2010

Copyright (c) 1982, 2005, Oracle. All rights reserved.

连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集

服务器使用 ZHS16CGB231280 字符集 (可能的字符集转换)

即将导出指定的表通过常规路径...

. . 正在导出表 TABLE_NAME导出了 11174 行

成功终止导出, 没有出现警告。

=================================================================

其中有一段“可能的字符集转换”,原因在于数据库软件安装时使用缺省字符集ZHS16GBK,而服务器端在建库的时候将字符集改成了非缺省的ZHS16CGB231280,客户端没有艰苦的步骤,所以仍使用ZHS16GBK。

在Windows下修改oracle使用字符集 的方法为:

打开注册表;选择HKEY_LOCAL_MACHINE —> ORACLE —> KEY_OraClient10g_home1中的NLS_LANG,将其键值“SIMPLIFIED CHINESE_CHINA.ZHS16GBK”改为“SIMPLIFIED CHINESE_CHINA.ZHS16CGB231280”。

=================================================================

修改过客户端字符集以后,从数据库客户端上使用exp导出时显示如下:

C:/Documents and Settings/user>exp username/passwd@kf15-1/i1000 tables=table_name file=table_name_win.dmp statistics=none buffer=1000000

Export: Release 10.2.0.1.0 - Production on 星期四 8月 26 17:15:15 2010

Copyright (c) 1982, 2005, Oracle. All rights reserved.

连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

已导出 ZHS16CGB231280 字符集和 AL16UTF16 NCHAR 字符集

即将导出指定的表通过常规路径...

. . 正在导出表 TABLE_NAME导出了 11174 行

成功终止导出, 没有出现警告。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值