References
Overview
One of the 11G OCM Objectives is:
Install and configure EM Agent
I need to get the EM Agent installed on the
PENRITH
cluster and
BANKSTOWN
node before I can use OEM to set up Data Guard.
Procedure
Set Up Agent Deploy Application
I used the procedure in Set Up Agent Deploy Application .
Using the Agent Deploy Application
From the OEM console, I accessed
New Agent Installation: Installation Details
via:
- Deployments Tab
- Install Agent
- Fresh Install
I changed the following parameters:
Parameter Name | Old Value | New Value | Reason for Change |
---|---|---|---|
Version | 10.2.0.5.0 | 10.2.0.1.0 | There is no staged software for the 10.2.0.5.0 agent available (despite the comment). |
Provide Host List | bankstown | Required parameter | |
username | oracle | Required parameter | |
Password | ******** | Required parameter | |
Confirm Password | ******** | Required parameter | |
Run root.sh | Checked | Unchecked | sudo is not enabled for ssh — requires a tty |
Installation Base Directory |
/u01/app/oracle
|
Required parameter |
If
Run root.sh
is left checked, the following error is displayed:
- Provide Host List - User not enabled for sudo on one or more of the remote nodes. : : bankstown
- Either the user does not have root access on the remote nodes or the password supplied is incorrect
Prerequisite Check Failed
I get the message:
The system check of OS Version, GLIBC, and packages check has failed.
The reasons are:
WARNING : Checking for make-3.79; found make-1:3.81-3.el5. Passed
Checking for binutils-2.15.92.0.2-13; found binutils-2.17.50.0.6-12.el5. Passed
Checking for gcc-3.4.3-22.1; found gcc-4.1.2-46.el5. Passed
Checking for libaio-0.3.96; found libaio-0.3.106-3.2. Passed
Checking for glibc-common-2.3.4-2.9; found glibc-common-2.5-42. Passed
Checking for compat-libstdc++-296-2.96-132.7.2; found Not found. Failed <<<<
Checking for libstdc++-3.4.3-22.1; found libstdc++-4.1.2-46.el5. Passed
Checking for libstdc++devel-3.4.3-22.1; found Not found. Failed <<<<
Checking for openmotif-21-2.1.30-11; found Not found. Failed <<<<
Checking for pdksh-5.2.14-30; found Not found. Failed <<<<
Checking for setarch-1.6-1; found setarch-2.0-1.1. Passed
Checking for gnome-libs-1.4.1.2.90-44.1; found Not found. Failed <<<<
Checking for sysstat-5.0.5-1; found sysstat-7.0.2-3.el5. Passed
Checking for compat-db-4.1.25-9; found Not found. Failed <<<<
Checking for control-center-2.8.0-12; found control-center-1:2.16.0-16.el5. Passed
Checking for xscreensaver-4.18-5.rhel4.2; found Not found. Failed <<<<
Check complete. The overall result of this check is: Failed <<<<
The summary of the problem is:
Package | Status |
---|---|
compat-libstdc++-296
|
Installed off RHEL 5.4 DVD |
libstdc++devel
|
Not on RHEL 5.4 DVD |
openmotif-21
|
Not on RHEL 5.4 DVD |
pdksh
|
Installed off RHEL 5.4 DVD |
gnome-libs
|
Not on RHEL 5.4 DVD |
compat-db
|
Installed off RHEL 5.4 DVD |
xscreensaver
|
Not on RHEL 5.4 DVD |
I only managed to install three (3) packages 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]# yum localinstall compat-libstdc++-296-2.96-138.i386.rpm pdksh-5.2.14-36.el5.i386.rpm compat-db-4.2.52-5.1.i386.rpm Loaded plugins: rhnplugin, security This system is not registered with RHN. RHN support will be disabled. Setting up Local Package Process Examining compat-libstdc++-296-2.96-138.i386.rpm: compat-libstdc++-296-2.96-138.i386 Marking compat-libstdc++-296-2.96-138.i386.rpm to be installed local | 1.3 kB 00:00 Examining pdksh-5.2.14-36.el5.i386.rpm: pdksh-5.2.14-36.el5.i386 Marking pdksh-5.2.14-36.el5.i386.rpm to be installed Examining compat-db-4.2.52-5.1.i386.rpm: compat-db-4.2.52-5.1.i386 Marking compat-db-4.2.52-5.1.i386.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package compat-db.i386 0:4.2.52-5.1 set to be updated ---> Package compat-libstdc++-296.i386 0:2.96-138 set to be updated ---> Package pdksh.i386 0:5.2.14-36.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: compat-db i386 4.2.52-5.1 /compat-db-4.2.52-5.1.i386 3.9 M compat-libstdc++-296 i386 2.96-138 /compat-libstdc++-296-2.96-138.i386 253 k pdksh i386 5.2.14-36.el5 /pdksh-5.2.14-36.el5.i386 364 k Transaction Summary ================================================================================ Install 3 Package(s) Update 0 Package(s) Remove 0 Package(s) Total size: 4.5 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : compat-libstdc++-296 1/3 error: failed to stat /media/RHEL_5.4 i386 DVD: No such file or directory Installing : compat-db 2/3 Installing : pdksh 3/3 Installed: compat-db.i386 0:4.2.52-5.1 compat-libstdc++-296.i386 0:2.96-138 pdksh.i386 0:5.2.14-36.el5 Complete!
Second Attempt
This time, I click
Continue
at the prequisite check failure and get the following error message:
The
/ap_logs/2012-01-09_16-19-12-PM/logs/bankstown/install.log
shows the following error:
The jar to be used= Can't find the jar utility. Add jar to your PATH and try again.
Fix BASH Profile
I update
~/.bash_profile
on
BANKSTOWN
for the
oracle
user with the following lines:
export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_2 export JAVA_HOME=$ORACLE_HOME/jdk PATH=$ORACLE_HOME/bin:$JAVA_HOME/bin:$PATH:$HOME/bin
And I click on
Retry
.
Third Attempt
The third attempt fails. The error message in
/ap_logs/2012-01-09_16-19-12-PM/logs/bankstown/install.log
is the same as for the second attempt.
This time, I update
~/.bashrc
with the following lines:
export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_2 export JAVA_HOME=$ORACLE_HOME/jdk export PATH=$ORACLE_HOME/bin:$JAVA_HOME/bin:$PATH
And
~/.bash_profile
has the first three (3) exports removed and the PATH is restored as follows:
PATH=$PATH:$HOME/bin
And I click on
Retry
yet again.
Fourth Attempt
And this was successful.
Except the agent cannot upload to the OMS.
Secure the Agent
The firewall has to be turned off:
service iptables off chkconfig --level 5 iptables off
To fix the problem with the agent, I had to secure it as per the procedure in Grid Control (14) (OCM 10G installation).