数据迁移dblinks

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;

posted on 2020-03-21 09:57  dataunix123  阅读(165)  评论(0编辑  收藏  举报