Solved

Driver's SQLAllocHandle on SQL_HANDLE_ENV Failed

Posted on 2010-11-21
5
4,599 Views
Last Modified: 2012-05-10
I have an error: "Driver's SQLAllocHandle on SQL_HANDLE_ENV Failed" that appears when I try to connect to Oracle Database using MS Excel. Odbc connection works and can connect. I have read up on FAQ on Oracle and have tried the following suggestions:
1. Re-Installed Oracle Client, not working
2. Checked PATH env variable, it is correct
3. Checked and changed permissions, not working

When I use the test on my ODBCAD32.exe, it works and can connect. Even PL/SQL Developer client can connect to Oracle. It is just MS Office and Qlikview that does not want to connect. Qlikview gives me the following error:

"SQL##f - SqlState:IM014,ErrorCode:0, ErrorMsg: [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application"
0
Comment
Question by:raydekock
  • 3
5 Comments
 
LVL 33

Expert Comment

by:Norie
ID: 34187601
Have you checked the driver?

It might be the correct one but the wrong version?

Also, where exactly and how are you doing this?

Manually or in code?
0
 

Author Comment

by:raydekock
ID: 34188098
Hi Imnorie,

I have checked the driver and have installed several versions, i.e. Oracle 9.2, Oracle 10.2.0.4, Oracle 10.2.0.3 and the same is experienced.

My Operating system is Windows 7 64bit. The Oracle driver is a 32 bit driver, the 64 bit driver does not install as it sees my version as too new for its liking.

This is manual, not in code.

ODBC Test works. PL/SQL connection works. It is just MS Excel and Qlikview that does not like it.

My System variable for PATH is set to the following:
C:\oracle\product\10.2.0\client_1\bin;C:\oracle\product\10.2.0\client_1;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\NetSarang;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Windows Live\Shared

This looks correct as far as the suggestions on the internet advises.

I am doing it from MS Excel 2007 -> Data -> Get External Data -> From Other Sources -> From Microsoft Query -> Select ODBC setup for Oracle and then it gives me the error.
0
 

Expert Comment

by:animessenger
ID: 34233080
Try installing Qlikview x64 (64-bit version) and that should hopefully take take of the issue.
0
 

Accepted Solution

by:
raydekock earned 0 total points
ID: 34268146
I have reloaded all my Oracle Clients several times and eventually it started to work. This can be closed.
0
 

Author Closing Comment

by:raydekock
ID: 34299401
No solution was provided  by the experts
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
VLOOKUP to a Closed Workbook 22 64
Macro 3 20
scheduler for Procedure in DB with 3 arguments in 10g 7 10
Macro Filter fix 3 5
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

757 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now