通过使用pdo_ibm或ibm_db2扩展名的Windows机器上的php客户端在i5 / os上连接到远程DB2 [英] Connecting to remote DB2 on i5/os through a php client on a windows machine using pdo_ibm or ibm_db2 php extensions
问题描述
对于DB2,Doctrine2仅支持pdo_ibm和ibm_db2驱动程序。
我安装了一个DB2的本地实例(DB2 Express-C)并与pdo_ibm和ibm_db2成功连接,甚至使用本地db2实例,我的doctrine2安装工作正常,功能正常,
,但我的真正目的是连接到在i5 / os上运行的远程DB2实例。与此(远程)DB2的远程连接只能使用odbc和PDO_ODBC,但pdo_ibm和ibm_db2失败,导致以下错误:
无法连接SQLSTATE = 42968,SQLDriverConnect:-1598 [IBM] [CLI
驱动程序] SQL1598N由于许可问题,尝试连接到数据库服务器失败
。 SQLSTATE = 42968
用于连接函数的原则 db2_connect
,但对于i5可以使用 obdc_connect
连接。做测试并看看结果。 db2_connect
也可用于PECL库
I want to use Doctrine2 ORM in my php application.
For DB2, Doctrine2 supports only pdo_ibm and ibm_db2 drivers.
I installed a local instance of DB2 (DB2 Express-C) and conneceted with pdo_ibm and ibm_db2 successfully and even using the local db2 instance my doctrine2 installation works fine and is functional,
but my real aim is to connect to a remote DB2 instance running on a i5/os. Remote connections to this (remote) DB2 works only using odbc and PDO_ODBC but fails with pdo_ibm and ibm_db2 resulting in the following error:
Could not connect SQLSTATE=42968, SQLDriverConnect: -1598 [IBM][CLI Driver] SQL1598N An attempt to connect to the database server failed because of a licensing problem. SQLSTATE=42968
Doctrine used to connect the function db2_connect
, but for i5 can connect using obdc_connect
. Do tests and see the results. db2_connect
is also available with PECL libraries
这篇关于通过使用pdo_ibm或ibm_db2扩展名的Windows机器上的php客户端在i5 / os上连接到远程DB2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!