OID: unable to locate message file: ldap.msb

OID: unable to locate message file: ldap.msb

Issue:

[oidtest@oidtest1 bin]$ ldapadd -h oidtest1 -p 3060 -D "cn=orcladmin" -w "Welcome123"

unable to locate message file: ldap<language>.msb

Cause:

Basic cause of this error is, ORACLE_HOME is not set properly.

Solution:

To use most Oracle Internet Directory command-line utilities and Database client utilities like sqlplus,  you must set the following environmental variables:

1. ORACLE_HOME: The location of non-writable files in your Oracle Identity Management installation.
ORACLE_HOME=<Path of Middleware>/Oracle_IDM1

2. ORACLE_INSTANCE: The location of writable files in your Oracle Identity Management installation.
ORACLE_HOME=<Path of Middleware>/Oracle_IDM1/asinst_1

3. TNS_ADMIN: The directory where the database connect string is defined in the tnsnames.ora file. By default it is the $ORACLE_INSTANCE/config directory. The database connect alias as defined in tnsnames.ora is OIDDB by default.

4. PATH: It should contain the following path as below
$ORACLE_HOME/bin
$ORACLE_HOME/ldap/bin
$ORACLE_INSTANCE/bin