ORACLE實現異種數據庫連接服務的技術叫做透明網關(Transparent Gateway)。
目前ORACLE利用透明網關可以實現和SQL SERVER、SYBASE、DB2等多種主流數據庫的互聯。
現在通過oracle訪問sybase數據庫,把配置oracle9i TRANSPARENT GATEWAY FOR SYBASE的步驟寫成文檔,供需要的網友參考!
配置TRANSPARENT GATEWAY FOR SYBASE步驟
1.
oracle所在服務器上安裝sybase client(或者在同一台server上安裝oracle、sybase服務器)確保能夠訪問sybase數據庫
2.
安裝TRANSPARENT GATEWAY FOR SYBASE選件,要用自定義安裝。正確選擇sybase的安裝目錄
3.
選擇一個sid字符串准備賦給sybase數據庫。如:tg4sybs設置SYBASE的dll路徑到環境變量PATH(這一步很重要)
4.
修改初始化文件,默認的是:
ORACLE_HOME g4sybsadmininittg4sybs.ora
設置參數
HS_FDS_CONNECT_INFO
格式:HS_FDS_CONNECT_INFO= server_name. database_name[,INTERFACE= interface_file]
server_name. database_name是大小寫敏感的。
INTERFACE可選
例子:如下
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# This is a sample agent init file that contains the HS parameters that are
# needed for the Transparent Gateway for Sybase
#
# HS init parameters
#
HS_FDS_CONNECT_INFO=migration_serv.tax
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
#
# Environment variables required for Sybase
#
set SYBASE=d:sybase
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$