Ora-28500 Errors Using DG4ODBC on 64-bit Platforms (Doc ID 782190.1)

Last updated on JULY 12, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.1.0.6 to 11.2.0.4 [Release 11.1 to 11.2]
Oracle Solaris on SPARC (64-bit)
Linux x86-64
IBM AIX on POWER Systems (64-bit)
HP-UX Itanium
Checked for relevance on 17-Oct-2013

Symptoms

Running 11g HS Connectivity - Database Gateway for ODBC (DG4ODBC) - on a 64-bit platform, the following error can occur :

ORA-28500 - connection from ORACLE to a non-Oracle system returned this message



1. A DG4ODBC debug trace can show the following errors : 

Failed to load ODBC library symbol: /usr/lib/libodbc.so(SQLAllocHandle)
Exiting hgolofn, rc=28500 at 2009/02/11-11:08:17
Exiting hgoinit, rc=28500 at 2009/02/11-11:08:17 with error ptr FILE:hgoinit.c LINE:294
FUNCTION:hgoinit() ID:Loading ODBC aray of function ptrs

 

2. A select can give the following errors when trying to connect to DB2 on AIX using the IBM ODBC driver and UnixODBC driver manager :

SQL > select sysdate from dual@DG4ODBC;
select sysdate from dual@DG4ODBC
*
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed {IM004}
ORA-02063: preceding 2 lines from DG4ODBC

A select using ISQL and the same ODBC driver works successfully.

 

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