Oracle Solution for Error ora-31225

Solution for Oracle Error ORA-31225

ORA-31225: DBMS_LDAP: invalid BER_ELEMENT

What triggered the Error:

An attempt was made by a PL/SQL module to use a BER_ELEMENT which is not valid and might have already been freed.

What should we do to fix it:

Check the BER_ELEMENT in PL/SQL module involving DBMS_LDAP.