ORA-24787: remote cursors must be closed before a call completes
Cause: The previous operation did not close all the remote cursors it opened. Since separated transactions are enabled, this is not allowed
Action: Close all remote cursors in each call, or start a regular (non-separated) transaction
https://support.oracle.com/
http://www.oracle.com/