NativeErr = -417 Passing Bind Variables to DB2 zOS Using DG4DRDA
(Doc ID 1616872.1)
Last updated on FEBRUARY 04, 2019
Applies to:Oracle Database Gateway for DRDA - Version 188.8.131.52 and later
Information in this document applies to any platform.
You have a Visual Basic application that calls the Database Gateway for DRDA (DG4DRDA) and passes bind variables.
When using 10.2 TG4DB2 this ran successfully but using 184.108.40.206 DG4DRDA you get the error -
ORA-28500: connection from ORACLE to a non-Oracle system returned this
[Oracle][ODBC DB2 Wire Protocol driver][UDB DB2 for OS/390 and z/OS]PREPARE
STRING INCLUDES PARAMETER MARKERS AS OPERAND OF SAME OPERATOR.
ORA-02063: preceding 2 lines from GTW
ORA-02063: preceding 3 lines from DEV11
ORA-02063: preceding 4 lines from GTW
The VB application passes the bind variables as a VARCHAR datatype.
The code causing the problem looks like this -
and fails if the bind variable :CompanySelect is passed as a VARCHAR but works if passed as a CHAR.
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