Solved

PHP + unixODBC + DB2

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
iSeries DB2 SQL - Query Missing Value 10 67
How To Choose The Right "Big Data" Certification 5 111
Exchange 2016 Databse move 5 29
RDBMS and No sql database 4 47
In today’s complex data management environments, it is not unusual for UNIX servers to be dedicated to a particular department, purpose, or database.  As a result, a SAS® data analyst often works with multiple servers, each with its own data storage…
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!
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…

863 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

25 Experts available now in Live!

Get 1:1 Help Now