首页 技术 正文
技术 2022年11月20日
0 收藏 924 点赞 4,611 浏览 3392 个字

原来导出表的库:database ORACLE_SID=TEST0221 版本: 11.2.0.4
需要导进的库:database ORACLE_SID=PROD 版本:10.2.0.1
因为字符集的问题,出现了EXP-00091的错误
因为数据库版本的问题,出现了IMP-00010的错误

导出dmp文件信息:
[oracle@node2 ~]$ exp sh/sh@test0221 tables=COUNTRIES rows=y file=COUNTRIES.dmp
Export: Release 11.2.0.4.0 – Production on Thu Mar 27 15:19:07 2014
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 – Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses AL32UTF8 character set (possible charset conversion)

About to export specified tables via Conventional Path …
. . exporting table                      COUNTRIES         23 rows exported

EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
Export terminated successfully with warnings.
[oracle@node2 ~]$ oerr exp 00091               (这个貌似是查看 00091报错 的详解)(oerr  溢出错误)
00091, 00000, “Exporting questionable statistics.”
// *Cause:  Export was able export statistics, but the statistics may not be
//          usuable. The statistics are questionable because one or more of
//          the following happened during export: a row error occurred, client
//          character set or NCHARSET does not match with the server, a query
//          clause was specified on export, only certain partitions or
//          subpartitions were exported, or a fatal error occurred while
//          processing a table.
// *Action: To export non-questionable statistics, change the client character
//          set or NCHARSET to match the server, export with no query clause,
//          export complete tables. If desired, import parameters can be
//          supplied so that only non-questionable statistics will be imported,
//          and all questionable statistics will be recalculated.
[oracle@node2 ~]$ exit
exit

查看  NLS编码集
sys@TEST0221> select * from nls_database_parameters t where t.parameter=’NLS_CHARACTERSET’;   
PARAMETER                                  VALUE
——————————   ——————————————————————-
NLS_CHARACTERSET                 AL32UTF8
或者查看:
sys@TEST0221> select * from v$nls_parameters  where parameter=’NLS_CHARACTERSET’;
PARAMETER                                                        VALUE
—————————————————————-
NLS_CHARACTERSET                                                 AL32UTF8
sys@TEST0221> !
[oracle@node2 ~]$ export NLS_LANG=AMERICAN_AMERICA.AL32UTF8–设置字符集
[oracle@node2 ~]$ exp sh/sh@test0221 tables=COUNTRIES rows=y file=COUNTRIES.dmp–再来重新导出,成功

Export: Release 11.2.0.4.0 – Production on Thu Mar 27 15:22:32  2014

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 – Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in AL32UTF8 character set and AL16UTF16 NCHAR character set

About to export specified tables via Conventional Path …
. . exporting table                      COUNTRIES         23 rows exported
Export terminated successfully without warnings.

[oracle@node2 ~]$ ll
total 480
-rw-r–r– 1 oracle oinstall 438823 Mar 14 13:30 awrrpt_1_33_37.html
-rw-r–r– 1 oracle oinstall  24576 Mar 27 15:22 COUNTRIES.dmp
-rw-r–r– 1 oracle oinstall   2992 Feb 24 23:00 login.sql
-rw-r–r– 1 oracle oinstall    195 Mar 14 08:43 spcpkg.lis
-rw-r–r– 1 oracle oinstall   5477 Mar 14 08:43 spctab.lis
-rw-r–r– 1 oracle oinstall   1832 Mar 14 08:43 spcusr.lis

[oracle@node2 ~]$ scp COUNTRIES.dmp 192.168.1.155:/home/oracle— 使用scp将文件传输到需要导入的库的系统里

备注:随笔中内容来源于网上资料整理,仅供参考。

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:8,904
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,430
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,247
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,058
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,690
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,727