第2个回答 2019-02-07
例如将scott用户下所有表,导入到test用户下
1
exp
scott/tiger
file=scott.dmp
owner=scott
2
(1)
如果test用户下有scott的表,哪些需要先删除在导入
conn
test/test
select
'drop
table
'||table_name||'
purge;'
from
user_tables;
imp
test/test
file=scott.dmp
fromuser=scott
touser=test
(2)
如果test用户下没有scott用户的表,可以直接导入
imp
test/test
file=scott.dmp
fromuser=scott
touser=test