I have message Oracle ODBC : Driver's SQLAllocHandle on SQL_HANDLE_ENV failed when try to open oracle connection in excel. I'm working in virtual machine via citrix. Could you please give tips why it is appear and how avoid problem ?
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
One item that can cause this error is not having the ORACLE_HOME bin directory in your Windows OS path. Open a command prompt and type either PATH or SET to see if the directory is included. Adjust as required.
Do the following to resolve the issue:
- Select Administration Tools , Local Security Setting and Local Policy.
- Then select "User Rights Assignment"
- Double click on "Create Global Objects"
- Select Add User or Group.
- Make sure Object Types Group Box is checked.
- Select Locations and highlight the name of the server you are working on (Not the Domain).
- Enter "Remote Desktop Users" or "Everyone" (without the quotes) into the Object Names Box.
- Select OK.
- Add the same users to the group "Power User".
- If this does not work, after step 8 a reboot may be required.
来源:https://stackoverflow.com/questions/13626024/oracle-odbc-drivers-sqlallochandle-on-sql-handle-env-failed