While trying to add users in OID using ldapadd command, I got below error:-
[orafmw@oraworld scripts]$ ldapadd -h oraworld -p 3060 -D "cn=orcladmin" -w "Welcome1" -c -f importUSers.ldif unable to locate message file: ldap<language>.msb
The root cause for above issue was that ORACLE_HOME was not properly set.
To use most Oracle Internet Directory command-line utilities and Database client utilities like sqlplus, you must set the following environmental variables:
ORACLE_HOME – The location of non-writable files in your Oracle Identity Management installation.
[orafmw@oraworld scripts]$ echo $ORACLE_HOME /u01/app/oracle/fmw/mw_idm/Oracle_IDM1 [orafmw@oraworld scripts]$
ORACLE_INSTANCE – The location of writable files in your Oracle Identity Management installation.
[orafmw@oraworld scripts]$ echo $ORACLE_INSTANCE /u01/app/oracle/fmw/mw_idm/asinst_1 [orafmw@oraworld scripts]$
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.
NLS_LANG (APPROPRIATE_LANGUAGE.AL32UTF8) – The default language set at installation is AMERICAN_AMERICA.
PATH – The following directory locations should be added to your PATH: