linux下怎么用exp和imp导出和导入指定的oracle数据库表?

如题所述

第1个回答  推荐于2019-08-20
exp help=y
imp help=y
说的很清楚
数据库归档不归档都可以,scott是一个用户名,tiger是这个用户的密码,举两个例子
exp scott/tiger owner=scott file=temp.dmp log=temp.log
exp scott/tiger tables=(emp,dept) file=temp.dmp log=temp.log本回答被网友采纳
第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
相似回答