Oracle Error ORA-24779: detach not allowed with open remote cursor

Oracle Error Message

ORA-24779: detach not allowed with open remote cursor

Reason for the Error

The migratable transaction tried to detach from the current session while having an open remote cursor.

Solution

Close any open remote cursor prior to detach.