免费注册 查看新帖 |

Chinaunix

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

急问sql语句问题!!!!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-06-22 11:15 |只看该作者 |倒序浏览
ifx 9.4版本
dbaccess dbname <<!

select * from dbname@informixservername:tablename
显示出错了:

  908: Attempt to connect to database server (informixservername, conerr=-25555, oserr=0)
failed.
但是在另外一台同样的机器上是可以有结果出来的。
到底是informix那个地方配置出了问题,请高手指点啊!!!

ps:select * from dbname:tablename是可以执行出来的。

论坛徽章:
5
荣誉会员
日期:2011-11-23 16:44:17CU大牛徽章
日期:2013-09-18 15:15:15CU大牛徽章
日期:2013-09-18 15:15:45未羊
日期:2014-02-25 14:37:19射手座
日期:2014-12-26 22:55:37
2 [报告]
发表于 2004-06-22 11:21 |只看该作者

急问sql语句问题!!!!!!

-25555  Server server-name is not listed as a dbserver name in sqlhosts.

The database server name that is mentioned in the current command is
not listed in the sqlhosts file. Check the server name for accuracy.
Check that all database servers to be accessed are included in the
sqlhosts file.

If you are using IBM Informix SE, your current working directory might be
an NFS-mounted directory. Change your current working directory to a
local directory, or add appropriate local directories to your DBPATH.

论坛徽章:
0
3 [报告]
发表于 2004-06-22 11:21 |只看该作者

急问sql语句问题!!!!!!

补充:sql中指定的informixservername是本地的ifx server来的。所以不存在网络的问题和信任机制的问题

论坛徽章:
0
4 [报告]
发表于 2004-06-22 11:25 |只看该作者

急问sql语句问题!!!!!!

sqlhosts文件肯定写了servername的,我直接用:
dbaccess dbname@server-name <<!
是没有问题的。现在主要是在sql语句中指定dbname@server-name就不行了。

原帖由 "wolfop" 发表:
-25555  Server server-name is not listed as a dbserver name in sqlhosts.

The database server name that is mentioned in the current command is
not listed in the sqlhosts file. Check the server name..........

论坛徽章:
0
5 [报告]
发表于 2004-06-22 15:15 |只看该作者

急问sql语句问题!!!!!!

select * from dbname@informixservername:tablename
不能访问带日志的数据库,只能先connect该数据库,然后再select.

论坛徽章:
0
6 [报告]
发表于 2004-06-22 21:40 |只看该作者

急问sql语句问题!!!!!!

9.3 和 7。31 为什么可以啊

论坛徽章:
0
7 [报告]
发表于 2004-06-23 09:34 |只看该作者

急问sql语句问题!!!!!!

我这边7.31不可,不过是从sco访问saloris

论坛徽章:
0
8 [报告]
发表于 2004-06-23 15:31 |只看该作者

急问sql语句问题!!!!!!

我测试了一下,是可以的,我的版本是,9.3
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP