oracle数据和透明网关装在同一台机器上,sqlserver 2005装在服务器上,两台电脑可以连通
透明网关配置如下
Listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = histest)
(ORACLE_HOME = D:\oracle\product\10.2.0\tg_2)
(PROGRAM = tg4msql)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = GGM6FP6PDNILV1Y)(PORT = 1522))
)
)
g4msql 目录下的inithistest.ora
HS_FDS_CONNECT_INFO="172.16.0.5;DATABASE=his_test"
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
重新启动listener;
oracle数据库地址
D:\oracle\product\10.2.0\db_1
配置tnsnames.ora
histest2 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.1.21)(PORT = 1522))
)
(CONNECT_DATA =
(SID = histest)
)
(HS = OK)
)
然后建立dblink:
create database link histest2 connect to "his_test" identified by "his_test" using 'histest2'
测试访问:
select * from gy_test@histest2
然后就卡死一直查询不出来
------解决方案--------------------
两天没人回复,唉,看来都过节去了,祝大家节日快乐吧