Hi Team,
During the Oracle Integration, i faced the below attached error.
(upload://dyJsAvKaG9uFfCDyUxHDdPjoQuV.png)
However, I have fixed it by using the below procedure and now getting the error as:
Steps:
- Check the status of the Elastic Agent systemd service by running the following command:
systemctl status elastic-agent.serviceTake 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 - Open the elastic-agent.service file in your preferred text editor, find the
EnvironmentFilekey (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. - 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 theEnvironmentFile(i.e./etc/systemd/system/elastic-agent.service)LD_LIBRARY_PATH=/opt/oracle/instantclient_21_1 - Save the changes made to the configured
EnvironmentFile. - Restart the Elastic Agent systemd service to apply the changes by running the following command:
systemctl restart elastic-agent.service
Kindly assist.
//Ankita

