Select from Visual Basic to DG4DRDA Fails With Ora-1002: Fetch Out Of Sequence

(Doc ID 1168284.1)

Last updated on JANUARY 18, 2017

Applies to:

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


A Microsoft Visual Basic program makes a select from a synonym on an Oracle RDBMS that uses the Database Gateway for DRDA to select from DB2.
The select gives the error -

ORA-01002: fetch out of sequence


The Oracle Database was migrated from to


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