Forum Discussion

mauog_'s avatar
mauog_
Level 3
3 years ago

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 ?

  • Hi mauog_ 

    As Nicolai says, it looks like a simple file system permission problem. Try su'ing to the user that runs the Oracle backup (is it oracle or some other user?) and see if you can view the file, and if not where it blocks. 

    David

5 Replies

  • 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 ?

    • mauog_'s avatar
      mauog_
      Level 3

      Backups fail with 5455 error.

      I just checked and all the tree from /u01 is group writable and executable.

      Just /u01 an /u01/app belong to user grid group oinstall and then from /u01/app/oracle the tree belongs to oracle:oinstall.

       

      • davidmoline's avatar
        davidmoline
        Level 6

        Hi mauog_ 

        As Nicolai says, it looks like a simple file system permission problem. Try su'ing to the user that runs the Oracle backup (is it oracle or some other user?) and see if you can view the file, and if not where it blocks. 

        David