Informix 问题 (ifx_connect)

发布于 2024-11-07 14:54:46 字数 519 浏览 4 评论 0原文

您好,我在安装 informix 客户端 sdk 后遇到问题(参考:http://www.debian-administration.org/article/651/Connect_to_Informix_using_PHP5_on_Lenny_x86_64)

操作系统:CentOS

这是我用来连接的 .php 文件

$db_conn = ifx_connect("dbname@ IPHost","用户","通行证");

这里有一些错误, 警告:ifx_connect() [function.ifx-connect]: E [SQLSTATE=IX 001 SQLCODE=-1829] in /var/www/html/index.php on line 5

有人知道解决方案吗? 谢谢

Hi I have a problem after installed informix client sdk (Ref : http://www.debian-administration.org/article/651/Connect_to_Informix_using_PHP5_on_Lenny_x86_64)

OS : CentOS

Here is the .php file that i use to connect

$db_conn = ifx_connect("dbname@IPHost","user","pass");

There is some error here,
Warning: ifx_connect() [function.ifx-connect]: E [SQLSTATE=IX 001 SQLCODE=-1829] in /var/www/html/index.php on line 5

is anyone know the solution ?
Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱殇璃 2024-11-14 14:54:46

从 Informix 中查找有关错误的更多信息的方法通常是:(

$ finderr -1829
-1829   Cannot open file citoxmsg.pam.

The file citoxmsg.pam is missing from the directory $INFORMIXDIR/msg.

If this error occurs, note all circumstances and contact IBM Technical Support.
$

给出或去掉一些空行。)finderr 命令位于 $INFORMIXDIR/bin 中。您需要在环境中设置 $INFORMIXDIR ,除非 /usr/informix 正确 - 它可能是实际软件目录的符号链接。

有两种可能性:

  1. 当 PHP 运行时,您没有在环境中设置 INFORMIXDIR,和/或 php.ini 文件没有为 $INFORMIXDIR 定义值,或者该值设置不正确,或者是默认值(很可能 < code>/usr/informix) 正在使用,但该软件未安装在那里。
  2. 安装未完成 - 如前所述,相关消息文件丢失。

在这两者中,我认为原因 1 的可能性更大。

SQLSTATE 的 IX001 值没有多大用处 - 它是通用的“Informix 出了问题”消息。 SQLCODE 更重要、更有帮助。

The way you find more about errors from Informix is often:

$ finderr -1829
-1829   Cannot open file citoxmsg.pam.

The file citoxmsg.pam is missing from the directory $INFORMIXDIR/msg.

If this error occurs, note all circumstances and contact IBM Technical Support.
$

(Give or take some blank lines.) The finderr command is found in $INFORMIXDIR/bin. You need $INFORMIXDIR set in the environment unless /usr/informix is correct - it could be a symlink to the actual software directory.

There are two possibilities:

  1. You have not got INFORMIXDIR set in the environment when PHP is run, and/or the php.ini file does not define a value for $INFORMIXDIR, or the value is set incorrectly, or a default (quite possibly /usr/informix) is being used but the software is not installed there.
  2. The installation is not complete - the relevant message file is missing as noted.

Of the two, I think reason 1 is much the more likely.

The IX001 value for SQLSTATE is of minimal use - it is the generic 'something went wrong with Informix' message. The SQLCODE is much more significant and helpful.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文