WEB开发网
开发学院数据库Sybase 配置TRANSPARENT GATEWAY FOR SYBASE步骤 阅读

配置TRANSPARENT GATEWAY FOR SYBASE步骤

 2010-02-07 15:12:19 来源:WEB开发网   
核心提示:1.oracle所在服务器上安装sybase client(或者在同一台server上安装oracle、sybase服务器),确保能够访问sybase数据库;2.安装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
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

上例中

server_name是migration_serv

database_name是tax

5.配置oracle网络服务的listener,配置文件是:listener.ora

默认路径:ORACLE_HOME etworkadmin

加入如下:

SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME= gateway_sid)
(ORACLE_HOME= oracle_home_directory)
(PROGRAM=tg4sybs)
)
)

1 2  下一页

Tags:配置 TRANSPARENT GATEWAY

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接