ODBC Error SQLState IM004 / SQLAllocHandle SQL_HANDL_ENV Failed Or SQL*PLus Throw SP2-1503 / SP2-0152 With Correct Installed Oracle Client 11.2.0.x or Higher (Doc ID 1476871.1)

Last updated on JULY 03, 2017

Applies to:

SQL*Plus - Version 11.2.0.1 and later
Oracle ODBC Driver - Version 11.2.0.1 and later
Microsoft Windows x64 (64-bit)
Microsoft Windows (32-bit)
***Checked for relevance on 03-July-2017***

Symptoms

Running as Administrator or normal user of a Windows machine the ODBC Administrator to configure DSN for ODBC Driver 11.2.0.x  or higher of proper installed Client 11.2.0.x higher (alle required environment variables like ORACLE_HOME, PATH and TNS_ADMIN populated correctly) and perfoming a test connection will give

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms