码迷,mamicode.com
首页 > 其他好文 > 详细

Grid Control Agent无法配置成功的案例分享

时间:2015-01-10 19:50:16      阅读:836      评论:0      收藏:0      [点我收藏+]

标签:oracle   gc   make错误   agent configuration   oms   

最近在做GC的实验,在GC服务器上软件都顺利安装成功,OMS和自己上面的AGENT也都能够顺利启动,但是就是DB服务器的agent死活配置不成功,一直报错,找了半天也没有发现是什么原因。下面是部分实验过程:

GC服务器:

[root@ocm2 ~]# su - oracle
[oracle@ocm2 ~]$ emctl status oms
Oracle Enterprise Manager 10g Release 10.2.0.1.0  
Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
Oracle Management Server is not functioning because of the following reason:
Connection to the repository failed. Verify that the repository connection information provided is correct.
[oracle@ocm2 ~]$ lsnrctl start

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 10-JAN-2015 09:49:00

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ocm2.localdomain)(PORT=1521)))

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date                10-JAN-2015 09:49:01
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Log File         /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ocm2.localdomain)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@ocm2 ~]$ sqlplus / as sysdba

SQL*Plus: Release 10.1.0.4.2 - Production on Sat Jan 10 09:49:06 2015

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to an idle instance.

SYS@EMREP> alter system register;     --动态注册,加速注册实例到监听
alter system register
*
ERROR at line 1:
ORA-01034: ORACLE not available


SYS@EMREP> startup
ORACLE instance started.

Total System Global Area  608174080 bytes
Fixed Size                  1220844 bytes
Variable Size             209719060 bytes
Database Buffers          394264576 bytes
Redo Buffers                2969600 bytes
Database mounted.
Database opened.
SYS@EMREP> !
[oracle@ocm2 ~]$ lsnrctl status

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 10-JAN-2015 09:50:21

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date                10-JAN-2015 09:49:01
Uptime                    0 days 0 hr. 1 min. 20 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Log File         /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ocm2.localdomain)(PORT=1521)))
Services Summary...
Service "EMREP" has 1 instance(s).
  Instance "EMREP", status READY, has 1 handler(s) for this service...
Service "EMREP_XPT" has 1 instance(s).
  Instance "EMREP", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@ocm2 ~]$ emctl status oms
Oracle Enterprise Manager 10g Release 10.2.0.1.0  
Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
Oracle Management Server is Up.
[oracle@ocm2 ~]$ cd $OMS_HOME/opmn/bin/opmnctl status
bash: cd: /u01/app/oracle/OracleHomes/oms10g/opmn/bin/opmnctl: Not a directory
[oracle@ocm2 ~]$ cd $OMS_HOME/sysopmn/bin/
[oracle@ocm2 bin]$ ./opmnctl status

Processes in Instance: EnterpriseManager0.ocm2.localdomain
-------------------+--------------------+---------+---------
ias-component      | process-type       |     pid | status  
-------------------+--------------------+---------+---------
DSA                | DSA                |    2162 | Alive   
HTTP_Server        | HTTP_Server        |    2163 | Alive   
LogLoader          | logloaderd         |    2160 | Alive   
dcm-daemon         | dcm-daemon         |    2159 | Alive   
OC4J               | home               |    2165 | Alive   
OC4J               | OC4J_EMPROV        |    2164 | Alive   
OC4J               | OC4J_EM            |    2118 | Alive   
WebCache           | WebCache           |    2233 | Alive   
WebCache           | WebCacheAdmin      |     N/A | Down    

[oracle@ocm2 bin]$ ./opmnctl startall
opmnctl: starting opmn and all managed processes...
[oracle@ocm2 bin]$ ./opmnctl status  

Processes in Instance: EnterpriseManager0.ocm2.localdomain
-------------------+--------------------+---------+---------
ias-component      | process-type       |     pid | status  
-------------------+--------------------+---------+---------
DSA                | DSA                |    2162 | Alive   
HTTP_Server        | HTTP_Server        |    2163 | Alive   
LogLoader          | logloaderd         |    2160 | Alive   
dcm-daemon         | dcm-daemon         |    2159 | Alive   
OC4J               | home               |    2165 | Alive   
OC4J               | OC4J_EMPROV        |    2164 | Alive   
OC4J               | OC4J_EM            |    2118 | Alive   
WebCache           | WebCache           |    2233 | Alive   
WebCache           | WebCacheAdmin      |    5084 | Alive   

[oracle@ocm2 bin]$ $AGENT_HOME/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        : /u01/app/oracle/OracleHomes/agent10g
Agent binaries    : /u01/app/oracle/OracleHomes/agent10g
Agent Process ID  : 3203
Parent Process ID : 3185
Agent URL         : https://ocm2.localdomain:3872/emd/main/
Repository URL    : https://ocm2.localdomain:1159/em/upload
Started at        : 2015-01-10 09:47:06
Started by user   : oracle
Last Reload       : 2015-01-10 09:47:06
Last successful upload                       : 2015-01-10 09:52:25
Total Megabytes of XML files uploaded so far :     5.48
Number of XML files pending upload           :        0
Size of XML files pending upload(MB)         :     0.00
Available disk space on upload filesystem    :    36.94%
Last successful heartbeat to OMS             : 2015-01-10 09:52:00
---------------------------------------------------------------
Agent is Running and Ready

可以看到,目前GC 主机的oms和agent都已经正常启动

DB服务器:

[root@ocm1 ~]# su - oracle
[oracle@ocm1 ~]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Sat Jan 10 09:57:00 2015

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to an idle instance.

SYS@PROD> startup
ORACLE instance started.

Total System Global Area  314572800 bytes
Fixed Size                  2020480 bytes
Variable Size              96471936 bytes
Database Buffers          213909504 bytes
Redo Buffers                2170880 bytes
Database mounted.
Database opened.
SYS@PROD> !
[oracle@ocm1 ~]$ emctl status agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.  
Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
[oracle@ocm1 ~]$ emctl reload agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.  
Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent is Not Running
[oracle@ocm1 ~]$ emctl start agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.  
Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
Starting agent ................................. failed.
Consult the log files in: /u01/app/oracle/agent10g/sysman/log
[oracle@ocm1 ~]$ cd /u01/app/oracle/agent10g/sysman/log
[oracle@ocm1 log]$ ll -lrth
total 28K
-rw-r----- 1 oracle oinstall    0 Jan  7 21:07 nfsPatchPlug.log
-rw-r----- 1 oracle oinstall  448 Jan  9 22:26 secure.log
-rw-r----- 1 oracle oinstall  462 Jan 10 09:57 agabend.log
-rw-r----- 1 oracle oinstall 5.0K Jan 10 09:57 emagent.nohup
-rw-r----- 1 oracle oinstall  11K Jan 10 09:58 emctl.log
[oracle@ocm1 log]$ tail -10 agabend.log 
Fri Jan  9 21:42:53 2015
XXXXXXXXXXXXXXXX
Fri Jan  9 22:58:32 2015
XXXXXXXXXXXXXXXX
Fri Jan  9 23:00:38 2015
XXXXXXXXXXXXXXXX
Sat Jan 10 09:46:11 2015
XXXXXXXXXXXXXXXX
Sat Jan 10 09:57:55 2015
XXXXXXXXXXXXXXXX
[oracle@ocm1 log]$ tail -10 emagent.nohup 
----- Sat Jan 10 09:46:15 2015::EMAgent exited at Sat Jan 10 09:46:15 2015 with return value 0. -----
----- Sat Jan 10 09:46:15 2015::EMAgent was shutdown normally. -----
----- Sat Jan 10 09:46:15 2015::Exiting watchdog loop
 -----
