数据泵通过dblink使用参数network_link执行IMPDP/EXPDP

ORCL1 是源端,ORCL2是目标端

1. IMPDP + network_link, 直接将源端数据导入到目标库中(DUMP文件不落地)

--在ORCL2上创建DBLINK到ORCL1

create [public] database link <link_name> connect to <user on export instance> identified by <password> using '<tnsnames connect string>';

create public database link scms_test connect to dbmt identified by  dbmt using '//192.168.1.144:1521/scms';

create public database link to_orcl1 connect to system identified by oracle using 'ORCL1';

--在ORCL2上执行IMPDP
$ impdp \'/ as sysdba \' directory=DUMP_DIR logfile=impdp_to_orcl2.log network_link=to_orcl1 schemas=scott
 

2 EXPDP + network_link, 直接将源端库上的数据,导出到目标端服务器上

--在ORCL2上创建DBLINK到ORCL1
create public database link to_orcl1 connect to system identified by oracle using 'ORCL1';

--在ORCL2上执行EXPDP,导出的DUMP文件在ORCL2上
expdp \'/ as sysdba \' directory=DUMP_DIR logfile=expdp_from_orcl1.log network_link=to_orcl1 schemas=scott parallel=2

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值