Note: This is not an official document, it discusses Oracle Enterprise Manager Grid Control (EMGC) installation on Redhat Linux Update 3 & Update 4 with new database NOT with an existing database. Both OS Updates were installed with FULL PACKAGE INSTALLATION option. Oracle Universal Installer creates the database automatically before creating the EMGC repository.
• For Linux the base version of the EMGC is 10.2.0.1 and for Windows platform it is 10.2.0.2.
• The database release is 10.1.0.4 with EMGC 10.2.0.1.
• When installed it creates three Oracle Homes: 1) db10g (database), 2) oms10g (Oracle Management Service), and 3) agent10g.
Course of Action:
To get to Oracle EMGC 10.2.0.3:
• Install EMGC 10.2.0.1
Upgrade Oracle Home oms10g to 10.2.0.3.
Upgrade Oracle Home agent10g to 10.2.0.3.
To get to Oracle Database 10g 10.2.0.3:
• Oracle Database 10g 10.1.0.4 will get installed by the OUI automatically
Upgrade Oracle Database 10g to 10.2.0.1 in new Oracle DB Home.
Upgrade new Oracle DB Home to 10.2.0.3.
====================================
Installing EM Grid Control 10.2.0.1:
====================================
To install EMGC 10.2.0.1 download all the three files: Linux_Grid_Control_full_102010_disk1.zip, Linux_Grid_Control_full_102010_disk2.zip, Linux_Grid_Control_full_102010_disk3.zip from
http://www.oracle.com/technology/software/products/oem/htdocs/linuxsoft.html.
If you have unzipped all the downloaded zip files in separate directories then the very first error message slammed at your face after starting the installation will be something like “OUI-10133: Invalid Staging Area. There Area No Top Level Components”. All you have to do is to unzip all the three files in the single directory (Metalink 395030.1).
After unzipping all the files in the same directory follow the steps that are given on the follow URL.
http://www.oracle.com/technology/obe/obe10gemgc_10202/install/install.htm
BUT the problem is that you will be punched with few other error messages during the installation that will terminate the installation. The WORKAROUND is given below.
There are three stages of the installation by OUI:
1. Installation of EM Repository Database 10.2.0.1.
2. Installation of EM Grid Console 10.2.0.1.
3. Installation of Agent 10.2.0.1.
The first stage completes without any problem and on the OUI you will see: Oracle Enterprise Manager Repository Database 10.2.0.1.0 installed. While installing the Grid Console, during copying files for "Oracle Application Server 10g 10.1.2.0.2" at 90% OUI will pop up an error message "An error occurred during runtime." You will see lines similar to the following lines in the installation log files.
INFO: Calling Action SpawnActions10.1.0.3.0 Spawn
installcommand = /u01/app/oracle/product/10.2.0/oms10g/bin/OracleAS_Relink_Patch.sh
deinstallcommand =
WaitForCompletion = null
INFO: Exception occured during spawning :java.io.IOException: /u01/app/oracle/product/10.2.0/oms10g/bin/OracleAS_Relink_Patch.sh: cannot execute
INFO: Spawning the modified command :/u01/app/oracle/product/10.2.0/oms10g/bin/OracleAS_Relink_Patch.sh
INFO: Exception thrown from action: Spawn
Exception Name: RuntimeException
Exception String: An error occurred during runtime.
Exception Severity: 0
Problem:
There is a bug which is still being worked on by the DEV : Bug 5203165 : Abstract: CANNOT EXECUTE ../oms10g/bin/OracleAs_Relink_Patch.sh AT INSTALL
Note that this is an unpublished bug, not viewable via Metalink. The bug apparently occurs only on RHEL4 (32bit) Update 2 and Update 3 (I faced the same thing in Update 4 as well).
Workaround:
• Leave the error message as it is and change the execution permission of the script OracleAS_Relink_Patch.sh.
$ chmod +x /u01/app/oracle/product/10.2.0/oms10g/bin/OracleAS_Relink_Patch.sh
• Now press Retry on the error message pop up window. The installation will resume.
On the same stage while linking at 90% one another error message will pop up “Error in invoking target 'install' of makefile '/u01/app/oracle/product/10.2.0/oms10g/sqlplus/lib/ins_sqlplus.mk'”.
Problem:
Hitting bug : 5203194 :Abstract: RELINK FAILS ON 10.2 GC INSTALL -LIBCLNTSH.SO: UNDEFINED REFERENCE TO NNFGTABLE
Bug is not published in Metalink. As per the description: Installing 10.2.0.2 Grid Control on RHEL4 Update 2 or Update 3 (I faced the same thing in Update 4 as well). This generates an error in the linking phase. The error is generated while attempting to relink sqlplus.
Workaround:
• Stop installation of all components.
• Restart the installation and pick the option to resume the installation.
• This allows the installation to complete.
If by any chance you press continue instead of stopping the installation you should get ready for the garbage OUI is going to throw at you:
Error in invoking target 'install' of makefile '/u01/app/oracle/product/10.2.0/oms10g/network/lib/ins_net_client.mk'
Error in invoking target 'install' of makefile '/u01/app/oracle/product/10.2.0/oms10g/network/lib/ins_nau.mk'
Error in invoking target 'install' of makefile '/u01/app/oracle/product/10.2.0/oms10g/webcache/lib/ins_calypso.mk'
During Setting up 'Perl Interpreter 5.6.1.0.2d'
An error occurred during runtime
During Setting up 'Oracle Application Server 10g 10.1.2.0.2'
The OPMN Process Manager failed to start. Please check the logs in the /u01/app/oracle/product/10.2.0/oms10g/opmn/logs directory for the cause of failure. Once the cause of failure has been remedied, start OPMN manually and click Retry.
HTTP Server Configuration Assistant Failed.
OUI-25031:Some of the configuration assistants failed. It is strongly recommended that you retry the configuration assistants at this time. Not successfully running any "Recommended" assistants means your system will not be correctly configured.
1. Check the Details panel on the Configuration Assistant Screen to see the errors resulting in the failures.
2. Fix the errors causing these failures.
3. Select the failed assistants and click the 'Retry' button to retry them.
====================================
Upgrading EM Grid Control 10.2.0.1 to 10.2.0.3:
====================================
I hope after installing EMGC 10.2.0.1 you are still intending to upgrade it..... :-D Now for that download GridControl_10.2.0.3_Linux.zip from
http://www.oracle.com/technology/software/products/oem/htdocs/linuxsoft.html and follow the README.txt file included with the upgrade patch. Before starting the upgrade you will probably have to apply a patch (4329444) on the existing database (10.1.0.4). Anyway, its one of the prereq that you have to complete.
For upgrade follow the steps given on the following URL.
http://www.oracle.com/technology/obe/obe10gemgc_10203/patching/patching.htm
• Keep one thing in mind that you will have to apply the above mentioned patch twice. Once for oms10g home and once for agent10g home.
• Stop all the EMGC related services.
• When applying the patch to a particular home change the ORACLE_HOME to that home. E.g. when applying the patch on the oms10g home:
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/oms10g
and for agent10g home:
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/agent10g
====================================
Upgrading Database from 10.1.0.4 to 10.2.0.1:
====================================
Download the file 10201_database_linux32.zip from
http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201linuxsoft.html.
• Shutdown all the EMGC related services, the listener, and the database.
• Start the installation of 10.2.0.1.
• Since 10.2.0.1 is a base release that is why you cannot install it in the existing Oracle Home i.e. in db10g. You have to define a separate Oracle Home for the new installation say db10gR2.
• During the installation it will ask you to upgrade the existing database 10.1.0.4 to 10.2.0.1, click YES.
• Hopefully the installation will go just fine.
====================================
Upgrading Database from 10.2.0.1 to 10.2.0.3:
====================================
Download the file p5337014_10203_LINUX.zip from
http://metalink.oracle.com.
• Shutdown all the EMGC related services, the listener, and the database.
• Start the installation of 10.2.0.3.
• During installation it will ask for the Oracle Home, give the new Oracle Database Home i.e. db10gR2 and proceed.
• Hopefully the installation will go just fine.
• Start the database, listener, and all the EM GC related services:
o $ORACLE_HOME/../oms10g/bin/emctl start em
o $ORACLE_HOME/../agent10g/bin/emctl start agent
o $ORACLE_HOME/../oms10g/opmn/bin/opmnctl startall
• Try accessing the EMGC through the browser
http://xyz.abc.com:4889/em
• You will see two Oracle databases in the EMGC, the old one, 10.1.0.4 and the new one 10.2.0.3. Don’t worry it will not bother you at all. It will only occupy a GB or so. Though, you can remove it through OUI.
Congratulations!!!! you have now Enterprise Manager Grid Control 10.2.0.3 with Database 10.2.0.3 on RHEL 4 Update 3.
You can repeat the same exercise for RHEL4 Update 4 as well, but during pre-installation checks you will get 1 warning that:
Checking for compat-libstdc++-296-2.96-132.7.2; found Not found. Failed <<<<
Checking for libstdc++devel-3.4.3-22.1; found Not found. Failed <<<<
Checking for openmotif-21-2.1.30-11; found openmotif-2.2.3-10.RHEL4.5. Failed <<<<
Actually, these packages are already there in the OS but the higher versions. It is evident from the above messages that first it “founds” the package but due to the version conflict it says that “Not found”. All you have to do is click on the check box next to warning, it will change to User Verified or something. Now press Next and follow the same steps that we followed for Update 3.