You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kevin Adler edited this page Nov 16, 2015
·
1 revision
Quick Getting Started Steps (README)
Install IBM_DB support for SQLAlchemy
The IBM_DB_SA adapter provides the Python/SQLAlchemy interface to IBM DB2.
The IBM_DB_SA adapter is packaged as a Python Egg component and is dependent on:
SQLAlchemy 0.7.3 and above
We are assuming that you have DB2 or Informix 11.10 and SQLAlchemy already installed.
If you need to connect from SQLAlchemy to a DB2 server on the same local machine, just proceed to the Installation section below.
If you need to connect from SQLAlchemy to either a DB2 server on different machine or to Informix (local or remote) then you will need to at minimum install the IBM Data Server Driver Package (DS Driver) on the machine where you installed SQLAlchemy.
Installation and configuration
To install the IBM_DB_SA Python egg component (.egg), use the standard
setuptools provided by the Python Easy Install, which is available through
the Python Enterprise Application Kit community portal.
After installing Easy Install, perform these additional steps to install
the IBM_DB_SA egg component:
To install the IBM_DB_SA egg component available in the remoterepository:
Windows:
> easy_install ibm_db_sa
Linux or UNIX:
$ sudo easy_install ibm_db_sa
To install the IBM_DB_SA egg component from the downloaded .egg file:
Before you open a Python prompt, you need to ensure that IBM CLI (which the Python driver uses to connect to DB2/Informix) is accessible to SQLAlchemy. On Linux, set the LD_LIBRARY_PATH variable (for the user executing Python) to include the folder where the IBM CLI shared library (libdb2.so) resides
For local DB2 access: export LD_LIBRARY_PATH=<DB2_HOME>/sqllib/lib:$LD_LIBRARY_PATH .For remote DB2 or any Informix access with DS Driver: export LD_LIBRARY_PATH=<DS_DRIVER_FOLDER>/odbc_cli_driver/linux/clidriver/lib:$LD_LIBRARY_PATH