Discovery_OracleUNIX Knowledge Script
Running Discovery_OracleUNIX against Oracle on a UNIX Server events with the following message:
Can't load '/usr/netiq/UnixAgent/lib/perl5/site_perl/5.6.1/sun4-solaris-thread-multi/auto/NetIQ/Oracle/Oracle.so' for module NetIQ::Oracle: ld.so.1: /usr/netiq/UnixAgent/../jre/bin/../bin/sparc/native_threads/java: fatal: libclntsh.so.8.0: open failed: No such file or directory at /usr/netiq/UnixAgent/lib/perl5/5.6.1/sun4-solaris-thread-multi/DynaLoader.pm line 206.
at (eval 3) line 44
Compilation failed in require at (eval 3) line 44.
BEGIN failed--compilation aborted at (eval 3) line 44
The error indicates that the agent cannot find libclntsh.so.*.* which is the Oracle Instant Client shared library. To address this issue, please perform one of the following:
- Check proper Oracle environment variables (PATH and LD_LIBRARY_PATH) in /opt/netiq/UnixAgent/mo/config/rc/oracle.rc.
- Obtain the instant client libraries for your UNIX platform from the URL below and extract them to /opt/netiq/UnixAgent/lib/. After installing the Instant Client libraries, restart the NetIQ UNIX Agent.
- Install the 7.1 UNIX Agent which already contains the Instant Client libraries.
Subsequent attempts at discovery should now be successful.
The agent is having problems loading the Oracle Instant Client shared library to connect to the Oracle database server.