Oracle Error ORA-24427: Invalid attributes on user handle

Oracle Error Message

ORA-24427: Invalid attributes on user handle

Reason for the Error

Some of the attributes set on the user handle were not allowed in pooled mode.

Solution

Unset the attributes on the user handle and call OCISessionGet or use sessions that are not pooled.