Monday, August 6, 2012

Oracle Grid Cloud Control 12c BP1 on Oracle Enterprise Linux 6.1

I have installed it in my test box and I hit a problem with auto-discovery due to missing library for nmap. Issue is very easy to fix using common Linux troubleshooting approach. First what versions I'm using:
[root@oem-server ~]# cat /etc/oracle-release
Oracle Linux Server release 6.1
[root@oem-server ~]# openssl version
OpenSSL 1.0.0-fips 29 Mar 2010
[root@oem-server ~]# yum list | grep -e "^openssl"
openssl.x86_64                           1.0.0-20.el6_2.5            @ol6_latest
openssl.i686                             1.0.0-20.el6_2.5            ol6_latest
openssl-devel.i686                       1.0.0-20.el6_2.5            ol6_latest
openssl-devel.x86_64                     1.0.0-20.el6_2.5            ol6_latest
openssl-perl.x86_64                      1.0.0-20.el6_2.5            ol6_latest
openssl-static.x86_64                    1.0.0-20.el6_2.5            ol6_latest
openssl098e.i686                         0.9.8e-17.0.1.el6_2.2       ol6_latest
openssl098e.x86_64                       0.9.8e-17.0.1.el6_2.2       ol6_latest
Now what kind of issue I had
[root@oem-server ~]# /u01/Middleware/agent/agent_inst/discovery/nmap/bin/nmap
/u01/Middleware/agent/agent_inst/discovery/nmap/bin/nmap: error while loading shared libraries: cannot open shared object file: No such file or directory
How I fixed it
[oracle@oem-server ~]$  ldd /u01/Middleware/agent/agent_inst/discovery/nmap/bin/nmap =>  (0x00007fff447ff000) => not found => not found => /lib64/ (0x0000003d40800000) => /usr/lib64/ (0x0000003d43c00000) => /lib64/ (0x0000003d41000000) => /lib64/ (0x0000003d43400000) => /lib64/ (0x0000003d40400000)
        /lib64/ (0x0000003d40000000)

[root@oem-server ~]# ln -s /usr/lib64/ /usr/lib64/
[root@oem-server ~]# ln -s /usr/lib64/ /usr/lib64/

[oracle@oem-server ~]$  ldd /u01/Middleware/agent/agent_inst/discovery/nmap/bin/nmap =>  (0x00007fffb0686000) => /usr/lib64/ (0x00007fd6b1c0a000) => /usr/lib64/ (0x00007fd6b1870000) => /lib64/ (0x0000003d40800000) => /usr/lib64/ (0x0000003d43c00000) => /lib64/ (0x0000003d41000000) => /lib64/ (0x0000003d43400000) => /lib64/ (0x0000003d40400000) => /lib64/ (0x0000003d48c00000) => /lib64/ (0x0000003d46c00000) => /lib64/ (0x0000003d44000000) => /lib64/ (0x0000003d47800000) => /lib64/ (0x0000003d41400000)
        /lib64/ (0x0000003d40000000) => /lib64/ (0x0000003d46800000) => /lib64/ (0x0000003d47000000) => /lib64/ (0x0000003d42400000) => /lib64/ (0x0000003d40c00000) => /lib64/ (0x0000003d41c00000)
Now it is working
[oracle@oem-server ~]$ /u01/Middleware/agent/agent_inst/discovery/nmap/bin/nmap -v

Starting Nmap 5.51.3 ( ) at 2012-07-08 19:19 IST
Unable to find nmap-services!  Resorting to /etc/services
Read data files from: /etc
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 0.03 seconds
[oracle@oem-server ~]$
After that I checked MOS and Grid Control 12c is certified with OEL 6 so this errors was not expected but then I realized that I didn't read know issues for Oracle® Enterprise Manager Cloud Control Support Notes for Linux x86 and x86-64 and I found it in point called "Host Discovery Job Displays Error While Loading Shared Libraries". Official solution is a little bit more complicated and required downloading openssl sources and compiling it. Anyway I found article above using Google and I couldn't find it on entry documentation page.



Anonymous said...

Thanks a lot. Your post saved me a lot of time and worry. I was stumped there for a while.


Unknown said...

Thanks very much - that was just what I needed for the migration from 5 to 6 .... Dave