Oracle Error Message
ORA-31227: DBMS_LDAP: invalid LDAP MESSAGE handle
Reason for the Error
An attempt was made by a PL/SQL module to use an LDAP MESSAGE handle which is not valid and might have already been freed.
Solution
Check the LDAP MESSAGE handle in PL/SQL module involving DBMS_LDAP.