[PHP-users 4237] PHP4からIBMのDB2接続

Unicorn 西 田 勝 秀 php-users@php.gr.jp
Tue, 11 Dec 2001 19:08:05 +0900


This is a multi-part message in MIME format.

------=_NextPart_000_000B_01C18277.29881DB0
Content-Type: text/plain;
	charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit


はじめまして。
西田です。

過去ログを参考に設定しようとしているのですが、
どうしてもつながりません。

参考過去ログ
[PHP-jp 10550]
[PHP-jp 10566]
[PHP-jp 10600]
[PHP-jp 10605]
[PHP-jp 10626]
[PHP-users 3495]
[PHP-users 3516]
[PHP-users 3519]
[PHP-users 3486]
[PHP-users 3488]
[PHP-users 3491]

環境は、Apache 1.3.20 , PHP 4.0.6 , IBM DB2 7.1 です。
WEBとDBは別サーバーになっています。
DB2コマンドでは、接続確認が出来るのですが、
PHPの「odbc_connect」では、
下記メッセージが出力されてしまいます。

Warning: SQL error: [unixODBC][Driver Manager]
         Data source name not found, 
         and no default driver specified, 
         SQL state IM002 in SQLConnect

どなたかお解りになられた方がいらっしゃいましたら
ご教授の程宜しく御願い致します。





------=_NextPart_000_000B_01C18277.29881DB0
Content-Type: text/html;
	charset="iso-2022-jp"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-2022-jp">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>&nbsp;</DIV>
<DIV>=1B$B$O$8$a$^$7$F!#=1B(B</DIV>
<DIV>=1B$B@>ED$G$9!#=1B(B</DIV>
<DIV>&nbsp;</DIV>
<DIV>=1B$B2a5n%m%0$r;29M$K@_Dj$7$h$&$H$7$F$$$k$N$G$9$,!"=1B(B</DIV>
<DIV>=1B$B$I$&$7$F$b$D$J$,$j$^$;$s!#=1B(B</DIV>
<DIV>&nbsp;</DIV>
<DIV>=1B$B;29M2a5n%m%0=1B(B</DIV>
<DIV>
<DIV>[PHP-jp 10550]
<DIV>[PHP-jp 10566]
<DIV>[PHP-jp 10600]
<DIV>[PHP-jp 10605]</DIV>
<DIV>
<DIV>[PHP-jp 10626]</DIV>
<DIV>
<DIV>[PHP-users 3495]</DIV></DIV>
<DIV>
<DIV>[PHP-users 3516]</DIV>
<DIV>
<DIV>[PHP-users 3519]</DIV>
<DIV>
<DIV>[PHP-users 3486]</DIV></DIV></DIV></DIV>
<DIV>
<DIV>[PHP-users 3488]</DIV>
<DIV>
<DIV>[PHP-users 3491]</DIV></DIV></DIV>
<DIV>&nbsp;</DIV></DIV></DIV></DIV></DIV></DIV>
<DIV>=1B$B4D6-$O!"=1B(BApache 1.3.20 , PHP 4.0.6 , IBM DB2 7.1 =
=1B$B$G$9!#=1B(B</DIV>
<DIV>=1B$B#W#E#B$H#D#B$OJL%5!<%P!<$K$J$C$F$$$^$9!#=1B(B</DIV>
<DIV>=1B$B#D#B#2%3%^%s%I$G$O!"@\B33NG'$,=3DPMh$k$N$G$9$,!"=1B(B</DIV>
<DIV>=1B$B#P#H#P$N!V=1B(Bodbc_connect=1B$B!W$G$O!"=1B(B</DIV>
<DIV>=1B$B2<5-%a%C%;!<%8$,=3DPNO$5$l$F$7$^$$$^$9!#=1B(B</DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG>Warning</STRONG>: SQL error: [unixODBC][Driver =
Manager]</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Data source name =
not=20
found, </DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and no default =
driver=20
specified, </DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SQL state IM002 in =

SQLConnect</DIV>
<DIV>&nbsp;</DIV>
<DIV>=1B$B$I$J$?$+$*2r$j$K$J$i$l$?J}$,$$$i$C$7$c$$$^$7$?$i=1B(B</DIV>
<DIV>=1B$B$465<x$NDx59$7$/8f4j$$CW$7$^$9!#=1B(B</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_000B_01C18277.29881DB0--