?
Solved

PHP + unixODBC + DB2

Posted on 2001-07-16
3
Medium Priority
?
487 Views
Last Modified: 2008-02-01
HI!

I need a unixODBC connection to a DB2 Server for executing PHP scripts on a
Webserver!
On the Webserver(Redhat 6.2) Apache is installed with PHP and unixodbc; the
DB is running on a other Server(RS6000, AIX);
UnixODBC works fine, i have allready connected to a Sybase ASA 7.0.1, The
Sysbase also works on a other Server. Therefor i made the following
directories on the webserver and copied the required librarys in this
directory:
/opt/sybase/SYSBSsa7/lib/dbodbc7.so
/opt/sybase/SYSBSsa7/lib/dbodbc7.so.1

For the DB2 connection I also made a /usr/IBMdb2/V7.1/lib/ direcory and
copied libdb2.so and libdb2.so.1 in it. I also made an entry in
/etc/ld.so.conf (/usr/IBMdb2/V7.1/lib/) and run ldconfig.
So, if i try to add a new data source in ODBCConfigurator i get the
following message:
"Cannot load property list"

Can anyone help me?

Joachim
0
Comment
Question by:magic41
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Expert Comment

by:PaulSmirnoff
ID: 6286202
I guess you need to register database in local db2 catalog.

~/sqllib/sqldbdir/*
~/sqllib/slqnodir/*

Try to copy those files as well.

Paul
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7259147

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - PAQ'd and pts removed
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 

Accepted Solution

by:
Jgould earned 0 total points
ID: 7289133
Question has been closed as per recommendation

JGould-EE Moderator
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. This article shows how to create one of these functions to write directly to Azure Table Storage.
In this article, I’ll look at how you can use a backup to start a secondary instance for MongoDB.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question