背景:
我的SCOTT下只有一个表:test1
tom 下没有test1
目的:将scott的所有东西导入到tom:
—————————————————华丽分割线——————————————————————
1. 讲scott 模式下的所有对象导出来:
expdp system/oracle directory=data_pump_dir SCHEMAS=scott dumpfile=scottfull.dump
这里最好使用system或sys等高级权限。
2.impdp system/oracle directory=data_pump_dir dumpfile=scottfull.dump REMAP_schema=scott:tom
主要注意:remap
3.查看tom模式空间 ,发现表test1(原先属于scott)已经存在。