dblink的創建

 

在自己本地運行服務器下運行下面這段script

create database link test
 connect to gkl identified by gkl
 using
'LinuxORCL'

LinuxORCL 是本地tnsname.ora配置的,其中yourhostIP是需要遠程連接的服務器IP

LinuxORCL =

 (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = TCP)(HOST = yourhostIP)(PORT = 1521))

    )

    (CONNECT_DATA =

      (SERVICE_NAME = orcl)

    )

 )

你可能感兴趣的:(DBlink)