论坛首页 入门技术论坛

oracle link

浏览 2481 次
锁定老帖子 主题:oracle link
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2008-11-04   最后修改:2009-02-05
create database link 名称

connect to 连接数据库的用户名 identified by 密码

using '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 连接数据库得地址)(PORT = 1521))
)
(CONNECT_DATA =
  (SERVICE_NAME =服务名)
)
)';

--从oa测试库连到hr正式库
create database link mthhrsys
connect to hrsys identified by hrsys
using '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.1.18)(PORT = 1521))
)
(CONNECT_DATA =
  (SERVICE_NAME = mthtest)
)
)';
论坛首页 入门技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics