dop20345 2014-11-14 20:32
浏览 66

将Ubuntu 14.04上的ibm_db2函数(php)连接到DB2 for z / OS

I have a script that currently uses php ibm_db2 functions to connect to DB2 Express C on an Ubuntu 14.04 server. When I try to translate that same script to remotely connect to a database on DB2 z/OS, I recieve this error, "[IBM][CLI Driver] SQL1598N An attempt to connect to the database server failed because of a licensing problem. SQLSTATE=42968 SQLCODE=-1598". I've searched this website, http://www-01.ibm.com/support/docview.wss?uid=swg21305417, which basically told me the driver used by the ibm_db2 functions cannot conntact the database because of non-matching drivers and licences. How do I go about finding a driver and license to install on my Ubuntu machine to connect to DB2 on z/Os? Or am I going about this the wrong way?

Here's the connection code I'm using.

<?php
$database = 'Location'; 
$user = 'USERSIDS'; 
$password = 'PASSWRD'; 
$hostname = 'hostname of z/os';
$port = port;
$conn_string = "DRIVER={DB2};DATABASE=$database;" .
  "HOSTNAME=$hostname;PORT=$port;PROTOCOL=TCPIP;UID=$user;PWD=$password;";
$conn = db2_connect($conn_string, '', '');
?>
  • 写回答

1条回答 默认 最新

  • douyunjiaok300404 2014-11-14 21:29
    关注

    The DB2 CLI/ODBC driver cannot connect directly to a DB2 z/OS database. You need to install and configure the product called DB2 Connect that serves as a gateway.

    评论

报告相同问题?

悬赏问题

  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么