首页 » ORACLE » grid control 安装总结 (二)之agentDownload.linux安装AGNET

grid control 安装总结 (二)之agentDownload.linux安装AGNET

前一篇提到AGENT的多种安装方式中,如果平台一致最容易的安装方法就是使用agentDownload.linux
下面来看我的安装过程

用oracle数据库的安装用户,保证WGET可用,保证oms端的端口(4889)开放,简单方法在这之前先关掉防火墙

环境。

oms hostname:orazhang  192.168.5.124 linux rhel5 oracle 10.2.0.1

agent hostname:anbob 192.168.168.158 linux rhel5 oracle 10.2.0.1

在orazhang机器上操作ssh 连到anbob

[oracle@orazhang ~]$ ssh 192.168.168.158
The authenticity of host '192.168.168.158 (192.168.168.158)' can't be established.
RSA key fingerprint is 94:39:13:22:79:61:31:f1:45:fa:0e:9c:28:75:bd:ed.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.168.158' (RSA) to the list of known hosts.
oracle@192.168.168.158's password:
Last login: Wed Dec 14 15:43:26 2011 from 192.168.5.98

[oracle@anbob ~]$ ls
dropuser.txt  login.sql

[oracle@anbob ~]$ su -
Password:
[root@anbob ~]# vi /etc/hosts

填加
192.168.5.124  orazhang

[root@anbob ~]# ping orazhang
PING omsserver (192.168.5.124) 56(84) bytes of data.
64 bytes from orazhang (192.168.5.124): icmp_seq=1 ttl=63 time=6.57 ms
64 bytes from orazhang (192.168.5.124): icmp_seq=2 ttl=63 time=0.615 ms
64 bytes from orazhang (192.168.5.124): icmp_seq=3 ttl=63 time=0.564 ms

--- omsserver ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 0.564/2.584/6.575/2.822 ms

[root@anbob ~]# exit
logout

下载agentDownload.linux 下本机(agent端)
[oracle@anbob ~]$ scp orazhang:/u01/app/oracle/gc102/oms10g/sysman/agent_download/10.2.0.1.0/linux/agentDownload.linux ~
The authenticity of host 'omsserver (192.168.5.124)' can't be established.
RSA key fingerprint is 7f:ee:68:c1:d2:27:66:03:cf:a9:4b:31:82:0e:aa:75.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'omsserver,192.168.5.124' (RSA) to the list of known hosts.
oracle@omsserver's password:
agentDownload.linux                           100%   22KB  22.2KB/s   00:00
[oracle@anbob ~]$ ls
agentDownload.linux  dropuser.txt  login.sql

[oracle@anbob product]$ cd $ORACLE_BASE

创建AGENT安装目录
[oracle@anbob oracle]$ mkdir agent10g

[oracle@anbob oracle]$ cd agent10g/
[oracle@anbob agent10g]$ pwd
/oracle10g/app/oracle/agent10g
[oracle@anbob agent10g]$ cd
[oracle@anbob ~]$ ls
agentDownload.linux  dropuser.txt  login.sql

增加执行权限
[oracle@anbob ~]$ chmod 755 agentDownload.linux
[oracle@anbob ~]$ ll
total 328
-rwxr-xr-x 1 oracle oinstall  22767 Dec 14 16:13 agentDownload.linux
-rw-r--r-- 1 oracle oinstall 299678 Dec  9 12:12 dropuser.txt
-rw-r--r-- 1 oracle oinstall     95 Dec  9 12:18 login.sql

运行前为了保证端口的开方,先在orazhang 上service iptables stop 关掉了firewall

执行,开始下载解压静默安装..
[oracle@anbob ~]$ ./agentDownload.linux -b /oracle10g/app/oracle/agent10g
agentDownload.linux invoked on Wed Dec 14 16:29:59 CST 2011 with Arguments "-b /oracle10g/app/oracle/agent10g"
Platform=Linux, OS=linux
GetPlatform:returned=0, and os is set to: linux, platform=Linux
LogFile for this Download can be found at: "/home/oracle/agentDownload10.2.0.1.0Oui/agentDownload.linux121411162959.log"
Running on Selected Platform: Linux
Installer location: /home/oracle/agentDownload10.2.0.1.0Oui
Downloading Agent install response file ...
--16:30:00--  http://orazhang:4889/agent_download/10.2.0.1.0/agent_download.rsp
Resolving orazhang... 192.168.5.124
Connecting to orazhang|192.168.5.124|:4889... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19999 (20K) [text/plain]
Saving to: `agent_download.rsp'

100%[====================================================================================================================>] 19,999      --.-K/s   in 0.002s

16:30:00 (11.0 MB/s) - `agent_download.rsp' saved [19999/19999]

