IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

A driver to use on Ubuntu machine to connect to DB2 on z/Os?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mrm950

New User


Joined: 19 Nov 2014
Posts: 1
Location: USA

PostPosted: Wed Nov 19, 2014 11:06 pm
Reply with quote

Hello everyone! I am a student working as part of a university group and we are trying to connect our Ubuntu machine to z/OS DB2.

We currently have a script that currently uses php ibm_db2 functions to connect to DB2 Express C on an Ubuntu 14.04 server. When we try to translate that same script to remotely connect to a database on DB2 z/OS, we 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". We did some research and came across this site, www-01.ibm.com/support/docview.wss?uid=swg21305417, which describes that the driver used by the ibm_db2 functions cannot conntact the database because of non-matching drivers and licences. How do we go about finding a driver and license to install on our Ubuntu machine to connect to DB2 on z/Os? If we are not going about this in the right way, are there any alternative methods we can use? We are open to suggestions.

This is the code that we are currently 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, '', '');
?>


Thank you for the help!
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Nov 20, 2014 9:51 am
Reply with quote

Do you've DB2 Connect installed on Ubuntu machine? 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.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts ZOS Connect EE Vs z/OS client web ena... All Other Mainframe Topics 0
No new posts Copying Db2 BSDS and logs to another ... JCL & VSAM 11
No new posts JDBC Driver -Default Values DB2 1
No new posts Unable to download the JDBC driver to... Java & MQSeries 1
No new posts Issue in NDM : Connect Direct All Other Mainframe Topics 0
Search our Forums:

Back to Top