My Oracle Support Banner

ORA-28513: internal error in heterogeneous remote agent connecting to DB2 Through Oracle Gateway for DRDA In Oracle Database (Doc ID 2312814.1)

Last updated on SEPTEMBER 16, 2020

Applies to:

Oracle Database Gateway for DRDA - Version and later
Information in this document applies to any platform.


While trying to load oracle database ( with DB2 (z/OS version) data using the oracle gateway version, the connection using the database link from is failing with error message

select count(0) from owner.TAB_NAME@DB2;
ERROR at line 1:
ORA-28513: internal error in heterogeneous remote agent
ORA-02063: preceding line from DB2

The same statement run very well with no issue when executing from oracle database version and


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.