----- Sat Jan 10 09:57:55 2015::Agent Launched with PID 4935 at time Sat Jan 10 09:57:55 2015 -----
----- Sat Jan 10 09:57:58 2015::Checking status of EMAgent : 4935 -----
----- Sat Jan 10 09:57:58 2015::EMAgent exited at Sat Jan 10 09:57:58 2015 with return value 0. -----
----- Sat Jan 10 09:57:58 2015::EMAgent was shutdown normally. -----
----- Sat Jan 10 09:57:58 2015::Exiting watchdog loop
 -----
[oracle@ocm1 log]$ tail -10 emctl.log 
4025 :: Sat Jan 10 09:57:37 2015::AgentStatus.pm:Abnormal exit code.
4456 :: Sat Jan 10 09:57:48 2015::AgentLifeCycle.pm: Processing reload agent
4456 :: Sat Jan 10 09:57:48 2015::AgentStatus.pm:Processing reload agent
4456 :: Sat Jan 10 09:57:48 2015::AgentStatus.pm:emdctl status agent returned  0
4456 :: Sat Jan 10 09:57:48 2015::AgentStatus.pm:Agent is not running. Just doing encrypt
4892 :: Sat Jan 10 09:57:55 2015::AgentLifeCycle.pm: Processing start agent
4892 :: Sat Jan 10 09:57:55 2015::AgentLifeCycle.pm: EMHOME is /u01/app/oracle/agent10g 
4892 :: Sat Jan 10 09:57:55 2015::AgentLifeCycle.pm:status agent returned with retCode=0
4892 :: Sat Jan 10 09:57:59 2015::AgentLifeCycle.pm:Watch dog processs id: 4914 exited with an exit code of 0
4892 :: Sat Jan 10 09:58:25 2015::AgentLifeCycle.pm: Exited loop with retCode=0

没有发现什么有价值的信息,于是查看make.log,这里记录着软件安装时候的编译记录

[oracle@ocm1 log]$ pwd
/u01/app/oracle/agent10g/sysman/log
[oracle@ocm1 log]$ cd ../../install
[oracle@ocm1 install]$ ll -lrth
total 40K
drwxr-x--- 2 oracle oinstall 4.0K Jan  7 21:06 utl
drwxr-x--- 3 oracle oinstall 4.0K Jan  7 21:06 oneoffs
-rw-r--r-- 1 oracle oinstall  12K Jan  7 21:06 make.log
drwxr-x--- 3 oracle oinstall 4.0K Jan  7 21:06 unix
-rw-r----- 1 oracle oinstall  784 Jan  7 21:06 envVars.properties
-rw-r--r-- 1 oracle oinstall  107 Jan  7 21:06 readme.txt
-rw-r----- 1 oracle oinstall   87 Jan  7 21:06 portlist.ini
drwxr-x--- 2 oracle oinstall 4.0K Jan  7 21:07 chainedInstall
[oracle@ocm1 install]$ tail -10 make.log
make: *** [/u01/app/oracle/agent10g/rdbms/lib/rman] Error 1
/usr/bin/make -f ins_emagent.mk agent nmb nmo emsubagent ORACLE_HOME=/u01/app/oracle/agent10g/make -f /u01/app/oracle/agent10g/sysman/lib/ins_emagent.mk relink_sharedobj SHAREDOBJ=libnmemso 
make[1]: Entering directory `/u01/app/oracle/agent10g/sysman/lib‘
gcc -o /u01/app/oracle/agent10g/sysman/lib/libnmemso.so -Wl,--whole-archive -shared  -L/u01/app/oracle/agent10g/lib/ -L/u01/app/oracle/agent10g/sysman/lib/ -L/u01/app/oracle/agent10g/lib/stubs/ -L/u01/app/oracle/agent10g/lib  -L/u01/app/oracle/agent10g/sysman/lib/ -Wl,-rpath,/u01/app/oracle/agent10g/lib/:/u01/app/oracle/agent10g/sysman/lib/ /u01/app/oracle/agent10g/sysman/lib/libnmem.a  /u01/app/oracle/agent10g/sysman/lib/libnmer.a /u01/app/oracle/agent10g/sysman/lib/libnmeu.a  /u01/app/oracle/agent10g/sysman/lib/libnmeps.a  /u01/app/oracle/agent10g/sysman/lib/libnmt.a    /u01/app/oracle/agent10g/sysman/lib/libnml.a /u01/app/oracle/agent10g/sysman/lib/libnmee.a  /u01/app/oracle/agent10g/sysman/lib/libnmefmgr.a /u01/app/oracle/agent10g/sysman/lib/libnmevr.a /u01/app/oracle/agent10g/sysman/lib/libnmehu.a /u01/app/oracle/agent10g/sysman/lib/libnmehl.a  /u01/app/oracle/agent10g/sysman/lib/libnmepm.a  /u01/app/oracle/agent10g/sysman/lib/libnmecrmgr.a /u01/app/oracle/agent10g/sysman/lib/libnmedc.a /u01/app/oracle/agent10g/sysman/lib/libnmedt.a  /u01/app/oracle/agent10g/sysman/lib/libnmedm.a /u01/app/oracle/agent10g/sysman/lib/libnmedr.a /u01/app/oracle/agent10g/sysman/lib/libnmeb.a  /u01/app/oracle/agent10g/sysman/lib/libnmec.a   /u01/app/oracle/agent10g/sysman/lib/libnmesched.a /u01/app/oracle/agent10g/sysman/lib/libnmectl.a /u01/app/oracle/agent10g/sysman/lib/libnmejc.a /u01/app/oracle/agent10g/sysman/lib/libnmej.a -L/u01/app/oracle/agent10g/jdk/jre/lib/i386/client -L/u01/app/oracle/agent10g/jdk/jre/lib/i386 -z lazyload -ljava -ljvm -lverify -z nolazyload -Wl,-rpath,/u01/app/oracle/agent10g/lib/:/u01/app/oracle/agent10g/sysman/lib/:/u01/app/oracle/agent10g/jdk/jre/lib/i386/client:/u01/app/oracle/agent10g/jdk/jre/lib/i386 /u01/app/oracle/agent10g/sysman/lib/libnmeclumgr.a /u01/app/oracle/agent10g/sysman/lib/libnmecluster.a /u01/app/oracle/agent10g/sysman/lib/libnmexml.a -Wl,--no-whole-archive -lclntsh -lxml10 -lcore10 /u01/app/oracle/agent10g/lib/libn10.a -lnls10 -lunls10 -lnnz10   -lpthread -lnsl -lm -ldl -Wl,-rpath,/u01/app/oracle/agent10g/lib    `cat /u01/app/oracle/agent10g/lib/sysliblist` -ldl -lm 
/usr/bin/ld: skipping incompatible /u01/app/oracle/agent10g/jdk/jre/lib/i386/libjava.so when searching for -ljava
/usr/bin/ld: cannot find -ljava
collect2: ld returned 1 exit status
make[1]: *** [/u01/app/oracle/agent10g/sysman/lib/libnmemso.so] Error 1
make[1]: Leaving directory `/u01/app/oracle/agent10g/sysman/lib‘
make: *** [libnmemso] Error 2

发现都是一些make编译错误,在MOS上找了好久,找出来一篇AIX上安装GC的bug:

EM 10g: Enterprise Manager Grid Control 10.2 Agent Installation Fails with Error: /usr/bin/ld: cannot find -lwrappers (文档 ID 977471.1)

APPLIES TO:

Enterprise Manager Base Platform - Version 10.2.0.1 to 10.2.0.4 [Release 10.2]
IBM AIX on POWER Systems (64-bit)

SYMPTOMS

Grid Control 10g Agent patching to 10.2.0.5 with patch 3731593 fails with the following error:

Product/10.2.0/agent10g/lib32:/u01/oracle/product/10.2.0/agent10g/lib
`cat /u01/oracle/product/10.2.0/agent10g/lib32/sysliblist` -ldl -lm

