Driver's SQLAllocHandle on SQL_HANDLE_ENV failed

Posted on 2009-05-27
Medium Priority
Last Modified: 2013-12-18
We installed Oracle client on a window 2003 64bit server. When I set up Oracle ODBC Driver Configuration, got the following error message in testing connection.
Unable to connect
SQL State=IM004
Driver's SQLAllocHandle on SQL_HANDLE_ENV failed

How to pass the testing of connection in ODBC configuration?
Question by:luyan
  • 2
LVL 40

Expert Comment

ID: 24486592
Did you setup the client prior to configuring the ODBC DSN?


Are you using 64-bit binaries?

Author Comment

ID: 24494037
Yes, I installed Oracle Client, and then set up ODBC.
And got the error message when I clicked the button "Test connection" in Oracle ODBC Driver Configuration.
Unable to connect
SQL State=IM004
Driver's SQLAllocHandle on SQL_HANDLE_ENV failed
LVL 40

Accepted Solution

mrjoltcola earned 2000 total points
ID: 24497400
Did you use 32-bit or 64-bit binaries?

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

586 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