Error while connecting from Oracle to DB2 through database links
Hi,
I am working on a VB application wherein I am using the ORAOLEDB.Oracle driver for connecting to my Oracle 10g R2 database. My Oracle database in turn connects to a DB2 database through a database link. When I try to run stored procedures containing simple PL/SQL queries, the connection works fine and fetches all the data. However, when i try to execute a stored poc containing a reference cursor in it, I start encountering the following error message in the application:
ORA-01002: Fetch out of sequence.
Preceeding line from the <<DB link to DB2>>
Please do advice.
Thanks in advance.