OEM Grid Control 10g on CentOS 4

1. Preparation
Downloaded EM grid control for linux 86 from otn.oracle.com.
Got 3 zip files here: ***Disk1.zip, ***Disk2.zip, ***Disk3.zip. Unzipped them to Diks1,Disk2,Disk3 directories (it proved to be a very bad idea when problem showed off later).

2. Stage A: Repository database

Funny Software layout
***/Disk1/runInstaller prompt ‘please give 2nd disk location’ as expected after it ran a while. However it pass only after I gave Disk3 instead of Disk2, Why? Looks the strange folder layout is the root reason.
– Disk1
  – oms
  – rdbms
    – Disk1
– Disk2
  – oms
    – Disk1
– Disk3
  – oms
    – Disk2
  – rdbms
    – Disk2

3 Stage B: EM Grid

OUI-10133: Invalid staging area. There are no top level components for Linux available fro installation in this staging area
Things went wild when it just finished repository database. Fortunately I already knew how to handle this kind of error during silent installation: go to correct ‘from_location’ in response file. I fixed it exactly in this way:

vi $EM_HOME/db10g/sysman/install/oms.rsp
$EM_HOME/db10g/oui/bin/runInstaller -responseFile $EM_HOME/db10g/sysman/install/oms.rsp

4 Stage C: EM Agent

So far so good. However, it can’t run after it successfully finished installation.

5 Something rotten behind

$ORACLE_HOME/bin/emctl start oms
Oracle Enterprise Manager 10g Release
Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
opmnctl: opmn is already running
Starting HTTP Server …
Starting Oracle Management Server …
Checking Oracle Management Server Status …
Oracle Management Server is not functioning because of the following reason:
Unexpected error occurred. Check error and log files.

6 Back to disk layout again

– Disk1
  – oms
    – Disk1 (moved here)
    – Disk2 (moved here)
  – rdbms
    – Disk1
    – Disk2 (moved here)
– Disk2
– Disk3

7 Re-install with new disk layout

7.1 It worked well until it showed another error in stage b. ‘An error occurred during runtime’. What is that? Check out log file and found it is a file permission problem:

tail -20f $OInventory_home/logs/installActions***.log
INFO: Exception thrown from action: Spawn
Exception Name: RuntimeException
Exception String: An error occurred during runtime.
Exception Severity: 0
INFO: Exception handling set to prompt user with options to  Retry  Ignore
User Choice: Retry
INFO: Exception occured during spawning :java.io.IOException: ***/oms10g/bin/OracleAS_Relink_Patch.sh: cannot execute
INFO: Spawning the modified command :***/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

Fixed it this way directly:

 ls -al ***/oms10g/bin/OracleAS_Relink_Patch.sh
-rw-rw—-  1 oracle oinstall 1948 ***/oms10g/bin/OracleAS_Relink_Patch.sh
chmod u+x ***/oms10g/bin/OracleAS_Relink_Patch.sh

7.2 libclntsh.so: undefined reference to `nnfgtent’
It stuck again after a short time. ‘Error in invoking target ‘install’ of makefile ‘******/oms10g/sqlplus/lib/ins_sqlplus.mk’ . Log file shows as follows:

INFO: ***/oms10g/lib//libclntsh.so: undefined reference to `nnfgtable’
***/oms10g/lib//libclntsh.so: undefined reference to `nnfgtent’
collect2: ld returned 1 exit status

INFO: make:
INFO: *** [sqlplus] Error 1

INFO: End output from spawned process.
INFO: ———————————-
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target ‘install’ of makefile ‘***/oms10g/sqlplus/lib/ins_sqlplus.mk’. See ‘***/oraInventory/gc/logs/installActions***.log’ for details.
Exception Severity: 1

Google gave me a valueble link at first page: http://oracleappsdba.net/emgrid/inst_emgc10201_lnx32_wi.html
The author gave following solution: (quit-resume installation, It proved worked perfectly)

INFO: *** Cancel Dialog:  ***
INFO: User Selected: Stop installation of all products.

Choose ‘Resume installation’ after re-execute runInstaller, It rocks this time.

8 Verify EM Grid after installation
http://***:4889/em, functions well this time.

Good enough, I found another good URL talking about EM Grid on RHEL4:  http://forums.oracle.com/forums/thread.jspa?threadID=499495&tstart=0 . Someone suggest use EM Grid directly, worth proving.


About Pang

Oracle DBA working in database, fusion middleware and identity management and cloud.
This entry was posted in OEM and grid control. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s