NativeErr = -417 Passing Bind Variables to DB2 zOS Using DG4DRDA
Last updated on JANUARY 18, 2017
Applies to:Oracle Database Gateway for DRDA - Version 22.214.171.124 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 126.96.36.199 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.
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