Unable to connect SQLState=IM004 Driver's SQLAllocHandle on SQL_HANDLE_ENV failed [message #100238] |
Tue, 17 September 2002 08:49 |
Kevin
Messages: 45 Registered: February 2000
|
Member |
|
|
I am attempting to connect to an Oracle 8i database via the Oracle 9.02 ODBC driver and I am receiving the following error message upon testing the connection in WinXp's ODBC Data Source Administrator dialog box: "Unable to connect SQLState=IM004 [[Microsoft]][[ODBC Driver Manager]] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed"
I am running Oracle Client 9.2 on a P4 machine running winXP. Has anyone out there experienced this issue before? Anyone have an idea on how to resolve it? Any assistance would be greatly appreciated. Thanks.
|
|
|
|
|
|
|
Re: Unable to connect SQLState=IM004 Driver's SQLAllocHandle on SQL_HANDLE_ENV failed [message #100961 is a reply to message #100238] |
Fri, 05 March 2004 00:59 |
Thunderfunk
Messages: 1 Registered: March 2004
|
Junior Member |
|
|
One of the things that causes this error is not having the ORACLE_HOMEbin directory in your path.
This is usually added during the install of the oracle client. But if you install the client and then the ODBC driver in the same session, the path may not take effect immediately, and so the ODBC connection test fails. This happenned to me and the problem went away once I'd logged off and logged on again.
Open up a cmd prompt and check the path in that.
|
|
|
|
Re: Unable to connect SQLState=IM004 Driver's SQLAllocHandle on SQL_HANDLE_ENV failed [message #101255 is a reply to message #100238] |
Wed, 07 July 2004 11:53 |
Andrew
Messages: 144 Registered: March 1999
|
Senior Member |
|
|
The problem appears to be a permission issue during the installation of both Oracle 9i and 10G.
If you navigate Oracle home you will find that the directory has different permissions then the root of the tree. In the case of 10G the path is C:Oracleproduct10.1.0Client_1. Open the properties for the Client_X directory, and you will see that "Authenticated Users" should have Read and Execute, List Folder Contents, and Read. To fix the problem, do the following....
-Select Authenticated Users
-Uncheck Read and Execute
-Press Apply
-Check Read and Execute
-Press Apply
Seems stupid, but that did the trick for me. I ran across this solution on asp-help.com.
|
|
|
Re: Unable to connect SQLState=IM004 Driver's SQLAllocHandle on SQL_HANDLE_ENV failed [message #101272 is a reply to message #101255] |
Thu, 15 July 2004 08:35 |
Molly Golebiewski
Messages: 1 Registered: July 2004
|
Junior Member |
|
|
"That did the trick" thanks. I never would have thought of doing that.
Here are my steps I took:
1)Opened up Windows Explorer
2)Navigated to Oracleora92
3)Right clicked and selected properties
4)Clicked on Securities tab
5)Clicked on Authenticated Users
6)Unchecked Read and Execute
7)Rechecked Read and Execute
8)Clicked ok to close window
9)Restarted web server
10)No longer get the error message
All of the other message boards kept saying it was a path issue and that did not appear to be the case for me.
Once again, thanks.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Unable to connect SQLState=IM004 Driver's SQLAllocHandle on SQL_HANDLE_ENV failed [message #476711 is a reply to message #213865] |
Fri, 24 September 2010 14:39 |
CaptainPC
Messages: 1 Registered: September 2010
|
Junior Member |
|
|
You added the home and path to where? I am having a similar problem. As an administrator, I get no errors. Once I remove the admin permisssions and return the account to the user group, I get the [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed. I have tried removing the permissions from the Oracle folder and then adding the read & execute back. Because it works as an admin and not as a user, I know it is a permissions issue. I have updated permissions on the oracle, odbc, and the software interface, giving the user group admin rights. I am running out of ideas. I am open to suggestions.
Thanks,
CaptainPC
|
|
|
|
|
|
|