【发布时间】:2012-05-18 03:58:21
【问题描述】:
我使用的是 Oracle 11,但在两个数据库之间移动表时遇到问题。我已经成功导出了一个datadumb,如下:
expdp.exe www/www@xe tables=TABLE1,TABLE2,TABLE3 directory=dmpdir dumpfile=tables.dmp
当我尝试:
impdp.exe www2/www2@xe tables=TABLE1,TABLE2,TABLE3 directory=dmpdir dumpfile=tables.dmp
结果我得到了以下异常:
ORA-39002: invalid operation
ORA-39166: Object WWW2.TABLE1 was not found.
ORA-39166: Object WWW2.TABLE2 was not found.
ORA-39166: Object WWW2.TABLE3 was not found.
如果我尝试:
impdp.exe www2/www2@xe remap_tables=WWW2:TABLE1,TABLE2,TABLE3 directory=dmpdir dumpfile=tables.dmp
我明白了:
LRM-00101: unknown parameter name 'remap_tables'
在我的情况下,我无法使用数据库链接。导入和导出表时如何更改架构?我是否以某种方式误解了 Oracle?
【问题讨论】: