DB2 Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDB2 Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 17th, 2007, 01:43 PM
blade2007 blade2007 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 1 blade2007 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 49 sec
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDB2 Development > UnixODBC DB2 setup


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT