Oracle 透明网关

1. 安装oracle 的transparent gateway 透明网关。

安装Oracle选择自定义安装,然后再选择安装透明网关,再进去选择安装FOR SQL Server的组件。

注意,对于Oracle 9i 只支持MS-SQL Server 2000,不支持2005

安装完后,注意在oracle 安装目录下多了一个目录C:\oracle\ora92\tg4msql\

2. 找到C:\oracle\ora92\tg4msql\admin目录下的inittg4msql.ora文件,修改如下

HS_FDS_CONNECT_INFO="SERVER=biztalk2006;DATABASE=upzone"
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER

说明 可以通过Oracle工具中的Migration WorkBench 进行配置。(过程中需要配置ODBC)

3. 建立监听,修改C:\oracle\ora92\network\admin目录下的listener.ora文件,

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = C:\oracle\ora92)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (GLOBAL_DBNAME = ORA9)
      (ORACLE_HOME = C:\oracle\ora92)
      (SID_NAME = ORA9)
    )
   (SID_DESC =
      (GLOBAL_DBNAME = tg4msql)
      (SID_NAME =upzone)
      (ORACLE_HOME = C:\oracle\ora92)
      (PROGRAM = tg4msql)
     )

  )

4. 修改TNS(tnsnames.ora)

upzone =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = BizTalk2006)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SID = upzone)
    )
    (HS = OK)
  )

5. 重启服务

Oracle Listener

6.创建DBLink,

create public database link UPZONE.US.ORACLE.COM
  connect to SA identified by upzone      --User Id & Password for MS-SQL
  using 'upzone';

 

select * from [email protected];

 

Ref:Oracle 通用连接和透明网关

Oracle下配置透明网关访问MS SQL SERVER

你可能感兴趣的:(oracle)