Oracle:将现有表从dmp导入新表

Oracle:将现有表从dmp导入新表,oracle,shell,impdp,Oracle,Shell,Impdp,我可以使用下面的命令导出表 exp usr1/user1@tes tables=table1 file=/myfoler/export/parties.dmp log=/myfoler/export/parties.log statistics=none direct=y 但当我尝试将dmp文件导入到新表时,它失败了 imp usr1/user1@tes file=/myfoler/export/parties.dmp buffer=131072 commit=y log=/myfoler/e

我可以使用下面的命令导出表

exp usr1/user1@tes tables=table1 file=/myfoler/export/parties.dmp log=/myfoler/export/parties.log statistics=none direct=y
但当我尝试将dmp文件导入到新表时,它失败了

imp usr1/user1@tes file=/myfoler/export/parties.dmp buffer=131072 commit=y log=/myfoler/export/parties_imp.log feedback=1000 ignore=Y tables=export_test
这样做时,我得到了以下错误

IMP-00033:警告:在导出文件中找不到表“导出测试”


有人能帮我理解我哪里出了问题吗?我想将转储导入已创建的新表。

您需要使用
REMAP\u table
选项

REMAP_TABLE=[schema.]old_tablename[.partition]:new_tablename

我相信如果使用impdp,只要新的表名不存在,就可以使用相同的模式。REMAP_TABLE选项在使用imp时不可用,我认为您需要导入一个新的temp模式,然后使用新的tablename在原始模式中执行cta