/usr/bin/ld: cannot find -lwrappers
collect2: ld returned 1 exit status
make[1]: ***
/u01/oracle/product/10.2.0/agent10g/sysman/lib/libnmemso.so] Error 1
make[1]: Leaving directory
`/u01/oracle/product/10.2.0/agent10g/sysman/lib‘
INFO: make: *** [libnmemso] Error 2

CAUSE

This error can occur if the upgrade failed previously.


似乎和我碰到的问题很像,但我是装在Linux上面的啊,应该和这个无关吧,版本倒是符合的,我是10.2.0.1的,正好在这个范围。
于是继续找,又发现一篇类似的文档:

‘/usr/bin/ld: cannot find -ljava‘ occurs while applying one off patch (文档 ID 418557.1)

APPLIES TO:

Oracle Database - Enterprise Edition - Version 10.2.0.2 and later
Linux x86
Oracle Solaris on SPARC (64-bit)



SYMPTOMS

While applying a one off patch following error may occur during the relinking phase:

Running make for target libnmemso
Make failed to invoke "/usr/bin/make -f ins_sysman.mk libnmemso
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1"....

/usr/bin/ld: cannot find -ljava
collect2: ld returned 1 exit status
make[1]: *** [/u01/app/oracle/product/10.2.0/db_1/sysman/lib/libnmemso.so] Error 1
make: *** [libnmemso] Error 2

CAUSE

As the error indicates:

‘/usr/bin/ld: cannot find -ljava
collect2: ld returned 1 exit status

Opatch is not able to find libjava.so file in the variable JRE_LIB_DIR in file env_sysman.mk  and giving error

‘/usr/bin/ld: cannot find -ljava‘

但这个也不太符合,这是在Solaris操作系统上的,并且版本是10.2.0.2 and later版本的
到目前为止,似乎还没有发现什么线索,于是决定重新安装一次agent,看看是不是会解决问题

[oracle@ocm1 install]$ cd /home/oracle
[oracle@ocm1 ~]$ ll
total 52
-rw-r--r-- 1 oracle oinstall    21 Jan  5 01:04 afiedt.buf
drwxr-xr-x 2 oracle oinstall  4096 Jan  9 23:19 agentDownload10.2.0.1.0Oui
-rwxrwxr-x 1 oracle oinstall 22783 Jan 10 10:02 agentDownload.linux
-rw-r--r-- 1 oracle oinstall    96 Jan  7 20:57 agentDownload.linux010715205701.log
-rw-r--r-- 1 oracle oinstall  1031 Jan  2 03:27 createdb.sql
-rw-r--r-- 1 oracle oinstall  1027 Jan  2 03:21 createdb.sql~
drwxr-xr-x 2 oracle oinstall  4096 Jan  2 02:27 Desktop
-rw-r--r-- 1 oracle oinstall  1363 Jan  5 20:55 sqlnet.log
[oracle@ocm1 ~]$ cd /u01/app/oracle
[oracle@ocm1 oracle]$ ll
total 20
drwxr-xr-x  3 oracle oinstall 4096 Jan  2 02:42 admin
drwxr-xr-x 37 oracle oinstall 4096 Jan 10 09:57 agent10g
drwxr-xr-x  3 oracle oinstall 4096 Jan  5 23:13 oradata
drwxrwx---  7 oracle oinstall 4096 Jan  7 21:06 oraInventory
drwxrwx---  3 oracle oinstall 4096 Jan  2 02:30 product

先不删掉原来的,改个目录,并且把清掉inventrory.xml中的信息,否则会报目录已经存在

[oracle@ocm1 oracle]$ mv agent10g agent10g_old
[oracle@ocm1 oracle]$ ll
total 20
drwxr-xr-x  3 oracle oinstall 4096 Jan  2 02:42 admin
drwxr-xr-x 37 oracle oinstall 4096 Jan 10 09:57 agent10g_old
drwxr-xr-x  3 oracle oinstall 4096 Jan  5 23:13 oradata
drwxrwx---  7 oracle oinstall 4096 Jan  7 21:06 oraInventory
drwxrwx---  3 oracle oinstall 4096 Jan  2 02:30 product     
[oracle@ocm1 logs]$ cd /u01/app/oracle/oraInventory/
[oracle@ocm1 oraInventory]$ ll
total 36
drwxrwx--- 2 oracle oinstall 4096 Jan  7 21:06 Contents
drwxrwx--- 2 oracle oinstall 4096 Jan  2 02:37 ContentsXML
-rwxrwx--- 1 oracle oinstall   37 Jan  7 21:07 install.platform
drwxrwx--- 3 oracle oinstall 4096 Jan 10 10:05 logs
-rwxrwx--- 1 oracle oinstall  307 Jan 10 10:05 oraInstaller.properties
-rwxrwx--- 1 oracle oinstall   63 Jan  2 02:37 oraInst.loc
-rwxrwx--- 1 oracle oinstall 1192 Jan  2 02:37 orainstRoot.sh
drwxrwx--- 2 oracle oinstall 4096 Jan  2 02:30 oui
-rwxrwx--- 1 oracle oinstall 3991 Jan  7 21:05 sessionContext.ser
[oracle@ocm1 oraInventory]$ cd ContentsXML/
[oracle@ocm1 ContentsXML]$ ll
total 12
-rwxrwx--- 1 oracle oinstall 311 Jan  7 21:07 comps.xml
-rwxrwx--- 1 oracle oinstall 487 Jan  7 21:06 inventory.xml
-rwxrwx--- 1 oracle oinstall 274 Jan  7 21:07 libs.xml
[oracle@ocm1 ContentsXML]$ cat inventory.xml 
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 2009 Oracle Corporation. All rights Reserved -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
   <SAVED_WITH>10.2.0.5.0</SAVED_WITH>
   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="OraDb10g_home1" LOC="/u01/app/oracle/product/10.2.0/db_1" TYPE="O" IDX="1"/>
<HOME NAME="agent10g" LOC="/u01/app/oracle/agent10g" TYPE="O" IDX="2"/>
</HOME_LIST>
</INVENTORY>
[oracle@ocm1 ContentsXML]$ vi inventory.xml 
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 2009 Oracle Corporation. All rights Reserved -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
   <SAVED_WITH>10.2.0.5.0</SAVED_WITH>
   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="OraDb10g_home1" LOC="/u01/app/oracle/product/10.2.0/db_1" TYPE="O" IDX="1"/>
<HOME NAME="agent10g" LOC="/u01/app/oracle/agent10g" TYPE="O" IDX="2"/>    --用vim修改,把这一行删掉
</HOME_LIST>
</INVENTORY>
~
~
"inventory.xml" 12L, 415C written

重新在DB服务器上安装AGENT

[oracle@ocm1 ~]$ ./agentDownload.linux -b /u01/app/oracle/
agentDownload.linux invoked on Sat Jan 10 10:04:51 CST 2015 with Arguments "-b /u01/app/oracle/"
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.linux011015100451.log"
Running on Selected Platform: Linux
Installer location: /home/oracle/agentDownload10.2.0.1.0Oui
Downloading Agent install response file ...
--2015-01-10 10:04:51--  http://ocm2.localdomain:4889/agent_download/10.2.0.1.0/agent_download.rsp
Resolving ocm2.localdomain... 192.168.1.176
Connecting to ocm2.localdomain|192.168.1.176|:4889... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19991 (20K) [text/plain]
Saving to: `agent_download.rsp‘

100%[=======================================================================>] 19,991      --.-K/s   in 0.001s  

