I know with a transparent gateway from Oracle-> DB2 you couldn't use cursors on remote databases for this reason.