Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Database/JDBC/SQL/JDO/Hibernate  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 通过oracle透明网关连接其他数据库(sybase) [精华]
li_chuansong





发贴: 55
积分: 21
于 2003-07-22 16:44 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
要求:oracle必须装tg4选项,8i需下载tg4,9i默认安装时没装tg4
安装结束后需配置文件内容如下:
---------------------------------------------------------------------------
inittg4sybs.ora
# 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=QDGS-LCS.master
HS_FDS_TRACE_LEVEL=ON
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER

#
# Environment variables required for Sybase
#
set SYBASE=C:\\Sybase
set LD_LIBRARY_PATH=C:\Sybase\lib
---------------------------------------------------------------------------
listener.ora
# LISTENER.ORA Network Configuration File: D:\oracle\ora90\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = qdgs-lcs)(PORT = 1521))
)
)

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = tg4sybs)
(ORACLE_HOME = d:\oracle\ora90)
(PROGRAM = tg4sybs)
)
(SID_DESC =
(GLOBAL_DBNAME = study)
(ORACLE_HOME = D:\oracle\ora90)
(SID_NAME = study)
)
(SID_DESC =
(PROGRAM = extproc)
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle\ora90)
)
)

-----------------------------------------------------------------
tnsnames.ora

# TNSNAMES.ORA Network Configuration File: D:\oracle\ora90\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.

tg4sybs =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = qdgs-lcs)(PORT = 1521))
)
(CONNECT_DATA =
(SID = tg4sybs)
)
(HS = OK)
)

STUDY =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = qdgs-lcs)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = study)
)
)


九佰 edited on 2003-07-24 10:39


JAVA学习日子分享

话题树型展开
人气 标题 作者 字数 发贴时间
8264 [精华] 通过oracle透明网关连接其他数据库(sybase) li_chuansong 1975 2003-07-22 16:44

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923