Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to fix "libclntsh.so.19.1: cannot open shared object" error?

V. TaoFeb 25 2022

Recently installed XE18c on OL7.9.
I had to install InstantClient 18.5 because it's the neweset one that doesn't conflict with 18c.
I installed the corresponding pecl OCI8.
My local website connected to the DB, and I could run some tests (successful). Then I powered down my notebook. On restart, everything seemed ok, I inserted some data into the DB (sqldeveloper) and then I wanted to see that data on my website and got a message that the connection to the database could not be established.
Turns out, PHP oci can't be started because:
PHP Startup: Unable to load dynamic library 'oci8.so' (tried: /usr/lib64/php/modules/oci8.so (libclntsh.so.19.1: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/oci8.so.so (/usr/lib64/php/modules/oci8.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Same error for pdo_oci.so.
oci8.so and pdo_oci.so are where they are suppossed to be, but when I looked for libclntsh.so.19.1 it turned out to be a broken link.
I uninstalled and reinstalled all InstantClient packages, all PHP packages and extentions. Didn't change a thing. When I remove only the oci part, thing go smoothly, but I still can't connect to my DB, so it's no solution.
Please, can somebody help?
I'm no pro, so feel free to ask for further information that might help you ;)
Thanks

This post has been answered by Billy Verreynne on Feb 26 2022
Jump to Answer
Comments
Post Details
Added on Feb 25 2022
2 comments
43,390 views