# Getting error while configuring metricbeat for Oracle module

**URL:** <https://discuss.elastic.co/t/getting-error-while-configuring-metricbeat-for-oracle-module/244402>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [August 10, 2020, 12:52pm UTC](https://discuss.elastic.co/t/getting-error-while-configuring-metricbeat-for-oracle-module/244402 "2020-08-10T12:52:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![puja](https://avatars.discourse-cdn.com/v4/letter/p/4491bb/32.png) [@puja](https://discuss.elastic.co/u/puja)\
**Post date:** [August 10, 2020, 12:52pm UTC](https://discuss.elastic.co/t/getting-error-while-configuring-metricbeat-for-oracle-module/244402/1 "2020-08-10T12:52:41Z")

</div>

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](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"]

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](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](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](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"]

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

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [August 10, 2020, 3:21pm UTC](https://discuss.elastic.co/t/getting-error-while-configuring-metricbeat-for-oracle-module/244402/2 "2020-08-10T15:21:14Z")

</div>

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](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-oracle.html#_requirements)

---

<div class="post-metadata">

**Author:** ![puja](https://avatars.discourse-cdn.com/v4/letter/p/4491bb/32.png) [@puja](https://discuss.elastic.co/u/puja)\
**Post date:** [August 12, 2020, 12:58pm UTC](https://discuss.elastic.co/t/getting-error-while-configuring-metricbeat-for-oracle-module/244402/3 "2020-08-12T12:58:47Z")

</div>

It worked after installing OCI lib. Thankyou

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 9, 2020, 2:58pm UTC](https://discuss.elastic.co/t/getting-error-while-configuring-metricbeat-for-oracle-module/244402/4 "2020-09-09T14:58:51Z")

</div>

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