2015-01-10 10:04:51 (20.9 MB/s) - `agent_download.rsp‘ saved [19991/19991]

Finished Downloading with Status=0
Downloaded response with status=0
Downloading Oracle Installer ...
--2015-01-10 10:04:51--  http://ocm2.localdomain:4889/agent_download/10.2.0.1.0/linux/oui/oui_linux.jar
Resolving ocm2.localdomain... 192.168.1.176
Connecting to ocm2.localdomain|192.168.1.176|:4889... connected.
HTTP request sent, awaiting response... 200 OK
Length: 46620679 (44M) [application/java-archive]
Saving to: `oui_linux.jar‘

100%[=======================================================================>] 46,620,679  44.8M/s   in 1.0s    

2015-01-10 10:04:52 (44.8 MB/s) - `oui_linux.jar‘ saved [46620679/46620679]

Downloaded Oracle Installer with status=0
Downloading  Unzip Utility ...
--2015-01-10 10:04:52--  http://ocm2.localdomain:4889/agent_download/10.2.0.1.0/linux/agent/install/unzip
Resolving ocm2.localdomain... 192.168.1.176
Connecting to ocm2.localdomain|192.168.1.176|:4889... connected.
HTTP request sent, awaiting response... 200 OK
Length: 101448 (99K) [text/plain]
Saving to: `unzip‘

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

