今天导出一数据库数据,发现EXP-00091问题;
连接到: Oracle Database 10g Enterprise Edition Release
10.2
.
0.1
.
0
-
Production
With the Partitioning, OLAP and Data Mining options
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集
服务器使用 AL32UTF8 字符集 (可能的字符集转换)
. 正在导出表 T_BJ_JZH2013
导出了
34
行
EXP
-
00091
: 正在导出有问题的统计信息。
以前也遇到过,没仔细研究,今天详细看了一下。
问题原因:
从导出日志我们可以看出,客户端字符集是ZHS16GBK,服务器端字符集是AL32UTF8 ,所以导致该问题.
解决办法:
客户端字符集要设置成和服务器端一致。
下面是测试过程:
服务器端字符集
客户端是windows,导出也是导出到windows。
Microsoft Windows XP [版本
5.1
.
2600
]
(C) 版权所有
1985
-
2001
Microsoft Corp.
C:\Documents and Settings\DELL
>
C:\Documents and Settings\DELL>exp sdyy/wisedu@wiscom file=d:\1.dmp tables=
T_BJ_JZH2013
Export: Release
10.2
.
0.1
.
0
- Production on 星期二 11月
26
09
:
51
:
21
2013
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
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集
服务器使用 AL32UTF8 字符集 (可能的字符集转换)
即将导出指定的表通过常规路径...
. . 正在导出表 T_BJ_JZH2013导出了
34
行
EXP
-
00091
: 正在导出有问题的统计信息。
导出成功终止, 但出现警告。
C:\Documents and Settings\DELL
>set NLS_LANG=SIMPLIFIED CHINESE_CHINA.AL32UTF8
C:\Documents and Settings\DELL>exp sdyy/wisedu@wiscom file=d:\1AL32.dmp tables=
T_BJ_JZH2013
Export: Release
10.2
.
0.1
.
0
- Production on 鏄熸湡浜?11鏈?
26
09
:
55
:
37
2013
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
宸插鍑
?
AL32UTF8 瀛楃闆嗗拰 AL16UTF16 NCHAR 瀛楃闆
鍗冲皢瀵煎嚭鎸囧畾鐨勮〃閫氳繃甯歌璺緞...
. . 姝e湪瀵煎嚭琛
? T_BJ_JZH2013瀵煎嚭浜?
34
琛
鎴愬姛缁堟瀵煎嚭, 娌℃湁鍑虹幇璀﹀憡銆
?
C:\Documents and Settings\DELL>set NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK
C:\Documents and Settings\DELL>exp sdyy/wisedu@wiscom file=d:\1ZHS.dmp tables=
T_BJ_JZH2013
Export: Release
10.2
.
0.1
.
0
- Production on 星期二 11月
26
09
:
56
:
14
2013
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
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集
服务器使用 AL32UTF8 字符集 (可能的字符集转换)
即将导出指定的表通过常规路径...
. . 正在导出表 T_BJ_JZH2013导出了
34
行
EXP
-
00091
: 正在导出有问题的统计信息。
导出成功终止, 但出现警告。
C:\Documents and Settings\DELL
>set NLS_LANG=AMERICAN_AMERICA.AL32UTF8
C:\Documents and Settings\DELL>exp sdyy/wisedu@wiscom file=d:\132.dmp tables=
T_BJ_JZH2013
Export: Release
10.2
.
0.1
.
0
- Production on Tue Nov
26
09
:
59
:
51
2013
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
Export done
in
AL32UTF8 character
set
and AL16UTF16 NCHAR character
set
About to export specified tables via Conventional Path ...
. . exporting table T_BJ_JZH2013
34
rows exported
Export terminated successfully without warnings.
C:\Documents and Settings\DELL
>
问题解决了。

