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 upzone@upzone.us.oracle.com;
Ref:Oracle 通用串連和透明網關
Oracle下配置透明網關訪問MS SQL SERVER