我安装了透明网关,
然后C:\Oracle\ora92\tg4msql\admin下的
inittg4msql.ora文件:
HS_FDS_CONNECT_INFO= "SERVER=SGTST01;DATABASE=cop2601 "
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
其中SGTST01是我的SQL server2000主机名,cop2601是我的SQL server 数据库名
LISTENER.ORA 文件增加:
(SID_DESC =
(GLOBAL_DBNAME = tg4msql)
(PROGRAM = tg4msql)
(SID_NAME = sql2000)
(ORACLE_HOME = C:\oracle\ora92)
)
tnsnames.ora里面增加:
sql =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = sgdev161)(PORT = 1521))
)
(CONNECT_DATA =
(SID = sql2000)
)
(HS = OK)
)
然后我创建DB link:
create database link db_sql
connect to copadmin
identified by copprog
using 'SGTST01 ';
--copadmin和copprog是SQL server的用户名和密码;
我每次查询
SQL> select * from dev@db_sql;
ORA-12541: TNS:no listener
搞不懂了,来请教;
------解决方案--------------------
连接作的有问题吧
------解决方案--------------------
还没有这么试过,sql连oracle可以的
在企业管理器里面建立连接服务器
------解决方案--------------------