|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
UnixODBC DB2 setup
Hello,
I have installed unixODBC.x86_64 on a Linux box and I'm currently having difficulty using isql to connect to DB2. My odbcinst.ini is as follows: # Driver for the DB2 package [DB2] Description = DB2 driver for Linux Driver = /home/db2clnt8/sqllib/lib64/libdb2.so FileUsage = 1 DontDLClose = 1 My odbc.ini is as follows: [sample] Description = Test to DB2 Driver = DB2 I have setup my env variables (in bash) as follows: export DB2INSTANCE=dbinst2 export ODBCINI=/etc/odbc.ini export ODBCINSTINI=/etc/odbcinst.ini When I run isql I get the following error: isql -v sample dbinst2 ibmdb2 [IM004][unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed. Any help would be greatly appreciated. Perhaps I'm not referencing the correct driver? I have tried multiple setups but I keep getting caught with this error. |
![]() |
| Viewing: Dev Shed Forums > Databases > DB2 Development > UnixODBC DB2 setup |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|