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
Installing Management Agent Using agentDownload Script
In
Installing Management Agent Using agentDownload Script
, I used the
wget
utility to get the deployment script:
[oracle@penrith1 ~]$ wget http://gridctrl.yaocm.id.au:4889/agent_download/10.2.0.5.0/linux/agentDownload.linux --2012-01-10 12:24:17-- http://gridctrl.yaocm.id.au:4889/agent_download/10.2.0.5.0/linux/agentDownload.linux Resolving gridctrl.yaocm.id.au... 10.1.1.252 Connecting to gridctrl.yaocm.id.au|10.1.1.252|:4889... connected. HTTP request sent, awaiting response... 200 OK Length: 34132 (33K) [text/plain] Saving to: `agentDownload.linux' 100%[=================================================================================================================>] 34,132 --.-K/s in 0s 2012-01-10 12:24:27 (80.3 MB/s) - `agentDownload.linux' saved [34132/34132]
Installation Failed
The installation of the agent failed because of a missing file,
agent_download/10.2.0.5.0/linux/oui/oui_linux.jar
:
[oracle@penrith1 ~]$ chmod u+x agentDownload.linux [oracle@penrith1 ~]$ ./agentDownload.linux -b /u01/app/oracle -m gridctrl.yaocm.id.au -c penrith1 -n penrith.yaocm.id.au -l agentDownload.linux invoked on Tue Jan 10 12:37:31 EST 2012 with Arguments "-b /u01/app/oracle -m gridctrl.yaocm.id.au -c penrith1 -n penrith.yaocm.id.au -l" Platform=Linux.i686, OS=linux GetPlatform:returned=0, and os is set to: linux, platform=Linux.i686 Creating /home/oracle/agentDownload10.2.0.5.0Oui ... LogFile for this Download can be found at: "/home/oracle/agentDownload10.2.0.5.0Oui/agentDownload.linux011012123731.log" Running on Selected Platform: Linux.i686 Installer location: /home/oracle/agentDownload10.2.0.5.0Oui Downloading Agent install response file ... Downloading Agent install response file ... Executing wget_get_file agent_download.rsp using the url http://gridctrl.yaocm.id.au:4889/agent_download/10.2.0.5.0/ to access OMS --2012-01-10 12:37:31-- http://gridctrl.yaocm.id.au:4889/agent_download/10.2.0.5.0/agent_download.rsp Resolving gridctrl.yaocm.id.au... 10.1.1.252 Connecting to gridctrl.yaocm.id.au|10.1.1.252|:4889... connected. HTTP request sent, awaiting response... 200 OK Length: 23356 (23K) [text/plain] Saving to: `agent_download.rsp' 100%[=================================================================================================================>] 23,356 --.-K/s in 0.02s 2012-01-10 12:37:41 (1.39 MB/s) - `agent_download.rsp' saved [23356/23356] Finished Downloading agent_download.rsp with Status=0 Response file check Complete - Success Checking the writable permission for baseDir - passed Provide the Agent Registration password so that the Management Agent can communicate with Secure Management Service. Note: You may proceed with the installation without supplying the password; however, Management Agent can be secured manually after the installation. If Oracle Management Service is not secured, agent will not be secured, so continue by pressing Enter Key. Enter Agent Registration Password: Downloading Oracle Installer ... Executing wget_get_file linux/oui/oui_linux.jar using the url http://gridctrl.yaocm.id.au:4889/agent_download/10.2.0.5.0/ to access OMS --2012-01-10 12:37:54-- http://gridctrl.yaocm.id.au:4889/agent_download/10.2.0.5.0/linux/oui/oui_linux.jar Resolving gridctrl.yaocm.id.au... 10.1.1.252 Connecting to gridctrl.yaocm.id.au|10.1.1.252|:4889... connected. HTTP request sent, awaiting response... 404 Not Found 2012-01-10 12:38:04 ERROR 404: Not Found. Finished Downloading oui_linux.jar with Status=1 Command failed: wget_get_file linux/oui/oui_linux.jar Removing the copied stuff..... Removed: /home/oracle/agentDownload10.2.0.5.0Oui/agent_download.rsp
Download 10.2.0.1.0 Agent
By comparing the directory structure between
/agent_download/10.2.0.1.0/linux
and
/agent_download/10.2.0.5.0/linux
, there are several directories and files missing:
- [DIR] addons/
- [DIR] agent/
- [TXT] agentDownload.linux
- [ ] agent_scripts.jar
- [ ] agent_scripts.jar.orig
- [DIR] oui/
- [DIR] prereqs/
- [DIR] response/
Install Missing Packages
From 02 Deploy EM Agent on BANKSTOWN and 03 Upgrade to EM Agent 10.2.0.5.0 , I have to install several missing packages:
[root@penrith1 ~]# cd /media/Server/ [root@penrith1 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 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 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 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 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 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 libXp.i386 0:1.0.0-8.1.el5 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 libXp i386 1.0.0-8.1.el5 /libXp-1.0.0-8.1.el5.i386 32 k pdksh i386 5.2.14-36.el5 /pdksh-5.2.14-36.el5.i386 364 k Transaction Summary =========================================================================================================================================================== Install 4 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/4 error: failed to stat /media/RHEL_5.4 i386 DVD: No such file or directory Installing : compat-db 2/4 Installing : libXp 3/4 Installing : pdksh 4/4 Installed: compat-db.i386 0:4.2.52-5.1 compat-libstdc++-296.i386 0:2.96-138 libXp.i386 0:1.0.0-8.1.el5 pdksh.i386 0:5.2.14-36.el5 Complete!
Update BASH Profile Scripts
Both
~/.bashrc
and
~/.bash_profile
scripts were updated as described in
02 Deploy EM Agent on BANKSTOWN
.
EM Agent 10.2.0.1.0
I used the following commands to successfully install the 10.2.0.1.0 EM Agent:
cd wget http://gridctrl.yaocm.id.au:4889/agent_download/10.2.0.1.0/linux/agentDownload.linux chmod u+x agentDownload.linux.1 ./agentDownload.linux.1 -b /u01/app/oracle -m gridctrl.yaocm.id.au -c penrith1 -n penrith.yaocm.id.au -l
Upgrade to 10.2.0.5.0 Agent Successful
Following the procedure in 03 Upgrade to EM Agent 10.2.0.5.0 , I was able to successfully upgrade the EM Agent to 10.2.0.5.0.