ITPub博客

首页 > 数据库 > Oracle > 20160805 dblink remote expdp

20160805 dblink remote expdp

原创 Oracle 作者:shihfa 时间:2017-01-10 16:26:25 0 删除 编辑
从133.224.202.57 创建一个dblink 连接 号线资源数据库133.224.202.74
源端:133.224.202.57
一下操作都是在源端进行

tnsnames.ora配置
hxzydb1 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 133.224.202.74)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = hxzydb)
    )
  )

创建dblink
create public database link shihf connect to system identified by xxss_911  using 'hxzydb1';

###system/xxss_911 是目标端号线资源数据库133.224.202.74 口令


创建expdp脚本
oracle:testmach1:/home/oracle:>cat 1.sh
expdp parfile=exp.par
oracle:testmach1:/home/oracle:>cat exp.par
userid=system/oracle  ##源端system口令
directory=expdp 
dumpfile=expdp.dump
logfile=expdp.log 
network_link=shihf
full=y

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26179376/viewspace-2132190/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 20160805 rman script
下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2013-11-05

  • 博文量
    62
  • 访问量
    65727