Getting error while configuring metricbeat for Oracle module

I am using 7.7.0 version of ELK stack and trying to configure Oracle module of metricbeat.

Below is my oracle.yml -

Module: oracle

Docs: https://www.elastic.co/guide/en/beats/metricbeat/7.6/metricbeat-module-oracle.html

  • module: oracle
    metricsets: ["tablespace", "performance"]
    enabled: true
    period: 10s
    hosts: ["oracle://user:mypass@devenv:1521/xe?sysdba=1"]

    #username: ""
    #password: ""

After starting metricbeat, I am getting below error -

Aug 10 20:36:32 devenv metricbeat[31207]: 2020-08-10T20:36:32.141+0800 INFO module/wrapper.go:259 Error fetching data for metricset oracle.performance: error creating connection to Oracle: error doing ping to database: ORA-00000: DPI-1047: Cannot locate a 64-bit Oracle Client library: "libclntsh.so: cannot open shared object file: No such file or directory". See https://oracle.github.io/odpi/doc/installation.html#linux for help
Aug 10 20:36:32 devenv metricbeat[31207]: 2020-08-10T20:36:32.143+0800 INFO module/wrapper.go:259 Error fetching data for metricset oracle.tablespace: error creating connection to Oracle: error doing ping to database: ORA-00000: DPI-1047: Cannot locate a 64-bit Oracle Client library: "libclntsh.so: cannot open shared object file: No such file or directory". See https://oracle.github.io/odpi/doc/installation.html#linux for help

I have checked on server, libclntsh.so is present at /data/oracle/12.2.0.1/product/12.2.0/home/lib. I have also set the path of LD_LIBRARY_PATH as /data/oracle/12.2.0.1/product/12.2.0/home/lib.

Even tried to give username and password as a separate field in oracle.yml like below -

Module: oracle

Docs: https://www.elastic.co/guide/en/beats/metricbeat/7.6/metricbeat-module-oracle.html

  • module: oracle
    metricsets: ["tablespace", "performance"]
    enabled: true
    period: 10s
    hosts: ["oracle://user:mypass@devenv:1521/xe?sysdba=1"]

    username: "user"
    password: "mypass"

But still getting the error. Please help. Looking forward for the reply

Have you installed the OCI lib required by Metricbeat? See more info here: https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-oracle.html#_requirements

It worked after installing OCI lib. Thankyou

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.