Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error using Oracle Database Gateway for DRDA

Krishna Rathnam-OracleFeb 10 2010 — edited Sep 8 2011
Hello All,

We're encountering issues while trying to query a table using a db link to DB2 database.

We are running oracle 11g R1 on windows and we have DB2 installed on the box. We've installed database gateway for DRDA also on the same box. The gateway is running on a different home location within the same machine. But we get the following error while trying to query across the db link. Would be great if you can take a look and suggest appropriate changes.

ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from UDB

Here's how we configured the gateway:

Listener:
-----------
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=DB2)
(ORACLE_HOME=E:\app\Oracle\product\11.1.0\db_1)
(PROGRAM=g4drsrv)
)
(SID_DESC=
(SID_NAME=PLSExtProc)
(ORACLE_HOME=E:\app\Oracle\product\11.1.0\db_1)
(PROGRAM=extproc)
)
)

Tns:
------
dg4drda.idc.oracle.com =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xpone.idc.oracle.com)
(PORT = 1521))
)
(CONNECT_DATA =
(SID= DB2))
(HS=OK)
)

initDB2.ora
----------------
HS_COMMIT_POINT_STRENGTH=255
HS_NLS_DATE_FORMAT=YYYY-MM-DD
HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P1
HS_RPC_FETCH_REBLOCKING=off
HS_RPC_FETCH_SIZE=32767
HS_FDS_FETCH_ROWS=20
FDS_CLASS=DG4DRDA_DB2UDB
DRDA_CONNECT_PARM=xpone.idc.oracle.com:50000
DRDA_REMOTE_DB_NAME=SAMPLE
DRDA_PACKAGE_COLLID=ORA11
DRDA_PACKAGE_NAME=G2DRSQL
DRDA_PACKAGE_CONSTOKEN=A929B170D366FB00
DRDA_RECOVERY_USERID=ORADRDA
DRDA_RECOVERY_PASSWORD=ORADRDA
DRDA_ISOLATION_LEVEL=CS
DRDA_DISABLE_CALL=TRUE
DRDA_CODEPAGE_MAP=codepage.map


heres how we created the db link:

CREATE DATABASE LINK udb CONNECT TO ORACLE IDENTIFIED BY "welcome1" USING 'dg4drda.idc.oracle.com';

and this was the sql executed

select * from employee@udb;

Really appreciate your assistance.

Regards
Krishna
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 6 2011
Added on Feb 10 2010
17 comments
4,310 views