IBM ODBC Driver
| From: | Mirko Nalesso | Date: | Mon, 17 Jul 2000 21:04:49 +0000 |
| Subject: | IBM ODBC Driver | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-1218@lists.php.net to get a copy of this message | ||
Hi,
I have a problem with IBM ODBC driver. I have installed
IBM DB2 V6.1, php-4.0.1pl2, apache 1.3.12 , UnixODBC
on Red Hat 6.2.
A sample script (for connect with DB2 through ODBC ) get this output:
Warning: SQL error: [IBM][CLI Driver] CLI0150E Driver not capable.
SQLSTATE=S1C00, SQL state S1C00 in SQLSetConnectOption in
/home/db2inst1/htdocs/odbc.php on line 33
BAD CONNECTION Number -->
My .odbc.ini file is:
[sample]
Description = Test to DB2
Driver = DB2
and my odbcinst.ini file is:
[DB2]
Description = DB2 driver
Driver = /usr/IBMdb2/V6.1/lib/libdb2.so
FileUsage = 1
DontDLClose = 1
In my computer there isn't db2.o file or odbclib directory
in db2inst1 home. Is this absence the cause of my problem?
Where can I find (or how can I generate) these files?
Best regards.
Mirko