Oracle Error ORA-24367: user handle has not been set in service handle

Oracle Error Message

ORA-24367: user handle has not been set in service handle

Reason for the Error

This occurs during authentication of a migratable user. the service handle has not been set with non-migratable user handle.

Solution

Service handle must be set with non-migratable user handle when it is used to authenticate a migratable user.