Oracle Message OCI-21704 - cannot terminate cache or connection without flushing first

ERRORcannot terminate cache or connection without flushing first
CAUSESee the error message.
ACTIONThe transaction should be aborted or committed before terminating the cache or connection.