免费注册 查看新帖 |

Chinaunix

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

客户机连接数据库时报931错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-04-20 18:50 |只看该作者 |倒序浏览

在SCO UNIX系统下,数据库服务器为online 7.30,UNIX客户机装了informix 5.10
$informixdir/etc/sqlhosts为
online ontlitcp servername sqlexec
/etc/services中设为
sqlexec 9777/tcp
此时,客户机连接数据库成功;并且WINDOWS客户机也连接数据库成功。

后因工作需要,将服务名改为gjsqlexec,即
$informixdir/etc/sqlhosts为
online ontlitcp servername gjsqlexec
/etc/services中设为
gjsqlexec 9777/tcp
此时,服务器端连接数据库成功,WINDOWS客户机连接数据库也成功,但UNIX客户机端连接数据库失败,报931错。
-931    Cannot locate servicename service/tcp service in /etc/services.

The service noted is not listed in the network configuration file
/etc/services (UNIX) or \etc\services (DOS). Check the
$INFORMIXDIR/etc/sqlhosts file and make sure that the service
name for the desired server is correct. If so, contact your network
administrator and find out why the service is not known. If you are
using INFORMIX-OnLine for NetWare, check the \etc\services file
on the client for the required entries.

将服务名改回sqlexec,则连接又正常了,为什么?

论坛徽章:
0
2 [报告]
发表于 2004-04-20 20:37 |只看该作者

客户机连接数据库时报931错

sqlhosts文件也要改撒

论坛徽章:
0
3 [报告]
发表于 2004-04-21 09:08 |只看该作者

客户机连接数据库时报931错

提示已经很清楚了,
The service noted is not listed in the network configuration file
/etc/services (UNIX) or \etc\services (DOS). Check the
$INFORMIXDIR/etc/sqlhosts file and make sure that the service
name for the desired server is correct.
可能你书写时有错误,重新该回来试试,注意Tab键分隔

论坛徽章:
0
4 [报告]
发表于 2004-04-21 18:43 |只看该作者

客户机连接数据库时报931错

satoni:sqlhosts文件肯定也改了。
Bread2003:语法肯定没错。

没办法,只能用服务名sqlexec了。
推论:informix online 5.10 的 star 只认服务名sqlexec。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP