Error running OIP policy: libclntsh.so: cannot open shared object file: Permission denied
Hello,
I'm trying to run an OIP policy on a linux client with Oracle 19 installed.
In the bpdbsbora i can read:
12:29:58.800 [2027198.2027198] <2> OracleDllManager::open: Using library at [/u01/app/oracle/product/19.0.0/dbhome_1/lib/libclntsh.so] (../OracleDllManager.cpp:104) 12:29:58.800 [2027198.2027198] <2> OracleDllManager::open: Failed to open library [/u01/app/oracle/product/19.0.0/dbhome_1/lib/libclntsh.so] (../OracleDllManager.cpp:151) 12:29:58.800 [2027198.2027198] <2> OracleDllManager::open: Error was:/u01/app/oracle/product/19.0.0/dbhome_1/lib/libclntsh.so: cannot open shared object file: Permission denied (../OracleDllManager.cpp: 152) 12:29:58.800 [2027198.2027198] <2> OracleOci::init: failed to load oci library [4] (../OracleOci.cpp:116) 12:29:58.803 [2027198.2027198] <2> NCFBlockUntil::addToWait(count): 1 non-object reasons added to the blocker (../NcfRefCounted.cpp:119) 12:29:58.803 [2027198.2027198] <2> NCFBlockUntil::finished: 1 non-object reasons removed from the blocker (../NcfRefCounted.cpp:167) 12:29:58.803 [2027198.2027198] <16> CFECallback::reportStatus: There was an error initializing the OCI library.
I checked the library and it is:
oot@toren [ /usr/openv/netbackup/logs/bpdbsbora ]# ls -la /u01/app/oracle/product/19.0.0/dbhome_1/lib/libclntsh.so
lrwxrwxrwx. 1 oracle oinstall 17 Aug 6 08:48 /u01/app/oracle/product/19.0.0/dbhome_1/lib/libclntsh.so -> libclntsh.so.19.1
root@toren [ /usr/openv/netbackup/logs/bpdbsbora ]# ls -la /u01/app/oracle/product/19.0.0/dbhome_1/lib/libclntsh.so.19.1
-rwx------. 1 oracle oinstall 79889800 Aug 6 08:48 /u01/app/oracle/product/19.0.0/dbhome_1/lib/libclntsh.so.19.1
Do you have any idea about what is wrong?
How should permissions be set?
Thanks
hi mauog_
Make sure Oracle and Oinstall has read and execute permission on all directories leading to libclntsh.so.19 file. Either in /usr/openv/ or /u01/app.
Does the Oracle backup fails or is just a status message in the log file you are trying to resolve ?