+ -
当前位置:首页 → 问答吧 → impdp导入失败

impdp导入失败

时间:2011-12-22

来源:互联网

我这里遇到了这样一个问题
有一个用户user1 把它整库 expdp出来 为 user1.dmp

通过user1.dmp恢复出一个 user2。并对user2中的数据进行了一些修改,可是一不小心将user2中的表table1的部分数据删除了

如何通过user1.dmp,将user2中表table1的数据恢复出来?

我自己尝试了一些方法
impdp user2/password directory=dump dumpfile=user1.dmp
remap_schema=user1:user2
remap_table=user1.table1:user2.table1
tables=user1.table1 (由于只想恢复table1这一张表)
table_exists_action=replace (由于要恢复数据,所以需要replace)


结果很奇怪
在我的 user2中出现了一个新的表 :“user2.table1”

作者: singzero   发布时间: 2011-12-22

引用楼主 singzero 的回复:
我这里遇到了这样一个问题
有一个用户user1 把它整库 expdp出来 为 user1.dmp

通过user1.dmp恢复出一个 user2。并对user2中的数据进行了一些修改,可是一不小心将user2中的表table1的部分数据删除了

如何通过user1.dmp,将user2中表table1的数据恢复出来?

我自己尝试了一些方法
impdp user2/password……

大哥,开启回收站了没?
SQL code

SQL> show parameter recyclebin;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
recyclebin                           string      on
SQL> 
开启了的话,就可以直接flashback table

作者: jym2002   发布时间: 2011-12-22