日期:2014-05-16  浏览次数:20504 次

oracle 创建dblink和同义词
-- 在xxx库下创建另一个xxx库的dblink
create database link TDAP
  connect to tdap identified by tdap
  using '(DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.40.134)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = fxjk)
    )
  )';

--创建模型表同义词
create or replace synonym PT_ZBGL_MX for TDAP.PT_ZBGL_MX@TDAP;

?

?