03 Upgrade to EM Agent 10.2.0.5.0

References

None

Overview

The procedure in 02 Deploy EM Agent on BANKSTOWN only installed a 10.2.0.1.0 EM Agent on BANKSTOWN. I need to update this agent to 10.2.0.5.0

Procedure

Get Patchset

The relevant patchset for OEM 10.2.0.5.0 is 3731593, and I have already saved it on GRIDCTRL. I moved it to BANKSTOWN as follows:

[oracle@gridctrl ~]$ cd /opt/oracle/software/OEM [oracle@gridctrl OEM]$ scp p3731593_10205_LINUX.zip bankstown:. p3731593_10205_LINUX.zip 100% 1085MB 3.8MB/s 04:45

I unzipped this file into oracle's home directory.

First Attempt to Upgrade EM Agent

I tried to use OUI to upgrade the EM agent as follows:

[oracle@bankstown Disk1]$ export ORACLE_HOME=$ORACLE_BASE/agent10g [oracle@bankstown Disk1]$ $ORACLE_HOME/bin/emctl stop agent [oracle@bankstown Disk1]$ cd $ORACLE_HOME [oracle@bankstown agent10g]$ ~/3731593/Disk1/runInstaller Starting Oracle Universal Installer... Checking installer requirements... Checking operating system version: must be enterprise-4, enterprise-5, redhat-3, SuSE-9, SuSE-10, redhat-4, redhat-5, UnitedLinux-1.0, asianux-1 or asianux-2 Passed All installer requirements met. Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-01-09_06-41-00AM. Please wait ...[oracle@bankstown agent10g]$ Oracle Universal Installer, Version 10.2.0.5.0 Production Copyright (C) 1999, 2009, Oracle. All rights reserved. Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2012-01-09_06-41-00AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred.. java.lang.UnsatisfiedLinkError: /tmp/OraInstall2012-01-09_06-41-00AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at sun.security.action.LoadLibraryAction.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.NativeLibLoader.loadLibraries(Unknown Source) at sun.awt.DebugHelper.(Unknown Source) at java.awt.Component.(Unknown Source) at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.(OiifmGraphicInterfaceManager.java:222) at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:194) at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:203) at oracle.sysman.oii.oiic.OiicInstaller.getInterfaceManager(OiicInstaller.java:463) at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:959) at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:899) Exception in thread "main" java.lang.NoClassDefFoundError at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.(OiifmGraphicInterfaceManager.java:222) at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:194) at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:203) at oracle.sysman.oii.oiif.oiifm.OiifmAlert.(OiifmAlert.java:151) at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:1017) at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:899)

The missing file is libXp.so.6. This file must exist on GRIDCTRL because I was able to successfully upgrade the agent there according to 11G OCM Install OEM 10.2.0.5 With New Database. On GRIDCTRL, I looked for the file everywhere:

[root@gridctrl ~]# find / -name libXp.so.6 -print /opt/oracle/app/OracleHomes/agent10g/lib/stubs/libXp.so.6 /opt/oracle/app/OracleHomes/db11g/lib/stubs/libXp.so.6 /opt/oracle/app/OracleHomes/db10g/lib/stubs/libXp.so.6 /opt/oracle/app/OracleHomes/oms10g/lib/stubs/libXp.so.6 find: /var/named/chroot/proc/12730: No such file or directory /usr/lib/libXp.so.6

It looks like the missing file should be in /usr/lib. Used rpm to find what package this file belongs to:

[root@gridctrl ~]# rpm --query --file /usr/lib/libXp.so.6 libXp-1.0.0-8.1.el5

The file belongs to the libXp package.

Install Missing Package

Used yum localinstall to install the libXp package off the RHEL 5.4 DVD:

[root@bankstown ~]# mount /dev/cdrom /media mount: block device /dev/cdrom is write-protected, mounting read-only [root@bankstown ~]# cd /media/Server/ [root@bankstown Server]# ls -l libXp-1.0.0-8.1.el5* -r--r--r-- 341 oracle root 22996 Jul 26 2007 libXp-1.0.0-8.1.el5.i386.rpm [root@bankstown Server]# yum localinstall libXp-1.0.0-8.1.el5.i386.rpm Loaded plugins: rhnplugin, security This system is not registered with RHN. RHN support will be disabled. Setting up Local Package Process Examining libXp-1.0.0-8.1.el5.i386.rpm: libXp-1.0.0-8.1.el5.i386 Marking libXp-1.0.0-8.1.el5.i386.rpm to be installed local | 1.3 kB 00:00 Resolving Dependencies --> Running transaction check ---> Package libXp.i386 0:1.0.0-8.1.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================= Installing: libXp i386 1.0.0-8.1.el5 /libXp-1.0.0-8.1.el5.i386 32 k Transaction Summary ============================================================================================================================================================= Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total size: 32 k Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : libXp 1/1 error: failed to stat /media/RHEL_5.4 i386 DVD: No such file or directory Installed: libXp.i386 0:1.0.0-8.1.el5 Complete!

Successful Upgrade

I had restarted BANKSTOWN prior to the OUI upgrade of the EM agent. The OUI went as follows:

[oracle@bankstown ~]$ cd /u01/app/oracle/agent10g/ [oracle@bankstown agent10g]$ export ORACLE_HOME=$(pwd) [oracle@bankstown agent10g]$ ~/3731593/Disk1/runInstaller Starting Oracle Universal Installer... Checking installer requirements... Checking operating system version: must be enterprise-4, enterprise-5, redhat-3, SuSE-9, SuSE-10, redhat-4, redhat-5, UnitedLinux-1.0, asianux-1 or asianux-2 Passed All installer requirements met. Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-01-09_03-05-23PM. Please wait ...[oracle@bankstown agent10g]$ Oracle Universal Installer, Version 10.2.0.5.0 Production Copyright (C) 1999, 2009, Oracle. All rights reserved. Node list for the Oracle home /u01/app/oracle/agent10g is [] Val: 0 Val: 0

Problem in Agent Startup

When I checked the status of the agent, I get the following messages:

[oracle@bankstown agent10g]$ emctl status agent Environment variable ORACLE_SID not defined. Please define it. [oracle@bankstown agent10g]$ export ORACLE_SID=agent [oracle@bankstown agent10g]$ emctl status agent EM Configuration issue. /u01/app/oracle/product/11.1.0/db_2/bankstown.yaocm.id.au_agent not found. [oracle@bankstown agent10g]$ echo $ORACLE_HOME /u01/app/oracle/agent10g

Problem Solved

The reboot of BANKSTOWN had somehow changed the eth0 interface to use DHCP instead of a static IP address and also lose the DNS settings pointing to GRIDCTRL. Fixing these problems, and restarting the network allowed the restart of the EM agent to successfully connect to the OMS.