- 论坛徽章:
- 0
|
数据库服务器是在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客户端进行特殊设置? 谢谢专家快帮帮我吧, 我快急死了! |
|