Finished Downloading with Status=0
Downloaded response with status=0
Downloading Oracle Installer ...
--16:30:00--  http://orazhang:4889/agent_download/10.2.0.1.0/linux/oui/oui_linux.jar
Resolving orazhang... 192.168.5.124
Connecting to orazhang|192.168.5.124|:4889... connected.
HTTP request sent, awaiting response... 200 OK
Length: 46620679 (44M) [application/java-archive]
Saving to: `oui_linux.jar'

100%[====================================================================================================================>] 46,620,679  1.93M/s   in 22s

16:30:22 (2.06 MB/s) - `oui_linux.jar' saved [46620679/46620679]

Downloaded Oracle Installer with status=0
Downloading  Unzip Utility ...
--16:30:22--  http://orazhang:4889/agent_download/10.2.0.1.0/linux/agent/install/unzip
Resolving orazhang... 192.168.5.124
Connecting to orazhang|192.168.5.124|:4889... connected.
HTTP request sent, awaiting response... 200 OK
Length: 101448 (99K) [text/plain]
Saving to: `unzip'

100%[====================================================================================================================>] 101,448     --.-K/s   in 0.03s

16:30:22 (2.93 MB/s) - `unzip' saved [101448/101448]

Adding execute permissions to unzip ...
Downloaded UnzipUtility with status=0
The jar to be used=/usr/bin/jar
Verifying Installer jar ...
Verified InstallerJar with status=0
Unjarring Oracle Installer ...
Archive:  /home/oracle/agentDownload10.2.0.1.0Oui/oui_linux.jar
creating: Disk1/stage/
creating: Disk1/stage/fastcopy/
inflating: Disk1/stage/fastcopy/setperms1.sh
inflating: Disk1/stage/fastcopy/oracle.swd_Complete_1.xml
inflating: Disk1/stage/fastcopy/oracle.swd_Complete_exp_1.xml
inflating: Disk1/stage/fastcopy/oracle.
...

漫长的等待后要用root 执行一个sh脚本

[oracle@anbob ~]$ su -
Password:
[root@anbob ~]# /oracle10g/app/oracle/agent10g/agent10g/root.sh
Running Oracle10 root.sh script...

The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME=  /oracle10g/app/oracle/agent10g/agent10g

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]:
The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]:
The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]:

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.

到这里配置完成

[oracle@anbob agent10g]$ bin/emctl start agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
Starting agent ……….. started.
[oracle@anbob agent10g]$ bin/emctl status agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
—————————————————————
Agent Version : 10.2.0.1.0
OMS Version : 10.2.0.1.0
Protocol Version : 10.2.0.0.0
Agent Home : /oracle10g/app/oracle/agent10g/agent10g
Agent binaries : /oracle10g/app/oracle/agent10g/agent10g
Agent Process ID : 388
Parent Process ID : 369
Agent URL : https://anbob:3872/emd/main/
Repository URL : https://orazhang:1159/em/upload
Started at : 2011-12-15 09:27:20
Started by user : oracle
Last Reload : 2011-12-15 09:27:20
Last successful upload : 2011-12-15 09:28:31
Total Megabytes of XML files uploaded so far : 5.58
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0.00
Available disk space on upload filesystem : 13.73%
Last successful heartbeat to OMS : 2011-12-15 09:27:33
—————————————————————
Agent is Running and Ready

显示就是安装好了,如果Last successful upload 为none,如我下面的显示就是证明有问题

[oracle@anbob agent10g]$ bin/emctl status agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
—————————————————————
Agent Version : 10.2.0.1.0
OMS Version : 10.2.0.1.0
Protocol Version : 10.2.0.0.0
Agent Home : /oracle10g/app/oracle/agent10g/agent10g
Agent binaries : /oracle10g/app/oracle/agent10g/agent10g
Agent Process ID : 28743
Parent Process ID : 28725
Agent URL : http://anbob:3872/emd/main/
Repository URL : http://orazhang:4889/em/upload/
Started at : 2011-12-15 09:13:52
Started by user : oracle
Last Reload : 2011-12-15 09:13:52
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0.00
Number of XML files pending upload : 152
Size of XML files pending upload(MB) : 19.17
Available disk space on upload filesystem : 13.48%
Last successful heartbeat to OMS : 2011-12-15 09:14:37
—————————————————————
Agent is Running and Ready
[oracle@anbob agent10g]$ bin/emctl upload agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
—————————————————————
EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..

这是有问题,篇幅原因, 这个问题我们看一下篇解决

打赏

对不起,这篇文章暂时关闭评论。