Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prometheus_oracle_exporter: error while loading shared libraries: #53

Open
sergiohl1324 opened this issue Mar 11, 2020 · 2 comments
Open

Comments

@sergiohl1324
Copy link

I have a problem when I start the service:

prometheus_oracle_exporter: /usr/local/bin/prometheus_oracle_exporter: error while loading shared libraries: libclntsh.so.12.1: cannot open shared object file: No such file or directory

I have my env correct:

export ORACLE_BASE=/orasoft/oracle/product
export ORACLE_HOME=$ORACLE_BASE/12.2.0.1/db
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:/usr/local/bin:$PATH

And the library exist but don´t work:

[root@aquilesoralxvd012 system]# find / -name libclntsh.so.12.1
/oracw/grid/product/12.2.0.1/grid/lib/libclntsh.so.12.1
/oracw/grid/product/12.2.0.1/grid/inventory/Scripts/ext/lib/libclntsh.so.12.1
/oracw/grid/product/12.2.0.1/grid/inventory/backup/2019-05-21_11-47-08AM/Scripts/ext/lib/libclntsh.so.12.1
/orasoft/oracle/agent13c/agent_13.2.0.0.0/instantclient/libclntsh.so.12.1
/orasoft/oracle/product/12.2.0.1/db/lib/libclntsh.so.12.1
/orasoft/oracle/product/12.2.0.1/db/inventory/backup/2019-05-21_12-22-54PM/Scripts/ext/lib/libclntsh.so.12.1
/orasoft/oracle/product/12.2.0.1/db/inventory/Scripts/ext/lib/libclntsh.so.12.1

Any idea for fix this ?

@floyd871
Copy link
Owner

The current binary is build agains 12.1 Libraries.

You have two options to fix your problem

  1. Build the Exporter against 12.2 Libraries
  2. Install in parallel 12.1 libraries.

@floodgd
Copy link

floodgd commented Aug 18, 2022

Probably not relevant, but you can simlink libclntsh.so.12.1 to libclntsh.so. This solved my problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants