Solved

PHP + unixODBC + DB2

Posted on 2001-07-16
3
469 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
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

685 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