在自己本地運行服務器下運行下面這段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)

    )

 )

posted on 2008-12-24 09:10  Oracle  阅读(199)  评论(0编辑  收藏  举报