Tuesday, August 5, 2014

[RUEI] ./ruei-migrate: error while loading shared libraries: libclntsh.so.11.1

Situation:
Attempting to run the ruei-migrate fails with this errror:
./ruei-migrate: error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory

Cause:
The problem was caused by the $ORACLE_HOME/lib directory not being exported on the LD_LIBRARY_PATH environment variable. It is also related to the RUEI database environment variables that are not included on the bash_profile file of the $RUEI_USER.
 
Solution:
After appending the RUEI database environment variables to the $RUEI_USER bash_profile file, add $ORACLE_HOME/lib to the LD_LIBRARY_PATH environment variable using the following command:
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH