Oracle Message ORA-01042 - detaching a session with open cursors not allowed

ERRORdetaching a session with open cursors not allowed
CAUSEAn attempt was made to detach a seesio n which had open cursors.
ACTIONClose all the cursors before detaching the session.