将用户SCOTT schema 下的所有对象导入到用户TOM中

来源:互联网 发布:怎么连接网络 编辑:程序博客网 时间:2024/04/27 19:00

背景:

我的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)已经存在。 





0 0
原创粉丝点击