1 person found this helpful
Correct, creating the softlink is the solution when running the DB 12c client.
We'll add a note in the installation guide to make this more clear.
I too am facing the same issue for OREdm package and creating symbolic link is giving an error as below:
sudo ln -s /u01/app/oracle/product/188.8.131.52/dbhome_1/lib/libclntshcore.so.11.1 /u01/app/oracle/product/184.108.40.206/dbhome_1/lib/libclntsh.so.12.1
ln: creating symbolic link `/u01/app/oracle/product/220.127.116.11/dbhome_1/lib/libclntsh.so.11.1': File exists
I have tried multiple versions of the ln command to create a link but still get the same issue. The link is not created. How do I resolve the issue?
OREdm package error:
Loading required package: OREdm
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/u01/app/oracle/product/18.104.22.168/dbhome_1/R/library/ROracle/libs/ROracle.so':
libclntsh.so.11.1: cannot open shared object file: No such file or directory
Error: package ‘OREdm’ could not be loaded
The softlink should be libclntsh.so.11.1 -> libclntsh.so.12.1 and not libclntshcore.so.11.1--> libclntsh.so.12.1.
Try creating the softlink from libclntsh.so.11.1 -> libclntsh.so.12.1.
Thanks Sherry for the reply.
Changed the file name but the error thrown is still the same
sudo ln -s libclntsh.so.11.1 libclntsh.so.12.1
ln: creating symbolic link `libclntsh.so.12.1': File exists
I am within the same directory i.e. /u01/app/oracle/product/22.214.171.124/dbhome_1/lib/
Did you restart your R session? Is $ORACLE_HOME/lib in LD_LIBRARY_PATH?
Restarted but it didn't have the effect yesterday.
Today morning, tried loading the package and it worked. May be it took time to reflect on server.
Thanks for your inputs