1. 程式人生 > >EXP-00091和IMP-00010報錯

EXP-00091和IMP-00010報錯

red 來源 rtai edit because art all 錯誤 ror

原來導出表的庫:database ORACLE_SID=TEST0221 版本: 11.2.0.4
需要導進的庫:database ORACLE_SID=PROD 版本:10.2.0.1
因為字符集的問題,出現了EXP-00091的錯誤
因為數據庫版本的問題,出現了IMP-00010的錯誤

導出dmp文件信息:
[[email protected] ~]$ exp sh/[email protected] 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.
[[email protected] ~]$ 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.
[[email protected] ~]$ exit
exit


查看 NLS編碼集
[email protected]> select * from nls_database_parameters t where t.parameter=‘NLS_CHARACTERSET‘;
PARAMETER VALUE
------------------------------ -------------------------------------------------------------------
NLS_CHARACTERSET AL32UTF8
或者查看:
[email protected]> select * from v$nls_parameters where parameter=‘NLS_CHARACTERSET‘;
PARAMETER VALUE
----------------------------------------------------------------
NLS_CHARACTERSET AL32UTF8
[email protected]> !
[[email protected] ~]$ export NLS_LANG=AMERICAN_AMERICA.AL32UTF8--設置字符集
[[email protected] ~]$ exp sh/[email protected] 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.

[[email protected] ~]$ 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

[[email protected] ~]$ scp COUNTRIES.dmp 192.168.1.155:/home/oracle--- 使用scp將文件傳輸到需要導入的庫的系統裏

備註:隨筆中內容來源於網上資料整理,僅供參考。

EXP-00091和IMP-00010報錯