WINDOW7下Oracle 11g2 GateWay for sybase的安装和配置.docx
文本预览下载声明
WINDOW7下Oracle 11g2 GateWay的安装和配置
安装准备
根据window7的版本,下载对应的Oracle11gGateWay版本
Oracle11gGateWay的版本分为:
win32bit
下载地址: /otn/nt/oracle11g/112010/win32_11gR2_gateways.zip
win64bit
下载地址: HYPERLINK /otn/nt/oracle11g/112010/win64_11gR2_gateways.zip /otn/nt/oracle11g/112010/win64_11gR2_gateways.zip
GateWay对Oracle database的window版本并无特别要求,但GateWay必须与window的版本相符,否则会出现GateWay在调用dg4sybs时,出现找不到系统文件的错误。
本文配置的软件版本如下:
OS: window7 64bit 专业版
Oracle database : OracleXE 11g2
Sybase database : Sybase 15.7
Oracle Gateway : Oracle GateWay 11g2 64bit
Oracle和sybase的数据库安装在同一台机器
安装过程
安装Sybase database,安装目录为E:\Sybase_15.7
安装Oracle databse,安装目录e:\oraclexe\app\oracle\product\11.2.0
Oracle database安装使用默认配置??数据库端口1521
安装Oracle GateWay,安装目录 e:\oraclexe\app\oracle\product\11.2.0\gateway
Gateway 安装中要求配置listener,端口使用 1522
配置过程
Sybase修改sa用户密码,因oracle database link须使用密码方式连接sybase;
修改Oracle Gateway的init[SID].ora文件
e:\oraclexe\app\oracle\product\11.2.0\gateway\dg4sybs\admin\initdg4sybs.ora
红色字体部分是连接sybase时使用的SID_NAME,在后续listener.ora和tnsnames.ora配置中的SID_NAME的均需与此处的红色字体部分相同。
文件案例如下:
/******************************************************************/
# This is a customized agent init file that contains the HS parameters
# that are needed for the Database Gateway for Sybase
#
# HS init parameters
#
HS_FDS_CONNECT_INFO=:5000/microfinance
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
/******************************************************************/
HS_FDS_CONNECT_INFO=服务器地址或主机名:端口/数据库名
修改oracle Gateway程序的listener.ora
文件目录e:\oraclexe\app\oracle\product\11.2.0\gateway\NETWORK\ADMIN
/*********************************************************************/
# listener.ora Network Configuration File: E:\oraclexe\app\oracle\product\11.2.0\gateway\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(PROGRAM=dg4sybs)
(SID_NAME=dg4sybs)
(ORACLE_HOME=e:\oraclexe\app\oracle\product\11.2.0\gateway)
显示全部