免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 8014 | 回复: 3
打印 上一主题 下一主题

求助Informix Setnet32设置问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-03 23:24 |只看该作者 |倒序浏览
数据库服务器是在Unix下的Informix9
在windowsxp下INFORMIX.CSDK.2.81.TC2 被安装在C:\informix
在C:\WINDOWS\system32\drivers\etc\hosts文件中加了:
  xxx.xxx.xxx.xxx    abc   (abc是unix的host name)
在C:\WINDOWS\system32\drivers\etc\services文件中加了:
  ppp    8765/tcp    (services name 与unix下/informix/etc/sqlhosts和/etc/services中都一致)

设置Setnet32如下:
environment:
  informixdir = C:\Informix\Client-SDK\
  informixserver = test_bm  (此处是服务器中数据库别名)
  informixsqlhosts =   (不知道怎么写,是把C:\WINDOWS\system32\drivers\etc\services写上吗? 但是设置后又报错: could not open the registry)
server information:
  ibm informix server: test_bm
  host name: abc
  protocolname: onsoctcp
  service name: ppp
host information:
  current host: abc
  user name: person    (登录unix的帐户名)
  password option: password
  password: ********    (登录unix的帐户口令)

在使用ilogin demo进行连接测试时:
  server: test_bm
  hostname: abc
  servicename: ppp
  protocalname: onsoctcp
  username: person
  password: ********
  stores database: per    (per是test_bm中的一个数据库)
在测试时报错: -931
  cannot locate servicename service/tcp service in /etc/services.

在增加ODBC数据源时是按照上述的设置对ODBC设置的, 但在connection中使用apply&test connection进行测试时也报错:
  test connection was not successful.[informix][informix odbc driver][informix]connot locate ppp service/tcp service in /etc/services.

上述问题是不是因为设置Setnet32中environment中informixsqlhosts没有设置造成的呢? 我应该怎么设置才是对的?

这有就是在unix中, /etc/services文件是个链接文件, 会不会需要在windows客户端进行特殊设置? 谢谢专家快帮帮我吧, 我快急死了!

论坛徽章:
0
2 [报告]
发表于 2006-08-04 09:32 |只看该作者
简单省事和配法:
environment:
若使用ODBC则使用默认值即可,若使用Ifx连接则只配informixserver即可;
server information:
  ibm informix server: test_bm
  host name: xxx.xxx.xxx.xxx
  protocolname: onsoctcp
  service name: 8765
host information:
  current host: abc
  user name: person    (登录unix的帐户名)
  password option: password
  password: ********    (登录unix的帐户口令)

论坛徽章:
0
3 [报告]
发表于 2006-08-07 20:50 |只看该作者
解决了,在environment中就配了两项:
  informixdir = C:\Informix\Client-SDK\
   informixserver = test_bm  (此处是服务器中数据库别名)
   informixsqlhosts根本就不用配!不知道为什么好多人要配这个参数,害的我现在才知道!!不过还是很高兴的!阿哈哈...阿哈哈

感谢楼上

[ 本帖最后由 uuw 于 2006-8-7 20:51 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2006-08-09 20:19 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP