配置TRANSPARENT GATEWAY FOR Sybase步驟
Oracle_HOME\tg
設置參數
HS_FDS_CONNECT_INFO
格式
HS_FDS_CONNECT_INFO= server_name
server_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
上例中
server_name是migration_serv
database_name是tax
默認路徑
加入如下
SID_LIST_LISTENER=(SID_LIST=(SID_DESC=(SID_NAME= gateway_sid)(ORACLE_HOME= oracle_home_directory)(PROGRAM=tg
gateway_sid就是
oracle_home_directory是ORACLE_HOME
tg
例子如下
(SID_DESC=(SID_NAME=tg
lsnrctl stop
重新啟動監聽程序
lsnrctl start
connect_descriptor=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP) (HOST= host_name)(PORT= port_number)) (CONNECT_DATA=(SID= gateway_sid))(HS=OK))
connect_descriptor是連接串
host_name
port_number
gateway_sid就是
例子如下
sybs=(DESCRIPTION=(ADDRESS_LIST =(ADDRESS=(PROTOCOL=TCP) (HOST= dw
如
CREATE DATABASE LINK sybs CONNECT TO sa IDENTIFIED BY prient USING
即可訪問sybase 數據庫
需要注意的是
如
SQL〉select
Oracle訪問Sybase數據庫的方法
From:http://tw.wingwit.com/Article/program/Oracle/201311/18551.html