Getting SQLCODE -4707 Connecting to DB2 LUW 9.5 Database Using Oracle Database Gateway for DRDA 11.2.0.1 (Doc ID 1580593.1)

Last updated on AUGUST 30, 2013

Applies to:

Oracle Database Gateway for DRDA - Version 11.2.0.1 to 11.2.0.4 [Release 11.2]
Information in this document applies to any platform.

Symptoms

Running Oracle Database Gateway for DRDA (DG4DRDA) 11.2.0.1.0 on a Linux 86-64 accessing a DB2 LUW 9.5 fixpak 7 on another server.
After fixing all gateway configuration and the grants required for the user that will bind the gateway packages  the below error is returned:

sqlplus> select * FROM ims.object_trans_in@mis;
select * FROM ims.object_trans_in@mis
  *
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Oracle][ODBC DB2 Wire Protocol driver][DB2]Unknown error: SQLCODE -4707
{HY000,NativeErr = -4707}[Oracle][ODBC DB2 Wire Protocol driver]File not found '.odbc.ini'. {HY000,NativeErr = 1509}
ORA-02063: preceding 2 lines from MIS


The same Oracle database Gateway for DRDA 11.2.0.1.0 is working on another server accessing another DB2 LUW.

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