数据迁移dblinks

試著忘記壹切 提交于 2020-03-21 10:37:00

lpl =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.1)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = test1)
    )
  )


msi =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.2)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = test2)
    )
  )

tnsping lpl
tnsping msi



create public database link jd
connect to test identified by "112233"
using 'msi';

test/112233


select * from test.test1@jd;


create table xxx as select * from xxx@DBLINK名称 来实现的


revoke dba from test;
grant select any dictionary to test;


select * from session_privs;

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!