Solved

PHP + unixODBC + DB2

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now