My Oracle Support Banner

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

Last updated on NOVEMBER 24, 2021

Applies to:

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


Running Oracle Database Gateway for DRDA (DG4DRDA) 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 owner.object@dblink;
select * FROM owner.object@dblink
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 dblink

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


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.