2015-01-10 10:04:52 (25.1 MB/s) - `unzip‘ saved [101448/101448]

Adding execute permissions to unzip ...
Downloaded UnzipUtility with status=0
The jar to be used=/u01/app/oracle/product/10.2.0/db_1/jdk/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.swd_Complete_dirs.lst  
  inflating: Disk1/stage/fastcopy/oracle.swd_Complete_filemap.jar  
  inflating: Disk1/stage/fastcopy/oracle.swd_Typical_1.xml  
  inflating: Disk1/stage/fastcopy/oracle.swd_Typical_exp_1.xml  
  inflating: Disk1/stage/fastcopy/oracle.swd_Typical_dirs.lst  
  inflating: Disk1/stage/fastcopy/oracle.swd_Typical_filemap.jar  
  inflating: Disk1/stage/fastcopy/oracle.swd_Custom_1.xml  
  inflating: Disk1/stage/fastcopy/oracle.swd_Custom_exp_1.xml  
  inflating: Disk1/stage/fastcopy/oracle.swd_Custom_dirs.lst  
  inflating: Disk1/stage/fastcopy/oracle.swd_Custom_filemap.jar  
  inflating: Disk1/stage/fastcopy/racfiles.jar  
   creating: Disk1/stage/Components/
   creating: Disk1/stage/Components/oracle.swd/
   creating: Disk1/stage/Components/oracle.swd/10.2.0.5.0/
   creating: Disk1/stage/Components/oracle.swd/10.2.0.5.0/1/
   creating: Disk1/stage/Components/oracle.swd/10.2.0.5.0/1/DataFiles/
   creating: Disk1/stage/Components/oracle.swd.oui/
   creating: Disk1/stage/Components/oracle.swd.oui/10.2.0.5.0/
   creating: Disk1/stage/Components/oracle.swd.oui/10.2.0.5.0/1/
   creating: Disk1/stage/Components/oracle.swd.oui/10.2.0.5.0/1/DataFiles/
  inflating: Disk1/stage/Components/oracle.swd.oui/10.2.0.5.0/1/DataFiles/filegroup3.jar  
  inflating: Disk1/stage/Components/oracle.swd.oui/10.2.0.5.0/1/DataFiles/filegroup6.jar  
  inflating: Disk1/stage/Components/oracle.swd.oui/10.2.0.5.0/1/DataFiles/filegroup10.jar  
  inflating: Disk1/stage/Components/oracle.swd.oui/10.2.0.5.0/1/DataFiles/filegroup9.jar  
  inflating: Disk1/stage/Components/oracle.swd.oui/10.2.0.5.0/1/DataFiles/filegroup2.jar  
  inflating: Disk1/stage/Components/oracle.swd.oui/10.2.0.5.0/1/DataFiles/filegroup5.jar  
  inflating: Disk1/stage/Components/oracle.swd.oui/10.2.0.5.0/1/DataFiles/filegroup8.jar  
  inflating: Disk1/stage/Components/oracle.swd.oui/10.2.0.5.0/1/DataFiles/filegroup1.jar  
  inflating: Disk1/stage/Components/oracle.swd.oui/10.2.0.5.0/1/DataFiles/filegroup4.jar  
  inflating: Disk1/stage/Components/oracle.swd.oui/10.2.0.5.0/1/DataFiles/filegroup7.jar  
  inflating: Disk1/stage/Components/oracle.swd.oui/10.2.0.5.0/1/DataFiles/filegroup11.jar  
   creating: Disk1/stage/Components/oracle.swd.oui.core/
   creating: Disk1/stage/Components/oracle.swd.oui.core/10.2.0.5.0/
   creating: Disk1/stage/Components/oracle.swd.oui.core/10.2.0.5.0/1/
   creating: Disk1/stage/Components/oracle.swd.oui.core/10.2.0.5.0/1/DataFiles/
   creating: Disk1/stage/Components/oracle.swd.oui.core/10.2.0.5.0/1/DataFiles/Expanded/
   creating: Disk1/stage/Components/oracle.swd.oui.core/10.2.0.5.0/1/DataFiles/Expanded/oui/
   creating: Disk1/stage/Components/oracle.swd.oui.core/10.2.0.5.0/1/DataFiles/Expanded/oui/instImages/
  inflating: Disk1/stage/Components/oracle.swd.oui.core/10.2.0.5.0/1/DataFiles/Expanded/oui/instImages/bg.jpg  
  inflating: Disk1/stage/Components/oracle.swd.oui.core/10.2.0.5.0/1/DataFiles/Expanded/oui/instImages/10gOneClickbusybar.gif  
  inflating: Disk1/stage/Components/oracle.swd.oui.core/10.2.0.5.0/1/DataFiles/Expanded/oui/instImages/splashScr.gif  
  inflating: Disk1/stage/Components/oracle.swd.oui.core/10.2.0.5.0/1/DataFiles/Expanded/oui/instImages/oneclickbg.gif  
  inflating: Disk1/stage/Components/oracle.swd.oui.core/10.2.0.5.0/1/DataFiles/Expanded/oui/instImages/images.properties  
  inflating: Disk1/stage/Components/oracle.swd.oui.core/10.2.0.5.0/1/DataFiles/filegroup3.jar  
  inflating: Disk1/stage/Components/oracle.swd.oui.core/10.2.0.5.0/1/DataFiles/filegroup2.jar  
  inflating: Disk1/stage/Components/oracle.swd.oui.core/10.2.0.5.0/1/DataFiles/filegroup1.jar  
   creating: Disk1/stage/Components/oracle.swd.oil/
   creating: Disk1/stage/Components/oracle.swd.oil/10.2.0.5.0/
   creating: Disk1/stage/Components/oracle.swd.oil/10.2.0.5.0/1/
   creating: Disk1/stage/Components/oracle.swd.oil/10.2.0.5.0/1/DataFiles/
  inflating: Disk1/stage/Components/oracle.swd.oil/10.2.0.5.0/1/DataFiles/filegroup1.1.1.jar  
   creating: Disk1/stage/Components/oracle.swd.jre/
   creating: Disk1/stage/Components/oracle.swd.jre/1.4.2.14.0/
   creating: Disk1/stage/Components/oracle.swd.jre/1.4.2.14.0/1/
   creating: Disk1/stage/Components/oracle.swd.jre/1.4.2.14.0/1/DataFiles/
  inflating: Disk1/stage/Components/oracle.swd.jre/1.4.2.14.0/1/DataFiles/filegroup5.jar  
  inflating: Disk1/stage/Components/oracle.swd.jre/1.4.2.14.0/1/DataFiles/filegroup4.jar  
  inflating: Disk1/stage/Components/oracle.swd.jre/1.4.2.14.0/1/DataFiles/filegroup3.jar  
  inflating: Disk1/stage/Components/oracle.swd.jre/1.4.2.14.0/1/DataFiles/filegroup2.jar  
  inflating: Disk1/stage/Components/oracle.swd.jre/1.4.2.14.0/1/DataFiles/filegroup1.jar  
   creating: Disk1/stage/Components/oracle.swd.opatch/
   creating: Disk1/stage/Components/oracle.swd.opatch/10.2.0.4.2/
   creating: Disk1/stage/Components/oracle.swd.opatch/10.2.0.4.2/1/
   creating: Disk1/stage/Components/oracle.swd.opatch/10.2.0.4.2/1/DataFiles/
  inflating: Disk1/stage/Components/oracle.swd.opatch/10.2.0.4.2/1/DataFiles/filegroup3.jar  
  inflating: Disk1/stage/Components/oracle.swd.opatch/10.2.0.4.2/1/DataFiles/filegroup6.jar  
  inflating: Disk1/stage/Components/oracle.swd.opatch/10.2.0.4.2/1/DataFiles/filegroup9.jar  
  inflating: Disk1/stage/Components/oracle.swd.opatch/10.2.0.4.2/1/DataFiles/filegroup2.jar  
  inflating: Disk1/stage/Components/oracle.swd.opatch/10.2.0.4.2/1/DataFiles/filegroup5.jar  
  inflating: Disk1/stage/Components/oracle.swd.opatch/10.2.0.4.2/1/DataFiles/filegroup8.jar  
  inflating: Disk1/stage/Components/oracle.swd.opatch/10.2.0.4.2/1/DataFiles/filegroup1.jar  
  inflating: Disk1/stage/Components/oracle.swd.opatch/10.2.0.4.2/1/DataFiles/filegroup4.jar  
  inflating: Disk1/stage/Components/oracle.swd.opatch/10.2.0.4.2/1/DataFiles/filegroup7.jar  
  inflating: Disk1/stage/oracle.swd.10_2_0_5_0.xml  
  inflating: Disk1/stage/OuiConfigVariables.xml  
  inflating: Disk1/stage/install1.jar  
   creating: Disk1/stage/Actions/
   creating: Disk1/stage/Actions/ntw32FoldersActions/
   creating: Disk1/stage/Actions/ntw32FoldersActions/10.2.0.3.0/
   creating: Disk1/stage/Actions/ntw32FoldersActions/10.2.0.3.0/1/
  inflating: Disk1/stage/Actions/ntw32FoldersActions/10.2.0.3.0/1/WindowsFolders.jar  
   creating: Disk1/stage/Actions/clusterActions/
   creating: Disk1/stage/Actions/clusterActions/10.1.0.2.0/
   creating: Disk1/stage/Actions/clusterActions/10.1.0.2.0/1/
  inflating: Disk1/stage/Actions/clusterActions/10.1.0.2.0/1/clusterActionLib.jar  
   creating: Disk1/stage/Actions/dbActions/
   creating: Disk1/stage/Actions/dbActions/10.1.0.2.0/
   creating: Disk1/stage/Actions/dbActions/10.1.0.2.0/1/
  inflating: Disk1/stage/Actions/dbActions/10.1.0.2.0/1/dbActions.jar  
   creating: Disk1/stage/Actions/fileActions/
   creating: Disk1/stage/Actions/fileActions/10.2.0.3.0/
   creating: Disk1/stage/Actions/fileActions/10.2.0.3.0/1/
  inflating: Disk1/stage/Actions/fileActions/10.2.0.3.0/1/fileActionLib.jar  
   creating: Disk1/stage/Actions/generalActions/
   creating: Disk1/stage/Actions/generalActions/10.2.0.8.0/
   creating: Disk1/stage/Actions/generalActions/10.2.0.8.0/1/
  inflating: Disk1/stage/Actions/generalActions/10.2.0.8.0/1/generalActions.jar  
   creating: Disk1/stage/Actions/jarActions/
   creating: Disk1/stage/Actions/jarActions/10.2.0.0.0/
   creating: Disk1/stage/Actions/jarActions/10.2.0.0.0/1/
  inflating: Disk1/stage/Actions/jarActions/10.2.0.0.0/1/jarActionLib.jar  
   creating: Disk1/stage/Actions/launchPadActions/
   creating: Disk1/stage/Actions/launchPadActions/10.1.0.2.0/
   creating: Disk1/stage/Actions/launchPadActions/10.1.0.2.0/1/
  inflating: Disk1/stage/Actions/launchPadActions/10.1.0.2.0/1/launchpadaction.jar  
   creating: Disk1/stage/Actions/ntServicesActions/
   creating: Disk1/stage/Actions/ntServicesActions/10.2.0.3.0/
   creating: Disk1/stage/Actions/ntServicesActions/10.2.0.3.0/1/
  inflating: Disk1/stage/Actions/ntServicesActions/10.2.0.3.0/1/ntServicesActions.jar  
   creating: Disk1/stage/Actions/oradim/
   creating: Disk1/stage/Actions/oradim/10.1.0.3.0/
   creating: Disk1/stage/Actions/oradim/10.1.0.3.0/1/
  inflating: Disk1/stage/Actions/oradim/10.1.0.3.0/1/oradim.jar  
   creating: Disk1/stage/Actions/rgsActions/
   creating: Disk1/stage/Actions/rgsActions/10.1.0.3.0/
   creating: Disk1/stage/Actions/rgsActions/10.1.0.3.0/1/
  inflating: Disk1/stage/Actions/rgsActions/10.1.0.3.0/1/rgsActions.jar  
   creating: Disk1/stage/Actions/SpawnActions/
   creating: Disk1/stage/Actions/SpawnActions/10.1.0.2.0/
   creating: Disk1/stage/Actions/SpawnActions/10.1.0.2.0/1/
  inflating: Disk1/stage/Actions/SpawnActions/10.1.0.2.0/1/spawnActions.jar  
   creating: Disk1/stage/Actions/unixActions/
   creating: Disk1/stage/Actions/unixActions/10.2.0.1.0/
   creating: Disk1/stage/Actions/unixActions/10.2.0.1.0/1/
  inflating: Disk1/stage/Actions/unixActions/10.2.0.1.0/1/unixActions.jar  
   creating: Disk1/stage/Actions/w32OcxRegActions/
   creating: Disk1/stage/Actions/w32OcxRegActions/10.2.0.1.0/
   creating: Disk1/stage/Actions/w32OcxRegActions/10.2.0.1.0/1/
  inflating: Disk1/stage/Actions/w32OcxRegActions/10.2.0.1.0/1/w32OcxLib.jar  
   creating: Disk1/stage/Actions/w32RegActions/
   creating: Disk1/stage/Actions/w32RegActions/10.2.0.1.0/
   creating: Disk1/stage/Actions/w32RegActions/10.2.0.1.0/1/
  inflating: Disk1/stage/Actions/w32RegActions/10.2.0.1.0/1/w32RegActionLib.jar  
   creating: Disk1/stage/Actions/wingeneralActions/
   creating: Disk1/stage/Actions/wingeneralActions/10.2.0.2.0/
   creating: Disk1/stage/Actions/wingeneralActions/10.2.0.2.0/1/
  inflating: Disk1/stage/Actions/wingeneralActions/10.2.0.2.0/1/wingeneralActionLib.jar  
   creating: Disk1/stage/Actions/customFileActions/
   creating: Disk1/stage/Actions/customFileActions/1.2/
   creating: Disk1/stage/Actions/customFileActions/1.2/1/
  inflating: Disk1/stage/Actions/customFileActions/1.2/1/customFileActions.jar  
   creating: Disk1/stage/Queries/
   creating: Disk1/stage/Queries/NtServicesQueries/
   creating: Disk1/stage/Queries/NtServicesQueries/10.2.0.3.0/
   creating: Disk1/stage/Queries/NtServicesQueries/10.2.0.3.0/1/
  inflating: Disk1/stage/Queries/NtServicesQueries/10.2.0.3.0/1/NtServiceQueries.jar  
   creating: Disk1/stage/Queries/WindowsGeneralQueries/
   creating: Disk1/stage/Queries/WindowsGeneralQueries/10.2.0.1.0/
   creating: Disk1/stage/Queries/WindowsGeneralQueries/10.2.0.1.0/1/
  inflating: Disk1/stage/Queries/WindowsGeneralQueries/10.2.0.1.0/1/WindowsGeneralQueries.jar  
   creating: Disk1/stage/Queries/areasQueries/
   creating: Disk1/stage/Queries/areasQueries/10.2.0.1.0/
   creating: Disk1/stage/Queries/areasQueries/10.2.0.1.0/1/
  inflating: Disk1/stage/Queries/areasQueries/10.2.0.1.0/1/areasQueries.jar  
   creating: Disk1/stage/Queries/clusterQueriesEx/
   creating: Disk1/stage/Queries/clusterQueriesEx/10.1.0.3.0/
   creating: Disk1/stage/Queries/clusterQueriesEx/10.1.0.3.0/1/
  inflating: Disk1/stage/Queries/clusterQueriesEx/10.1.0.3.0/1/clusterQuery.jar  
   creating: Disk1/stage/Queries/dbQueries/
   creating: Disk1/stage/Queries/dbQueries/10.1.0.2.0/
   creating: Disk1/stage/Queries/dbQueries/10.1.0.2.0/1/
  inflating: Disk1/stage/Queries/dbQueries/10.1.0.2.0/1/dbQueries.jar  
   creating: Disk1/stage/Queries/fileQueries/
   creating: Disk1/stage/Queries/fileQueries/10.1.0.3.0/
   creating: Disk1/stage/Queries/fileQueries/10.1.0.3.0/1/
  inflating: Disk1/stage/Queries/fileQueries/10.1.0.3.0/1/fileQueries.jar  
   creating: Disk1/stage/Queries/generalQueries/
   creating: Disk1/stage/Queries/generalQueries/10.1.0.3.0/
   creating: Disk1/stage/Queries/generalQueries/10.1.0.3.0/1/
  inflating: Disk1/stage/Queries/generalQueries/10.1.0.3.0/1/generalQueries.jar  
   creating: Disk1/stage/Queries/netQueries/
   creating: Disk1/stage/Queries/netQueries/10.2.0.2.0/
   creating: Disk1/stage/Queries/netQueries/10.2.0.2.0/1/
  inflating: Disk1/stage/Queries/netQueries/10.2.0.2.0/1/netQueries.jar  
   creating: Disk1/stage/Queries/rgsQueries/
   creating: Disk1/stage/Queries/rgsQueries/10.1.0.3.0/
   creating: Disk1/stage/Queries/rgsQueries/10.1.0.3.0/1/
  inflating: Disk1/stage/Queries/rgsQueries/10.1.0.3.0/1/rgsQueries.jar  
   creating: Disk1/stage/Queries/unixQueries/
   creating: Disk1/stage/Queries/unixQueries/10.1.0.2.0/
   creating: Disk1/stage/Queries/unixQueries/10.1.0.2.0/1/
  inflating: Disk1/stage/Queries/unixQueries/10.1.0.2.0/1/unixQueries.jar  
   creating: Disk1/stage/Queries/w32RegQueries/
   creating: Disk1/stage/Queries/w32RegQueries/10.2.0.1.0/
   creating: Disk1/stage/Queries/w32RegQueries/10.2.0.1.0/1/
  inflating: Disk1/stage/Queries/w32RegQueries/10.2.0.1.0/1/w32RegQueryLib.jar  
   creating: Disk1/stage/Queries/LangQueries/
   creating: Disk1/stage/Queries/LangQueries/1.3.6.4/
   creating: Disk1/stage/Queries/LangQueries/1.3.6.4/1/
  inflating: Disk1/stage/Queries/LangQueries/1.3.6.4/1/LangQueries.jar  
   creating: Disk1/stage/Queries/MemorySizeQuery/
   creating: Disk1/stage/Queries/MemorySizeQuery/1.2.8.0.3/
   creating: Disk1/stage/Queries/MemorySizeQuery/1.2.8.0.3/1/
  inflating: Disk1/stage/Queries/MemorySizeQuery/1.2.8.0.3/1/MemorySizeQuery.jar  
   creating: Disk1/stage/Queries/RepositoryQueries/
   creating: Disk1/stage/Queries/RepositoryQueries/3.0.0.1.0/
   creating: Disk1/stage/Queries/RepositoryQueries/3.0.0.1.0/1/
  inflating: Disk1/stage/Queries/RepositoryQueries/3.0.0.1.0/1/Queries.jar  
   creating: Disk1/stage/Queries/RepositoryQueries/3.0.0.2.2/
   creating: Disk1/stage/Queries/RepositoryQueries/3.0.0.2.2/1/
  inflating: Disk1/stage/Queries/RepositoryQueries/3.0.0.2.2/1/Queries.jar  
   creating: Disk1/stage/Queries/RunningProcessQuery/
   creating: Disk1/stage/Queries/RunningProcessQuery/1.5.1/
   creating: Disk1/stage/Queries/RunningProcessQuery/1.5.1/1/
  inflating: Disk1/stage/Queries/RunningProcessQuery/1.5.1/1/RunningProcessesQuery.jar  
   creating: Disk1/stage/Queries/SIDQueries/
   creating: Disk1/stage/Queries/SIDQueries/1.2.7/
   creating: Disk1/stage/Queries/SIDQueries/1.2.7/1/
  inflating: Disk1/stage/Queries/SIDQueries/1.2.7/1/SidQueries.jar  
   creating: Disk1/stage/Queries/ClusterQueries/
   creating: Disk1/stage/Queries/ClusterQueries/1.7.3.0.3/
   creating: Disk1/stage/Queries/ClusterQueries/1.7.3.0.3/1/
  inflating: Disk1/stage/Queries/ClusterQueries/1.7.3.0.3/1/clusterQueries.jar  
   creating: Disk1/stage/Queries/generalPortQueries/
   creating: Disk1/stage/Queries/generalPortQueries/2.1.0.18.7/
   creating: Disk1/stage/Queries/generalPortQueries/2.1.0.18.7/1/
  inflating: Disk1/stage/Queries/generalPortQueries/2.1.0.18.7/1/generalPortQueries.jar  
   creating: Disk1/stage/Queries/globalVarQueries/
   creating: Disk1/stage/Queries/globalVarQueries/2.1.0.4.1/
   creating: Disk1/stage/Queries/globalVarQueries/2.1.0.4.1/1/
  inflating: Disk1/stage/Queries/globalVarQueries/2.1.0.4.1/1/globalVarQueries.jar  
   creating: Disk1/stage/Queries/textFileQueries/
   creating: Disk1/stage/Queries/textFileQueries/2.1.0.4.0/
   creating: Disk1/stage/Queries/textFileQueries/2.1.0.4.0/1/
  inflating: Disk1/stage/Queries/textFileQueries/2.1.0.4.0/1/textFileQueries.jar  
   creating: Disk1/stage/Queries/ccrQueries/
   creating: Disk1/stage/Queries/ccrQueries/10.2.8.0.0/
   creating: Disk1/stage/Queries/ccrQueries/10.2.8.0.0/1/
  inflating: Disk1/stage/Queries/ccrQueries/10.2.8.0.0/1/ccrQueries.jar  
   creating: Disk1/stage/Dialogs/
   creating: Disk1/stage/Dialogs/standardDialogs/
   creating: Disk1/stage/Dialogs/standardDialogs/10.2.0.1.0/
   creating: Disk1/stage/Dialogs/standardDialogs/10.2.0.1.0/1/
  inflating: Disk1/stage/Dialogs/standardDialogs/10.2.0.1.0/1/standardDialogs.jar  
   creating: Disk1/stage/Dialogs/customDialogs/
   creating: Disk1/stage/Dialogs/customDialogs/3.3.0/
   creating: Disk1/stage/Dialogs/customDialogs/3.3.0/1/
  inflating: Disk1/stage/Dialogs/customDialogs/3.3.0/1/CustomDialogs.jar  
   creating: Disk1/stage/Dialogs/customDialogs/1.0.0/
   creating: Disk1/stage/Dialogs/customDialogs/1.0.0/1/
  inflating: Disk1/stage/Dialogs/customDialogs/1.0.0/1/newCustomDialogs.jar  
  inflating: Disk1/stage/products.xml  
  inflating: Disk1/stage/libs.xml    
  inflating: Disk1/stage/invDetails.properties  
  inflating: Disk1/stage/fastcopy.xml  
  inflating: Disk1/stage/disk.label  
   creating: Disk1/stage/Response/
  inflating: Disk1/stage/Response/oracle.swd.Complete.rsp  
  inflating: Disk1/stage/Response/oracle.swd.Typical.rsp  
  inflating: Disk1/stage/Response/oracle.swd.Custom.rsp  
   creating: Disk1/install/
  inflating: Disk1/install/lsnodes   
  inflating: Disk1/install/runInstaller  
  inflating: Disk1/install/addNode.sh  
  inflating: Disk1/install/addLangs.sh  
  inflating: Disk1/install/oraparam.ini  
  inflating: Disk1/install/attachHome.sh  
  inflating: Disk1/install/detachHome.sh  
   creating: Disk1/install/resource/
  inflating: Disk1/install/resource/cons.nls  
  inflating: Disk1/install/resource/cons_de.nls  
  inflating: Disk1/install/resource/cons_es.nls  
  inflating: Disk1/install/resource/cons_fr.nls  
  inflating: Disk1/install/resource/cons_it.nls  
  inflating: Disk1/install/resource/cons_ja.nls  
  inflating: Disk1/install/resource/cons_ko.nls  
  inflating: Disk1/install/resource/cons_pt_BR.nls  
  inflating: Disk1/install/resource/cons_zh_CN.nls  
  inflating: Disk1/install/resource/cons_zh_TW.nls  
  inflating: Disk1/install/oneclick.properties  
  inflating: Disk1/install/unzip     
  inflating: Disk1/install/oraparamsilent.ini  
  inflating: Disk1/runInstaller      
Adding execute permissions to runInstaller ...
Adding execute permissions to unzip ...
Launching Oracle Installer ...
Executing /home/oracle/agentDownload10.2.0.1.0Oui/Disk1/runInstaller  -ignoreSysPrereqs -waitforcompletion -force -responseFile /home/oracle/agentDownload10.2.0.1.0Oui/agent_download.rsp -silent  b_doDiscovery=TRUE b_startAgent=TRUE   -sourceLoc http://ocm2.localdomain:4889/agent_download/10.2.0.1.0/linux/agent/stage/products.xml FROM_LOCATION=http://ocm2.localdomain:4889/agent_download/10.2.0.1.0/linux/agent/stage/products.xml -baseDir /u01/app/oracle/    CLUSTER_NODES={}   
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be enterprise-4, enterprise-5, redhat-3, redhat-4, redhat-5, redhat-5.1, SuSE-9, SuSE-10, UnitedLinux-1.0, asianux-1 or asianux-2
                                      Passed


All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-01-10_10-35-23AM. Please wait ...Oracle Universal Installer, Version 10.2.0.5.0 Production
Copyright (C) 1999, 2009, Oracle. All rights reserved.

You can find a log of this install session at:
 /u01/app/oracle/oraInventory/logs/installActions2015-01-10_10-35-23AM.log
.................................................................................................... 100% Done.


Loading Product Information
............................................................................................................ 100% Done.


Starting execution of Prerequisites...
Total No of checks: 5

Performing check for CertifiedVersions_agent
Checking if Oracle software certified on the current O/S...
Expected result: One of redhat-3,redhat-4,redhat-5,SuSE-8,SuSE-9,SuSE-10,enterprise-5,redhat-5.1,enterprise-4,asianux-1,asianux-2
Actual Result: redhat-5
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for Packages_agent
Checking for required packages installed on the system ....
Checking for make-3.79; found make-1:3.81-3.el5.        Passed
Checking for binutils-2.14; found binutils-2.17.50.0.6-14.el5.  Passed
Checking for gcc-3.2; found gcc-4.1.2-48.el5.   Passed
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for CompatibilityCheck
Checking whether the software compatibile for current o/s...
/home/oracle/agentDownload10.2.0.1.0Oui/Disk1/stage/shiphomeproperties.xml (No such file or directory)
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for CheckHostName
Checking for the Hostname...
Actual Result: Hostname contains hyphen "-" .
Check complete. The overall result of this check is: Failed <<<<


Check complete: Failed <<<<
Problem: The host name in /etc/hosts is not proper.
Recommendation: Please verify the hostname in /etc/hosts. The /etc/hosts might either contain short host name or ip address instead of full host name.

=======================================================================
Performing check for ChecksNslookup
Checking the the DNS setup...
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
PrereqChecks complete


Analyzing dependencies 
...............................................................  48% Done.
...............................................................  96% Done.
.... 100% Done.


-----------------------------------------------------------------------------
Summary
Global Settings
    Source: http://ocm2.localdomain:4889/agent_download/10.2.0.1.0/linux/agent/stage/products.xml
    Oracle Home: /u01/app/oracle/agent10g (agent10g)
    Installation Type: Complete
Product Languages
   English
Space Requirements
   / Required 436MB (includes 9MB temporary) : Available 7.32GB
New Installations (64 products)
   Oracle Management Agent 10.2.0.1.1 
   Enterprise Manager Agent 10.2.0.1.0 
   Enterprise Manager Agent Core Files 10.2.0.1.0 
   Oracle Recovery Manager 10.2.0.1.0 
   Enterprise Manager Common Files 10.2.0.1.0 
   Enterprise Manager Common Core Files 10.2.0.1.0 
   Required Support Files 10.2.0.1.0 
   Agent Required Support Files 10.2.0.1.0 
   Oracle RAC Required Support Files-HAS 10.2.0.1.0 
   Oracle JDBC Thin Driver for JDK 1.4 10.2.0.1.0 
   JDBC Common Files 10.2.0.1.0 
   Oracle JDBC/OCI Instant Client 10.2.0.1.0 
   Secure Socket Layer 10.2.0.1.0 
   LDAP Required Support Files 10.2.0.1.0 
   Oracle Globalization Support 10.2.0.1.0 
   Perl Interpreter 5.8.3.0.2 
   XML Parser for Java 10.2.0.1.0 
   Precompiler Required Support Files 10.2.0.1.0 
   RDBMS Required Support Files 10.2.0.1.0 
   RDBMS Required Support Files for Instant Client 10.2.0.1.0 
   Parser Generator Required Support Files 10.2.0.1.0 
   Oracle Net Required Support Files 10.2.0.1.0 
   XDK Required Support Files 10.2.0.1.0 
   Platform Required Support Files 10.2.0.1.0 
   Oracle Core Required Support Files 10.2.0.1.0 
   SSL Required Support Files for InstantClient 10.2.0.1.0 
   DBJAVA Required Support Files 10.2.0.1.0 
   SQL*Plus Required Support Files 10.2.0.1.0 
   Enterprise Manager Agent for Grid Control 10.2.0.1.0 
   Installation Common Files 10.2.0.1.0 
   Oracle Notification Service 10.1.2.1.0 
   Enterprise Manager Application Server Plugin -- Agent Support 10.2.0.1.0 
   ADF BC agent for OracleAS GC 10.1.2.0.0 
   Enterprise Manager BPEL Process Analytics Plugin -- Agent Plugin 10.2.0.0.0 
   Discoverer EM plugin - agent portion 10.2.0.0.0 
   Oracle SSO Agent 10.2.0.0.0 
   Forms Services Management Agent Plugin 10.2.0.0.0 
   Oracle CM SDK and Oracle Files Plugin for Oracle Management Agent 9.0.4.0.0 
   Enterprise Manager Integration B2B Plugin -- Agent Plugin 10.2.0.0.0 
   Enterprise Manager Integration InterConnect Plugin -- Agent Plugin 10.2.0.0.0 
   Enterprise Manager BPEL Process Manager Plugin -- Agent Plugin 10.2.0.0.0 
   Oracle Portal agent 10.2.0.0.0 
   Reports Services EM Plugin - Agent portion 10.2.0.0.0 
   Oracle Workflow Agent for Grid Control 2.6.0.0.0 
   Wireless EM Agent 10.1.2.0.1 
   Enterprise Manager Collaboration Suite Plugin -- Agent Support 10.2.0.1.0 
   Oracle Discussions Plugin for Agent 10.2.0.0.0 
   Oracle Content Services Plugin for Oracle Management Agent 10.1.1.0.0 
   Oracle Mobile Collaboration Server Plugin for Agent 10.2.0.0.0 
   Oracle Collaboration Suite Web Access Agent Plugin 10.2.0.0.0 
   Oracle Email components for Enterprise Manager Grid Control Agent 10.1.2.0.1 
   Oracle Ultra Search Plugin for Oracle Management Agent 10.2.0.1.0 
   Oracle Voice Mail and Fax Files Plugin for Agent 10.2.0.0.0 
   Oracle Workspaces Plugin for Agent 10.2.0.0.0 
   Enterprise Manager Database Plugin -- Agent Support 10.2.0.1.0 
   Enterprise Manager Application Server Plugin -- Common Support 10.2.0.1.0 
   Oracle Dynamic Monitoring Service 10.1.2.1.0 
   Oracle Application Server Repository API 10.1.2.0.2 
   Bali Share 1.1.18.0.0 
   Oracle Universal Installer 10.2.0.5.0 
   Oracle One-Off Patch Installer 10.2.0.4.2 
   Installer SDK Component 10.2.0.5.0 
   Sun JDK 1.4.2.0.8 
   Sun JDK extensions 10.1.2.0.0 
-----------------------------------------------------------------------------


Installation in progress (Saturday, January 10, 2015 10:35:35 AM CST)
.........................................................................................                                       78% Done.
Install successful

Linking in progress (Saturday, January 10, 2015 10:36:10 AM CST)
Link successful

Setup in progress (Saturday, January 10, 2015 10:36:11 AM CST)
.........                                                       100% Done.
Setup successful

End of install phases.(Saturday, January 10, 2015 10:36:12 AM CST)
WARNING:
The following configuration scripts need to be executed as the "root" user.
#!/bin/sh
#Root script to run
/u01/app/oracle/agent10g/root.sh
To execute the configuration scripts:
    1. Open a terminal window
    2. Log in as "root"
    3. Run the scripts

Starting to execute configuration assistants
Configuration assistant "Agent Configuration Assistant" failed 
SEVERE:OUI-10104: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. Select the failed assistants and click the ‘Retry‘ button to retry them.
--------------------------------------
The "/u01/app/oracle/agent10g/cfgtoollogs/configToolFailedCommands" script contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.
The "/u01/app/oracle/agent10g/cfgtoollogs/configToolAllCommands" script contains all commands to be executed by the configuration assistants. This file may be used to run the configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.

--------------------------------------
The installation of Oracle Management Agent was successful, but some optional configuration assistants failed, were cancelled or skipped.
Please check ‘/u01/app/oracle/oraInventory/logs/silentInstall2015-01-10_10-35-23AM.log‘ for more details.
Completed with Status=1

仍然有错误,还说主机名检查失败,不能包含“-”连字符号,难道是这个问题?
再检查一下安装日志,看看有没有其他线索

[oracle@ocm1 oracle]$ cd /u01/app/oracle/oraInventory/logs/
[oracle@ocm1 logs]$ tail -20 installActions2015-01-10_10-35-23AM.log
INFO: DefaultifyLangiages : Value of oracle.installer.defaultifyLanguages : false
INFO: Install Mode : Non FastMode
INFO: Performing operation for OUI Shiphome access setup
INFO: 
*** Select a Product to Install Page***
INFO: Setting the ‘TopLevelComp ( ToplevelComp )‘ property to ‘oracle.sysman.top.agent, 10.2.0.1.1, >0.0.0.0.0, [ 46 ][OH:2]‘. Received the value from the default settings. 
INFO: 
*** Select Installation Type Page***
INFO: Setting variable ‘INSTALL_TYPE‘ to ‘Complete‘. Received the value from response file. 
INFO: Setting the ‘InstallType ( DEP_MODE )‘ property to ‘Complete‘. Received the value from the default settings. 
INFO: Setting the ‘TopLevelInstallType ( TLDepModes )‘ property to ‘Complete‘. Received the value from the default settings. 
INFO: The selected install type is "Complete".
INFO: 
*** Specify Home Details Page***
INFO: Setting the ‘OracleHome ( ORACLE_HOME )‘ property to ‘/u01/app/oracle//agent10g‘. Received the value from the command line.
INFO: Setting the ‘OracleHomeName ( ORACLE_HOME_NAME )‘ property to ‘agent10g1‘. Received the value from the command line.

似乎也没发现什么问题,难道真的是hostname的原因引起的吗?

[oracle@ocm1 install]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain   localhost
192.168.1.175   ocm1.localdomain        ocm1-odd
192.168.1.176   ocm2.localdomain        ocm2-even

查看/etc/hosts发现hostname中确实有“-”符号,可这只是别名啊,不会这么苛刻吧!

[oracle@ocm1 install]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain   localhost
192.168.1.175   ocm1.localdomain        ocm1
192.168.1.176   ocm2.localdomain        ocm2

把hostname别名修改成只有数字以后再次执行,发现依旧是原来同样的错误,看来绝对不是hostname引起的问题。
继续找了很久原因,还是没有任何线索,于是准备把环境铲掉重新来一次,再重新安装软件的时候,发现了端倪。
由于之前安装过一个干净版的Oracle Linxu 5.8,于是这次直接克隆镜像过来安装Oracle软件,装的时候同样报了个make编译错误:

技术分享
技术分享

感觉有问题,这么相似的错误,会不会都是同一个原因引起的?仔细看了下操作系统版本,怎么是64 bit的,这才想到去看一下实验环境的OS版本,这一看果然发现了问题所在:

技术分享技术分享

原来我装环境的时候是各自安装,没有使用克隆镜像的方式,所以一开始DB服务器用的是64 bit的操作系统,而GC服务器用的是32 bit的,居然没有发现这个问题,一直到出现上述问题,排错了半天才发现。于是重新把DB主机系统铲掉,重新搭建成32 bit的系统,才解决。

总结:这次是属于自己给自己挖坑了,不过也增加了经验值,下次再碰到到make错误,我会首先去排查OS位数和Oracle软件版本是否一致,就不会走那么多弯路了,写这篇文章也希望给大家提个醒,以后不要那么粗心,和我犯同样的错误,呵呵。






Grid Control Agent无法配置成功的案例分享

标签:oracle   gc   make错误   agent configuration   oms   

原文地址:http://blog.csdn.net/aaron8219/article/details/42584755

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!