# Oracle Integration in Elastic

**URL:** <https://discuss.elastic.co/t/oracle-integration-in-elastic/373492>\
**Category:** Elastic Agent\
**Created:** [January 22, 2025, 5:00am UTC](https://discuss.elastic.co/t/oracle-integration-in-elastic/373492 "2025-01-22T05:00:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ankita\_Pachauri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ankita_pachauri/32/61469_2.png) [@Ankita\_Pachauri](https://discuss.elastic.co/u/Ankita_Pachauri)\
**Post date:** [January 22, 2025, 5:00am UTC](https://discuss.elastic.co/t/oracle-integration-in-elastic/373492/1 "2025-01-22T05:00:07Z")

</div>

Hi Team,  
During the Oracle Integration, i faced the below attached error.

 ![Screenshot 2025-01-17 120850](https://us1.discourse-cdn.com/elastic/original/3X/3/f/3f61627c645448a5a174dcc0b6f974b402a8e1b9.png)  
(upload://dyJsAvKaG9uFfCDyUxHDdPjoQuV.png)  
However, I have fixed it by using the below procedure and now getting the error as:  
Steps:

1. Check the status of the Elastic Agent systemd service by running the following command: `systemctl status elastic-agent.service` Take note of the path to the elastic-agent.service file, which is typically located in the systemd service directory. Example path: `/etc/systemd/system/elastic-agent.service`
2. Open the elastic-agent.service file in your preferred text editor, find the `EnvironmentFile` key (commonly found at `/etc/sysconfig/elastic-agent`), and verify its contents, as these configurations are essential for the elastic-agent’s runtime environment initialization. If the EnvironmentFile is absent, create it and set the necessary permissions to ensure the elastic-agent has full access.
3. Add the LD\_LIBRARY\_PATH environment variable to the configured `EnvironmentFile`. You can set it to the directory where libraries (`libclntsh.so`) are located. For example, if your libraries are in the `/opt/oracle/instantclient_21_1 directory`, add the following line to the `EnvironmentFile` (i.e. `/etc/systemd/system/elastic-agent.service`)`LD_LIBRARY_PATH=/opt/oracle/instantclient_21_1`
4. Save the changes made to the configured `EnvironmentFile`.
5. Restart the Elastic Agent systemd service to apply the changes by running the following command:`systemctl restart elastic-agent.service`  
 ![image (6)](https://us1.discourse-cdn.com/elastic/original/3X/e/c/ec94e9df4b05d97aee32449c803bc6e0fa5022f5.png)

Kindly assist.

//Ankita
