oracle imp导入时出现skipping table

leshami 2013-05-14

rman Oracle 数据库 配置 负载均衡 Transaction RAC Create file type 表空间

    最近有同事在使用传统的imp工具导入数据时,总是提示收到skipping table的提示,也就是表被跳过,而不是被重建。即使是将目标数据库上的表对象删除,仍然无法导入。因此记录一下,供大家参考。

 

1、导入时的skipping table提示

oracle@SZDB:~> imp goex_admin/xxx file=sy-trans-20130509-2.DMP log=tmp.log full=y ignore=y show=y

Import: Release 10.2.0.3.0 - Production on Fri May 10 10:42:18 2013

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

Connected to: Oracle Database 10g Release 10.2.0.3.0 - 64bit Production

Export file created by EXPORT:V10.02.01 via conventional path
import done in US7ASCII character set and UTF8 NCHAR character set
import server uses UTF8 character set (possible charset conversion)
export client uses ZHT16BIG5 character set (possible charset conversion)
. importing GOEX_ADMIN's objects into GOEX_ADMIN
. importing GOEX_ADMIN's objects into GOEX_ADMIN
 "CREATE TABLE "SYS_RECEIVING_BANK_TBL" ("BANK_ID" NUMBER(12, 0) NOT NULL ENA"
 "BLE, "CURR_CD" CHAR(3) NOT NULL ENABLE, "E_NAME" VARCHAR2(128) NOT NULL ENA"
 "BLE, "IS_IMP_USE_SYS_ACC_NO" CHAR(1), "DISPLAY_SEQ" NUMBER(2, 0), "TC_NAME""
 " VARCHAR2(128), "SC_NAME" VARCHAR2(128), "SHORT_DESC" VARCHAR2(64), "BANK_G"
 "RP" VARCHAR2(128))  PCTFREE 10 PCTUSED 0 INITRANS 1 MAXTRANS 255 STORAGE(IN"
 "ITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE ""
 "GOEX_SYSTEM_TBL" LOGGING NOCOMPRESS"
. . skipping table "SYS_RECEIVING_BANK_TBL"           

 "GRANT SELECT ON "SYS_RECEIVING_BANK_TBL" TO "GOEX_WEBUSER_ROLE""
 "CREATE UNIQUE INDEX "PK_SYS_RECEIVING_BANK" ON "SYS_RECEIVING_BANK_TBL" ("B"
 "ANK_ID" )  PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELIS"
 "TS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "GOEX_SYSTEM_IDX" LO"
 "GGING"
 "ALTER TABLE "SYS_RECEIVING_BANK_TBL" ADD  CONSTRAINT "PK_SYS_RECEIVING_BANK"
 "" PRIMARY KEY ("BANK_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 ST"
 "ORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABL"
 "ESPACE "GOEX_SYSTEM_IDX" LOGGING ENABLE "
 "COMMENT ON COLUMN "SYS_RECEIVING_BANK_TBL"."BANK_ID" IS  'Reciving bank id,"
 " different from in bank table "
 "For SCB, the bank id must equal to bank table'"
 "COMMENT ON COLUMN "SYS_RECEIVING_BANK_TBL"."CURR_CD" IS  'Currency used for"
 " receiving bank'"
 "COMMENT ON COLUMN "SYS_RECEIVING_BANK_TBL"."E_NAME" IS  'Bank Name'"
 "COMMENT ON COLUMN "SYS_RECEIVING_BANK_TBL"."IS_IMP_USE_SYS_ACC_NO" IS  '[NO"
 "T used now] Y - use system A/C no, first 7 digits for file import'"
 "COMMENT ON COLUMN "SYS_RECEIVING_BANK_TBL"."SHORT_DESC" IS  'store bank cod"
 "e'"
 "COMMENT ON COLUMN "SYS_RECEIVING_BANK_TBL"."BANK_GRP" IS  'Bank group, to g"
 "roup banks for all currencies'"
 "CREATE TABLE "SYS_TRANS_TYPE_TBL" ("TYPE_CD" VARCHAR2(5) NOT NULL ENABLE, ""
 "DESC_EN" VARCHAR2(64) NOT NULL ENABLE, "DESC_TC" VARCHAR2(64) NOT NULL ENAB"
 "LE, "ACC_HIST_DESC_FORMAT_EN" VARCHAR2(1024), "ACC_HIST_TRANS_TYPE_EN" VARC"
 "HAR2(64), "DAILY_STMT_TRANS_TYPE_EN" VARCHAR2(64), "DAILY_STMT_DESC_FORMAT_"
 "EN" VARCHAR2(1024), "DAILY_STMT_TRANS_TYPE_TC" VARCHAR2(64), "DAILY_STMT_DE"
 "SC_FORMAT_TC" VARCHAR2(1024), "MONTHLY_STMT_TRANS_TYPE_EN" VARCHAR2(64), "M"
 "ONTHLY_STMT_DESC_FORMAT_EN" VARCHAR2(1024), "MONTHLY_STMT_TRANS_TYPE_TC" VA"
 "RCHAR2(64), "MONTHLY_STMT_DESC_FORMAT_TC" VARCHAR2(1024), "DISPLAY_SEQ" NUM"
 "BER(3, 0), "IN_ATI_ENTITLEMENT" CHAR(1) NOT NULL ENABLE, "IS_DISPLAY" CHAR("
 "1) NOT NULL ENABLE, "DR_OR_CR_STK_QTY" CHAR(2), "DESC_SC" VARCHAR2(64), "DA"
 "ILY_STMT_TRANS_TYPE_SC" VARCHAR2(64), "DAILY_STMT_DESC_FORMAT_SC" VARCHAR2("
 "1024), "MONTHLY_STMT_TRANS_TYPE_SC" VARCHAR2(64), "MONTHLY_STMT_DESC_FORMAT"
 "_SC" VARCHAR2(1024), "HAS_RECEIVING_BANK" CHAR(1), "SHORT_DESC" VARCHAR2(64"
 "), "IS_ACCOUNTING_USE" CHAR(1), "IS_PER_ACC_TYPE" CHAR(1), "TYPE_GRP" VARCH"
 "AR2(20), "DESC_ACCTING_STD" VARCHAR2(128), "SYN_GRP" CHAR(1))  PCTFREE 10 P"
 "CTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 196608 FREELISTS 1 FREELI"
 "ST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "GOEX_USERS_TBL" LOGGING NOCOMP"
 "RESS"
 " ALTER TABLE "SYS_TRANS_TYPE_TBL" MODIFY ("IN_ATI_ENTITLEMENT" DEFAULT 'N' "
 ")"
 " ALTER TABLE "SYS_TRANS_TYPE_TBL" MODIFY ("IS_DISPLAY" DEFAULT 'Y' )"
 " ALTER TABLE "SYS_TRANS_TYPE_TBL" MODIFY ("HAS_RECEIVING_BANK" DEFAULT 'N')"
 " ALTER TABLE "SYS_TRANS_TYPE_TBL" MODIFY ("IS_ACCOUNTING_USE" DEFAULT 'N')"
 " ALTER TABLE "SYS_TRANS_TYPE_TBL" MODIFY ("IS_PER_ACC_TYPE" DEFAULT 'N')"
. . skipping table "SYS_TRANS_TYPE_TBL"               

 "GRANT SELECT ON "SYS_TRANS_TYPE_TBL" TO "GOEX_WEBUSER_ROLE""
 "CREATE INDEX "IN_ATI_ENTITLEMENT_IDX" ON "SYS_TRANS_TYPE_TBL" ("IN_ATI_ENTI"
 "TLEMENT" )  PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELI"
 "STS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "GOEX_SYSTEM_IDX" L"
 "OGGING"
 "CREATE UNIQUE INDEX "PK_SYS_TRANS_TYPE_TBL" ON "SYS_TRANS_TYPE_TBL" ("TYPE_"
 "CD" )  PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1"
 " FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "GOEX_SYSTEM_IDX" LOGGIN"
 "G"
 "ALTER TABLE "SYS_TRANS_TYPE_TBL" ADD  CONSTRAINT "PK_SYS_TRANS_TYPE_TBL" PR"
 "IMARY KEY ("TYPE_CD") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAG"
 "E(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPA"
 "CE "GOEX_SYSTEM_IDX" LOGGING ENABLE "
 "COMMENT ON TABLE "SYS_TRANS_TYPE_TBL" IS  'Store transaction type'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."TYPE_CD" IS  'Transaction type code"
 "'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."DESC_EN" IS  'Description in Eng'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."DESC_TC" IS  'Description in TC'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."ACC_HIST_DESC_FORMAT_EN" IS  'A/C h"
 "istory description format in Eng'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."ACC_HIST_TRANS_TYPE_EN" IS  'A/C hi"
 "story transaction type in Eng'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."DAILY_STMT_TRANS_TYPE_EN" IS  'Dail"
 "y statement transaction type in Eng'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."DAILY_STMT_DESC_FORMAT_EN" IS  'Dai"
 "ly statement description format in Eng'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."DAILY_STMT_TRANS_TYPE_TC" IS  'Dail"
 "y statement transaction type in T.Chi'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."DAILY_STMT_DESC_FORMAT_TC" IS  'Dai"
 "ly statement description format in T.Chi'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."MONTHLY_STMT_TRANS_TYPE_EN" IS  'Mo"
 "nthly statement transaction type in Eng'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."MONTHLY_STMT_DESC_FORMAT_EN" IS  'M"
 "onthly statement description format in Eng'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."MONTHLY_STMT_TRANS_TYPE_TC" IS  'Mo"
 "nthly statement transaction type in T.Chi'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."MONTHLY_STMT_DESC_FORMAT_TC" IS  'M"
 "onthly statement description format in T.Chi'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."DISPLAY_SEQ" IS  'Display sequence "
 "of transactions for a/c history and client statement'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."IN_ATI_ENTITLEMENT" IS  'This type "
 "will include in ATI Export (Entitlement record section)'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."IS_DISPLAY" IS  'Y : display in scr"
 "een for selection; N: internal transaction use'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."DR_OR_CR_STK_QTY" IS  'Flag indicat"
 "e whether this type should debit or credit stk qty'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."DESC_SC" IS  'Description in SC'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."DAILY_STMT_TRANS_TYPE_SC" IS  'Dail"
 "y statement transaction type in S.Chi'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."DAILY_STMT_DESC_FORMAT_SC" IS  'Dai"
 "ly statement description format in S.Chi'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."MONTHLY_STMT_TRANS_TYPE_SC" IS  'Mo"
 "nthly statement transaction type in S.Chi'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."MONTHLY_STMT_DESC_FORMAT_SC" IS  'M"
 "onthly statement description format in S.Chi'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."HAS_RECEIVING_BANK" IS  'Flag indic"
 "ates whether relate to a receiving bank'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."SHORT_DESC" IS  'store transaction "
 "type'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."IS_ACCOUNTING_USE" IS  'For account"
 "ing, whether used in accounting'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."IS_PER_ACC_TYPE" IS  'Flag indicate"
 "s whether this type can be grouped per a/c type'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."TYPE_GRP" IS  'Accounting non-trade"
 " type grouping, used in FSH'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."DESC_ACCTING_STD" IS  'Accounting s"
 "tandard description, used in FSH'"
 "COMMENT ON COLUMN "SYS_TRANS_TYPE_TBL"."SYN_GRP" IS  '''C''-Cash; ''S''-Sto"
 "ck; ''A''-Trade Add; ''X''-Trade Cancel'"
 "CREATE TABLE "SYS_WITHDRAWAL_BANK_TBL" ("BANK_ID" NUMBER(12, 0) NOT NULL EN"
 "ABLE, "CURR_CD" CHAR(3) NOT NULL ENABLE, "E_NAME" VARCHAR2(128) NOT NULL EN"
 "ABLE, "DISPLAY_SEQ" NUMBER(2, 0), "TC_NAME" VARCHAR2(128), "SC_NAME" VARCHA"
 "R2(128), "SHORT_DESC" VARCHAR2(64), "BANK_GRP" VARCHAR2(128))  PCTFREE 10 P"
 "CTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIS"
 "T GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "GOEX_SYSTEM_TBL" LOGGING NOCOMP"
 "RESS"
. . skipping table "SYS_WITHDRAWAL_BANK_TBL"          

 "CREATE UNIQUE INDEX "UNI_SYS_WITHDRAWAL_BANK_TBL" ON "SYS_WITHDRAWAL_BANK_T"
 "BL" ("BANK_ID" )  PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 "
 "FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "GOEX_SYSTEM_"
 "IDX" LOGGING"
 "COMMENT ON COLUMN "SYS_WITHDRAWAL_BANK_TBL"."BANK_ID" IS  'Withdrawal bank "
 "id, different from in bank table'"
 "COMMENT ON COLUMN "SYS_WITHDRAWAL_BANK_TBL"."CURR_CD" IS  'Currency used fo"
 "r withdrawal bank'"
 "COMMENT ON COLUMN "SYS_WITHDRAWAL_BANK_TBL"."E_NAME" IS  'Bank Name'"
 "COMMENT ON COLUMN "SYS_WITHDRAWAL_BANK_TBL"."SHORT_DESC" IS  'store bank co"
 "de'"
 "COMMENT ON COLUMN "SYS_WITHDRAWAL_BANK_TBL"."BANK_GRP" IS  'Bank group, to "
 "group banks for all currencies'"
Import terminated successfully without warnings.

2、移除参数show=y后正常导入

oracle@SZDB:~> imp goex_admin/xxx file=sy-trans-20130509-2.DMP log=tmp.log rows=y full=y ignore=y                                        
Import: Release 10.2.0.3.0 - Production on Fri May 10 12:02:29 2013

-- Author : Robinson
-- Blog   : http://blog.csdn.net/robinson_0612

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

Connected to: Oracle Database 10g Release 10.2.0.3.0 - 64bit Production

Export file created by EXPORT:V10.02.01 via conventional path
import done in US7ASCII character set and UTF8 NCHAR character set
import server uses UTF8 character set (possible charset conversion)
export client uses ZHT16BIG5 character set (possible charset conversion)
. importing GOEX_ADMIN's objects into GOEX_ADMIN
. importing GOEX_ADMIN's objects into GOEX_ADMIN
. . importing table       "SYS_RECEIVING_BANK_TBL"        117 rows imported
. . importing table           "SYS_TRANS_TYPE_TBL"        134 rows imported
. . importing table      "SYS_WITHDRAWAL_BANK_TBL"         34 rows imported
Import terminated successfully without warnings.

3、imp的帮助信息

oracle@SZDB:~> imp -help

Keyword  Description (Default)       Keyword      Description (Default)
--------------------------------------------------------------------------
USERID   username/password           FULL         import entire file (N)
BUFFER   size of data buffer         FROMUSER     list of owner usernames
FILE     input files (EXPDAT.DMP)    TOUSER       list of usernames
SHOW     just list file contents (N) TABLES       list of table names
IGNORE   ignore create errors (N)    RECORDLENGTH length of IO record
GRANTS   import grants (Y)           INCTYPE      incremental import type
INDEXES  import indexes (Y)          COMMIT       commit array insert (N)
ROWS     import data rows (Y)        PARFILE      parameter filename
LOG      log file of screen output   CONSTRAINTS  import constraints (Y)
DESTROY                overwrite tablespace data file (N)
INDEXFILE              write table/index info to specified file

说明:
SHOW:该参数为N的时候是仅仅列出dump文件的内容,因此当指定为Y的时候不会导入任何对象。
INDEXFILE:如果指定了该参数则强制imp产生一个脚本,而不会导入任何对象到数据库。如果想要导入表时,移除该参数。

4、相关参考
     expdp impdp中 exclude/include 的使用
     使用 Oracle Datapump API 实现数据导出
     导入导出 Oracle 分区表数据
     数据泵 EXPDP 导出工具的使用
     数据泵IMPDP 导入工具的使用

 

5、更多参考

有关Oracle RAC请参考
     使用crs_setperm修改RAC资源的所有者及权限
     使用crs_profile管理RAC资源配置文件
     RAC 数据库的启动与关闭
     再说 Oracle RAC services
     Services in Oracle Database 10g
     Migrate datbase from single instance to Oracle RAC
     Oracle RAC 连接到指定实例
     Oracle RAC 负载均衡测试(结合服务器端与客户端)
     Oracle RAC 服务器端连接负载均衡(Load Balance)
     Oracle RAC 客户端连接负载均衡(Load Balance)
     ORACLE RAC 下非缺省端口监听配置(listener.ora tnsnames.ora)
     ORACLE RAC 监听配置 (listener.ora tnsnames.ora)
     配置 RAC 负载均衡与故障转移
     CRS-1006 , CRS-0215 故障一例 
     基于Linux (RHEL 5.5) 安装Oracle 10g RAC
     使用 runcluvfy 校验Oracle RAC安装环境

有关Oracle 网络配置相关基础以及概念性的问题请参考:
     配置非默认端口的动态服务注册
     配置sqlnet.ora限制IP访问Oracle
     Oracle 监听器日志配置与管理
     设置 Oracle 监听器密码(LISTENER)
     配置ORACLE 客户端连接到数据库

有关基于用户管理的备份和备份恢复的概念请参考
     Oracle 冷备份
     Oracle 热备份
     Oracle 备份恢复概念
     Oracle 实例恢复
     Oracle 基于用户管理恢复的处理
     SYSTEM 表空间管理及备份恢复
     SYSAUX表空间管理及恢复
     Oracle 基于备份控制文件的恢复(unsing backup controlfile)

有关RMAN的备份恢复与管理请参考
     RMAN 概述及其体系结构
     RMAN 配置、监控与管理
     RMAN 备份详解
     RMAN 还原与恢复
     RMAN catalog 的创建和使用
     基于catalog 创建RMAN存储脚本
     基于catalog 的RMAN 备份与恢复
     RMAN 备份路径困惑
     使用RMAN实现异机备份恢复(WIN平台)
     使用RMAN迁移文件系统数据库到ASM
     linux 下RMAN备份shell脚本
     使用RMAN迁移数据库到异机

有关ORACLE体系结构请参考
     Oracle 表空间与数据文件
     Oracle 密码文件
     Oracle 参数文件
     Oracle 联机重做日志文件(ONLINE LOG FILE)
     Oracle 控制文件(CONTROLFILE)
     Oracle 归档日志
     Oracle 回滚(ROLLBACK)和撤销(UNDO)
     Oracle 数据库实例启动关闭过程
     Oracle 10g SGA 的自动化管理
     Oracle 实例和Oracle数据库(Oracle体系结构)

登录 后评论
下一篇
云栖号资讯小编
1842人浏览
2020-05-25
相关推荐
IMPDP
1128人浏览
2017-12-07 11:20:00
数据泵IMPDP 导入工具的使用
879人浏览
2010-10-08 09:11:00
导入导出 Oracle 分区表数据
639人浏览
2011-03-13 19:39:00
EXP/IMP 学习(四)
605人浏览
2010-06-25 18:47:02
关于exp/imp的总结学习
674人浏览
2015-01-25 22:53:57
oracle exp/imp命令详解
742人浏览
2017-01-12 13:15:00
oracle中exp/imp详解
888人浏览
2017-11-08 02:55:00
0
0
0
750