impdp过程中,报错ORA-39151

impdp过程中,报错ORA-39151: Table "SCOTT"."EMP" exists. All dependent metadata and data will be skipped due to table_exists_action of skip显示全部
impdp过程中,报错ORA-39151: Table "SCOTT"."EMP" exists. All dependent metadata and data will be skipped due to table_exists_action of skip收起
参与3

查看其它 1 个回答yhd_my的回答

yhd_myyhd_my数据库管理员北京信利恒丰科技发展有限公司
由于此表在导入过程中已存在,所以要使用参数TABLE_EXISTS_ACTION才可以导入成功。
参数说明:TABLE_EXISTS_ACTION=[SKIP | APPEND | TRUNCATE | REPLACE]
1. SKIP: 直接跳过,进行下一个对象操作。(默认)
2. APPEND: 在原有数据基础上继续追加
3. TRUNCATE: 先TRUNCATE,再完成数据插入
4. REPLACE: 先DROP表,然后创建表,最后完成数据插入

你可以用下面的命令操作试试,当然也可以根据自己要需要的参数来设定
impdp scott/tiger directory=dump_dir dumpfile=expdat.dmp table_exists_action=truncate
保险 · 2015-08-13
浏览6540

回答者

yhd_my
数据库管理员北京信利恒丰科技发展有限公司

yhd_my 最近回答过的问题

回答状态

  • 发布时间:2015-08-13
  • 关注会员:0 人
  • 回答浏览:6540
  • X社区推广