CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Have a requirement to access a remote DB2 database on a AS/400 (an iSeries) system. Also, this is all done through an established VPN connection.
I seem to have the appropriate DB2 driver setup with PHP, at least it reports that it is anyway.
Seems that all my research tells me to use PHP ODBC libraries to achieve this, which leads to my main issue -- getting an odbc connection access established.
I have IBM's i Access software installed, and I get this info currently from /etc/odbcinst.ini...
[iSeries Access ODBC Driver 64-bit]
Description=iSeries Access for Linux 64-bit ODBC Driver
Driver=/opt/ibm/iSeriesAccess/lib64/libcwbodbc.so
Setup=/opt/ibm/iSeriesAccess/lib64/libcwbodbcs.so
Threading=2
DontDLClose=1
UsageCount=1
[iSeries Access ODBC Driver]
Description=iSeries Access for Linux ODBC Driver
Driver=/opt/ibm/iSeriesAccess/lib64/libcwbodbc.so
Setup=/opt/ibm/iSeriesAccess/lib64/libcwbodbcs.so
Driver64=/opt/ibm/iSeriesAccess/lib64/libcwbodbc.so
Setup64=/opt/ibm/iSeriesAccess/lib64/libcwbodbcs.so
Threading=2
DontDLClose=1
UsageCount=1
And...even if any of that is correct, I'm not sure of a proper way to build-out a DSN string for PHP's odbc_connect() functions.
Whenever I check Apache log's for errors, I only get that the connection object (what I check for errors) says that it's an invalid connection object.
Any help/guidance/suggestions would be greatly appreciated.
General questions to start...
Have a requirement to access a remote DB2 database on a AS/400 (an iSeries) system. Also, this is all done through an established VPN connection. I seem to have the appropriate DB2 driver setup with PHP, at least it reports that it is anyway.
Seems that all my research tells me to use PHP ODBC libraries to achieve this, which leads to my main issue -- getting an odbc connection access established. I have IBM's i Access software installed, and I get this info currently from /etc/odbcinst.ini...
[iSeries Access ODBC Driver 64-bit]
Description=iSeries Access for Linux 64-bit ODBC Driver
Driver=/opt/ibm/iSeriesAccess/lib64/libcwbodbc.so
Setup=/opt/ibm/iSeriesAccess/lib64/libcwbodbcs.so
Threading=2
DontDLClose=1
UsageCount=1
[iSeries Access ODBC Driver]
Description=iSeries Access for Linux ODBC Driver
Driver=/opt/ibm/iSeriesAccess/lib64/libcwbodbc.so
Setup=/opt/ibm/iSeriesAccess/lib64/libcwbodbcs.so
Driver64=/opt/ibm/iSeriesAccess/lib64/libcwbodbc.so
Setup64=/opt/ibm/iSeriesAccess/lib64/libcwbodbcs.so
Threading=2
DontDLClose=1
UsageCount=1
And...even if any of that is correct, I'm not sure of a proper way to build-out a DSN string for PHP's odbc_connect() functions. Whenever I check Apache log's for errors, I only get that the connection object (what I check for errors) says that it's an invalid connection object. Any help/guidance/suggestions would be greatly appreciated.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.