1. 程式人生 > >oracle資料庫建立dblink

oracle資料庫建立dblink

1、給使用者建立dblink許可權:

grant create public database link to xx; 

2、建立 db_link

create database link link_xx
  connect to orcl

  identified by xx

  using '(DESCRIPTION =(ADDRESS_LIST =(ADDRESS =(PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = orcl)))';

3、檢視db_links

select * from dba_db_links