RHEL5.4 64bit 安装10204 GC agent

一 环境

OS

GC OS: RHEL4.8 32bit
$ cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
$ uname -a
Linux ocmdb2 2.6.9-89.ELsmp #1 SMP Mon Apr 20 10:34:33 EDT 2009 i686 i686 i386 GNU/Linux

DB OS:  RHEL5.4 64bit
$cat /etc/redhat-release
CentOS release 5.4 (Final)
$uname -a
Linux dbserver 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

DB

要监控的DB版本
$sqlplus / as sysdba

SQL*Plus: Release 10.2.0.4.0 - Production on Mon Nov 7 16:12:50 2011

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> set lines 150
COL PRODUCT FORMAT A55
COL VERSION FORMAT A15
COL STATUS FORMAT A15
SELECT * FROM PRODUCT_COMPONENT_VERSION;SQL> SQL> SQL> SQL>

PRODUCT                         VERSION     STATUS
------------------------------------------------------- --------------- ---------------
NLSRTL                            10.2.0.4.0    Production
Oracle Database 10g Enterprise Edition            10.2.0.4.0    64bi
PL/SQL                            10.2.0.4.0    Production
TNS for Linux:                        10.2.0.4.0    Production

SQL>

二 描述

OCM考试用到了GC.于是想把学到的用在工作环境中.目的很简单,用跑在vmware上的 RHEL4.8 32bit 10201 GC 监控测试环境 RHE5.4 64bit 10204DB. (步聚1操作思想出错,示成功,这里仅做记录.请直接略过从步聚2开看.)
步骤1 已经有一个跑在32bit的rhel4.8系统上的10201GC存在.想把此gc的agent装到 64bit的 rhel5.4系统上.结果不成功.
步骤2 一切重新来过,在rhel4.8 32bit系统重新安装10201GC,然后升级到10204GC,再在要监控的机器上安装相应平台相应版本的agent.  需要用到的安装包.
 包名 描述 下载地址
 gc_102011_linux.zip : Oracle Enterprise Manager 10g Grid Control 第 2 版 (10.2.0.1.1) 适用于 Linux x86http://www.oracle.com/technetwork/cn/oem/grid-control/downloads/linuxsoft-086711-zhs.html
 GridControl_10.2.0.4_LINUX.zip : Oracle Enterprise Manager 10g Grid Control 第 4 版 (10.2.0.4) 适用于 Linux x86http://www.oracle.com/technetwork/cn/oem/grid-control/downloads/linuxsoft-086711-zhs.html
 Linux_x86_64_Grid_Control_agent_download_10_2_0_4_0.zip http://www.oracle.com/technetwork/cn/oem/grid-control/downloads/agentsoft-088763-zhs.html

三 结构

ip 主机名

GC OS :192.168.1.108    ocmdb2
DB OS: 192.168.1.152    dbserver

目录

GC OS OMS目录:/u01/app/oracle/OracleHomes/oms10g/
GC OS DB目录:/u01/app/oracle/OracleHomes/db10g/
GC OS agent目录:/u01/app/oracle/OracleHomes/agent10g/
DB OS agent目录 : /oracle/gc_agent/

四 步骤

1. 由于GC用已经安装完毕的.现将agent从服务端下载下载到DB OS上安装. 在DB OS上运行agentDownload.linux

/home/oracle 16:01 $./agentDownload.linux  -b /oracle/gc_agent/
agentDownload.linux invoked on Mon Nov  7 16:02:22 CST 2011 with Arguments "-b /oracle/gc_agent/"
Platform=Linux, S=linux
GetPlatform.:returned=0, and os is set to: linux, platform=Linux
Creating /home/oracle/agentDownload10.2.0.1.0Oui ...
LogFile for this Download can be found at: "/home/oracle/agentDownload10.2.0.1.0Oui/agentDownload.linux110711160222.log"
Running on Selected Platform. Linux
Installer location: /home/oracle/agentDownload10.2.0.1.0Oui
Downloading Agent install response file ...
--2011-11-07 16:02:22--  http://ocmdb2.localdomain:4889/agent_download/10.2.0.1.0/agent_download.rsp
Resolving ocmdb2.localdomain... 192.168.1.108
Connecting to ocmdb2.localdomain|192.168.1.108|:4889... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19993 (20K) [text/plain]
Saving to: `agent_download.rsp'

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

2011-11-07 16:02:27 (11.9 MB/s) - `agent_download.rsp' saved [19993/19993]

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

100%[====================================================================================================================>] 46,620,679  11.0M/s   in 4.0s   

2011-11-07 16:02:31 (11.0 MB/s) - `oui_linux.jar' saved [46620679/46620679]

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

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

2011-11-07 16:02:31 (7.95 MB/s) - `unzip' saved [101448/101448]

Adding execute permissions to unzip ...
Downloaded UnzipUtility with status=0
The jar to be used=/oracle/database/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://ocmdb2.localdomain:4889/agent_download/10.2.0.1.0/linux/agent/stage/products.xml FROM_LOCATION=http://ocmdb2.localdomain:4889/agent_download/10.2.0.1.0/linux/agent/stage/products.xml -baseDir /oracle/gc_agent/    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/OraInstall2011-11-07_04-02-31PM. 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:
 /oracle/database/oraInventory/logs/installActions2011-11-07_04-02-31PM.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-4
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-12.el5.  Passed
Checking for gcc-3.2; found gcc-4.1.2-46.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 is not FQDN, Domain name is null.
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://ocmdb2.localdomain:4889/agent_download/10.2.0.1.0/linux/agent/stage/products.xml
    Oracle Home: /oracle/gc_agent/agent10g (agent10g)
    Installation Type: Complete
Product Languages
   English
Space Requirements
   /oracle/ Required 426MB : Available 343.86GB
   / Required 9MB (only as temporary space) : Available 10.15GB
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 (Monday, November 7, 2011 4:02:48 PM CST)
.........................................................................................                                       78% Done.
Install successful

Linking in progress (Monday, November 7, 2011 4:03:19 PM CST)
Link successful

Setup in progress (Monday, November 7, 2011 4:03:20 PM CST)
.........                                                       100% Done.
Setup successful

End of install phases.(Monday, November 7, 2011 4:03:21 PM CST)
WARNING:
The following configuration scripts need to be executed as the "root" user.
#!/bin/sh
#Root script. to run
/oracle/gc_agent/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 "/oracle/gc_agent/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 "/oracle/gc_agent/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 '/oracle/database/oraInventory/logs/silentInstall2011-11-07_04-02-31PM.log' for more details.
Completed with Status=1

注:出错,其他的错误日志,错误信息不贴了.平台文件不对,贴上也解决不了问题.

2.一切从头开始

2.1 安装GC(略)

注:GC安装"install type"时选择的是"Enterprise Manager using New Database",此时使用的repository database版本是10.1.0.4

2.2 升级GC

2.2.1 GridControl_10.2.0.4_LINUX.zip 升级包中包含的文件.

$ unzip -l GridControl_10.2.0.4_LINUX.zip
Archive:  GridControl_10.2.0.4_LINUX.zip
  Length     Date   Time    Name
 --------    ----   ----    ----
    52984  10-22-07 20:29   3731596.zip
719933488  10-22-07 20:32   3822442.zip
        0  10-22-07 17:03   doc/
   135047  10-22-07 17:03   doc/ReleaseNotes_EMGC_10.2.0.4.html
   229951  10-22-07 17:03   doc/ReleaseNotes_EMGC_10.2.0.4.pdf
   225336  10-22-07 17:03   doc/BugList_EMGC_10.2.0.4.pdf
   179805  10-22-07 17:03   doc/BugList_EMGC_10.2.0.4.html
719916398  10-22-07 20:38   p3731593_10204_LINUX.zip
    70431  10-22-07 20:09   p4329444_10104_LINUX.zip
    70783  10-22-07 20:09   p4329444_10105_LINUX.zip
    12913  10-22-07 21:14   README.txt
 --------                   -------
1440827136                   11 files
$

2.2.2 参考README.txt 跟ReleaseNotes_EMGC_10.2.0.4.html安装

- p3731593_10204_.zip is the zip that contains 10.2.0.4.0 patch set software.

- 3731596.zip is for patching agent by staging the patch set. Please look at the Release Notes
  section 4.3.3 method 2 under the "doc" directory on how to apply the agent 10.2.0.4.0 patch set

- 3822442.zip is for patching agent by distributing the full patch set. Please look at the Release
  Notes section 4.3.3 method 1 under the "doc" directory on how to apply the agent 10.2.0.4.0 patch set

- p4329444_10104_< platform. name >.zip is zip that contains patch for bug 4329444 for "  name>" for RDBMS version 10.1.0.4.0

- p4329444_10105_< platform. name >.zip is zip that contains patch for bug 4329444 for "  name>" for RDBMS version 10.1.0.5.0

2.3 安装agent

2.3.1 在DB OS上解压Linux_x86_64_Grid_Control_agent_download_10_2_0_4_0.zip 文件到 /oracle/目录下.

2.3.2 按照参考链接"ORACLE GC agent的安装以及配置",编写 /oracle/linux_x64/response/myagent.rsp 文件,文件内容如下:

 $cat /oracle/linux_x64/response/myagent.rsp
UNIX_GROUP_NAME="oinstall"
FROM_LOCATION="/oracle/linux_x64/agent/stage/products.xml"
BASEDIR="/oracle/gc_agent"
sl_OMSConnectInfo={"ocmdb2","4889"}
sl_SSLInfo="oracle1"

#FROM_LOCATION_CD_LABEL="EM10g"
#CLUSTER_NODES=
#s_agentServiceName=""

RESPONSEFILE_VERSION=2.2.1.0.0
b_upgrade=false
SHOW_WELCOME_PAGE=false
SHOW_NODE_SelectION_PAGE=false
SHOW_CUSTOM_TREE_PAGE=false
SHOW_COMPONENT_LOCATIONS_PAGE=false
SHOW_SUMMARY_PAGE=false
SHOW_INSTALL_PROGRESS_PAGE=false
SHOW_REQUIRED_CONFIG_TOOL_PAGE=false
SHOW_CONFIG_TOOL_PAGE=false
SHOW_RELEASE_NOTES=false
SHOW_ROOTSH_CONFIRMATION=false
SHOW_END_SESSION_PAGE=false
SHOW_EXIT_CONFIRMATION=false
NEXT_SESSION=false
NEXT_SESSION_ON_FAIL=false
DEINSTALL_LIST={"oracle.sysman.top.agent","10.2.0.4.0"}
SHOW_DEINSTALL_CONFIRMATION=false
SHOW_DEINSTALL_PROGRESS=false
b_silentInstall=true
b_doAgentConfig=true
SHOW_XML_PREREQ_PAGE=false
SHOW_END_OF_INSTALL_MSGS=false
ACCEPT_LICENSE_AGREEMENT=true
TOPLEVEL_COMPONENT={"oracle.sysman.top.agent","10.2.0.4.0"}
SHOW_SPLASH_SCREEN=false
SelectED_LANGUAGES={"en","zh_CN"}
COMPONENT_LANGUAGES={"en","zh_CN"}
DECLINE_SECURITY_UpdateS=true
SECURITY_UpdateS_VIA_METALINK=
METALINK_USERNAME=
METALINK_PASSWORD=
PROXY_HOST=
PROXY_PORT=
PROXY_USER=
PROXY_PWD=

2.3.3 使用编写好的参数文件安装agent

$./oracle/linux_x64/agent/runInstaller -silent -responseFile /oracle/linux_x64/response/myagent.rsp
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be enterprise-4, enterprise-5, redhat-3, redhat-4, redhat-5, 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/OraInstall2011-11-09_10-54-57AM. Please wait ...-------------------------------------------------------
Total args: 27
Command line argument array elements ...
Arg:0:/tmp/OraInstall2011-11-09_10-54-57AM/jre/1.4.2/bin/java:
Arg:1:-Doracle.installer.library_loc=/tmp/OraInstall2011-11-09_10-54-57AM/oui/lib/linux:
Arg:2:-Doracle.installer.oui_loc=/tmp/OraInstall2011-11-09_10-54-57AM/oui:
Arg:3:-Doracle.installer.bootstrap=TRUE:
Arg:4:-Doracle.installer.startup_location=/oracle/linux_x64/agent/install:
Arg:5:-Doracle.installer.jre_loc=/tmp/OraInstall2011-11-09_10-54-57AM/jre/1.4.2:
Arg:6:-Doracle.installer.nlsEnabled="TRUE":
Arg:7:-Doracle.installer.prereqConfigLoc= :
Arg:8:-Doracle.installer.unixVersion=2.6.18-164.el5:
Arg:9:-Djava.net.preferIPv4Stack=true:
Arg:10:-mx350m:
Arg:11:-cp:
Arg:12:/tmp/OraInstall2011-11-09_10-54-57AM:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/OraInstaller.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/oneclick.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/xmlparserv2.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/srvm.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/share.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/OraInstallerNet.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/xml.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/orai18n-collation.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/orai18n-mapping.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/emCfg.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/ojmisc.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/InstImages.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/InstHelp.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/InstHelp_de.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/InstHelp_es.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/InstHelp_fr.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/InstHelp_it.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/InstHelp_ja.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/InstHelp_ko.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/InstHelp_pt_BR.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/InstHelp_zh_CN.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/InstHelp_zh_TW.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/oracle_ice.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/help4.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/help4-nls.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/ewt3.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/ewt3-swingaccess.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/ewt3-nls.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/swingaccess.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/classes12.jar::/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/OraPrereq.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/jewt4.jar:/tmp/OraInstall2011-11-09_10-54-57AM/oui/jlib/jewt4-nls.jar:/tmp/OraInstall2011-11-09_10-54-57AM/ext/jlib/em_1click_help_es_ES.jar:/tmp/OraInstall2011-11-09_10-54-57AM/ext/jlib/em_1click_help_fr_CA.jar:/tmp/OraInstall2011-11-09_10-54-57AM/ext/jlib/em_1click_help_fr.jar:/tmp/OraInstall2011-11-09_10-54-57AM/ext/jlib/em_1click_help.jar:/tmp/OraInstall2011-11-09_10-54-57AM/ext/jlib/em_1click_help_zh_TW.jar:/tmp/OraInstall2011-11-09_10-54-57AM/ext/jlib/em_1click_help_es.jar:/tmp/OraInstall2011-11-09_10-54-57AM/ext/jlib/em_1click_help_zh_CN.jar:/tmp/OraInstall2011-11-09_10-54-57AM/ext/jlib/em_1click_help_de.jar:/tmp/OraInstall2011-11-09_10-54-57AM/ext/jlib/em_1click_help_it.jar:/tmp/OraInstall2011-11-09_10-54-57AM/ext/jlib/em_1click_help_pt_BR.jar:/tmp/OraInstall2011-11-09_10-54-57AM/ext/jlib/em_1click_help_ja.jar:/tmp/OraInstall2011-11-09_10-54-57AM/ext/jlib/em_1click_help_ko.jar:
Arg:13:oracle.sysman.emgc.oneclick.OneStartup:
Arg:14:-scratchPath:
Arg:15:/tmp/OraInstall2011-11-09_10-54-57AM:
Arg:16:-sourceLoc:
Arg:17:/oracle/linux_x64/agent/install/../stage/products.xml:
Arg:18:-sourceType:
Arg:19:network:
Arg:20:-timestamp:
Arg:21:2011-11-09_10-54-57AM:
Arg:22:-useExistingInventory:
Arg:23:-nowelcome:
Arg:24:-silent:
Arg:25:-responseFile:
Arg:26:/oracle/linux_x64/response/myagent.rsp:
-------------------------------------------------------
Initializing Java Virtual Machine from /tmp/OraInstall2011-11-09_10-54-57AM/jre/1.4.2/bin/java. Please wait...
/oracle/linux_x64/agent 10:54 $Oracle Universal Installer, Version 10.2.0.4.0 Production
Copyright (C) 1999, 2007, Oracle. All rights reserved.

You can find a log of this install session at:
 /oracle/database/oraInventory/logs/installActions2011-11-09_10-54-57AM.log
.................................................................................................... 100% Done.


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


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

Performing check for Packages_agent
Checking operating system package requirements ...
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-12.el5.  Passed
Checking for gcc-3.2; found gcc-4.1.2-46.el5.   Passed
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for CertifiedVersions_agent
Checking operating system requirements ...
Expected result: One of enterprise-4,enterprise-5,redhat-3,redhat-4,redhat-5,SuSE-8,SuSE-9,SuSE-10,enterprise-5,enterprise-4
Actual Result: redhat-4
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for MonitorTargetsCheck
Checking for targets monitor by agent ....
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for compatibilityChecks_for_agent
Checking for Oracle Home incompatibilities ....
Actual Result: NEW_HOME
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for OracleHomeSpaceCheckForAgentOnly
S_CHECK_ORACLE_HOME_FREESPACE
Expected result: 9000
Actual Result: 9002
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for CheckHostName
S_CHECK_HOSTNAME
Check complete. The overall result of this check is: Passed


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


Analyzing dependencies
........................................................................................................ 100% Done.


-----------------------------------------------------------------------------
Summary
Global Settings
    Source: /oracle/linux_x64/agent/stage/products.xml
    Oracle Home: /oracle/gc_agent/agent10g (agent10g)
    Installation Type: Complete
Product Languages
   English
Space Requirements
   /oracle/ Required 676MB : Available 368.16GB
   / Required 26MB (only as temporary space) : Available 9.92GB
New Installations (86 products)
   Oracle Management Agent 10.2.0.4.0
   Enterprise Manager Agent 10.2.0.4.0
   Enterprise Manager Agent Core Files 10.2.0.4.0
   Oracle Recovery Manager Patch 10.2.0.3.0
   Oracle Recovery Manager 10.2.0.1.0
   Enterprise Manager Common Files 10.2.0.4.0
   Enterprise Manager Common Core Files 10.2.0.4.0
   Required Support Files 10.2.0.1.0
   Agent Required Support Files Patch 10.2.0.3.0
   Agent Required Support Files 10.2.0.1.0
   Oracle RAC Required Support Files-HAS Patch 10.2.0.3.0
   Oracle RAC Required Support Files-HAS 10.2.0.1.0
   Oracle JDBC Thin Driver for JDK 1.4 Patch 10.2.0.3.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 Patch 10.2.0.3.0
   Oracle JDBC/OCI Instant Client 10.2.0.1.0
   Secure Socket Layer Patch 10.2.0.3.0
   Secure Socket Layer 10.2.0.1.0
   LDAP Required Support Files Patch 10.2.0.3.0
   LDAP Required Support Files 10.2.0.1.0
   Oracle Globalization Support Patch 10.2.0.3.0
   Oracle Globalization Support 10.2.0.1.0
   Perl Interpreter 5.8.3.0.2
   XML Parser for Java Patch 10.2.0.3.0
   XML Parser for Java 10.2.0.1.0
   Precompiler Required Support Files Patch 10.2.0.3.0
   Precompiler Required Support Files 10.2.0.1.0
   RDBMS Required Support Files Patch 10.2.0.3.0
   RDBMS Required Support Files 10.2.0.1.0
   RDBMS Required Support Files for Instant Client Patch 10.2.0.3.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 Patch 10.2.0.3.0
   Oracle Net Required Support Files 10.2.0.1.0
   XDK Required Support Files Patch 10.2.0.3.0
   XDK Required Support Files 10.2.0.1.0
   Platform. Required Support Files 10.2.0.1.0
   Oracle Core Required Support Files Patch 10.2.0.3.0
   Oracle Core Required Support Files 10.2.0.1.0
   SSL Required Support Files for InstantClient Patch 10.2.0.3.0
   SSL Required Support Files for InstantClient 10.2.0.1.0
   DBJAVA Required Support Files Patch 10.2.0.3.0
   DBJAVA Required Support Files 10.2.0.1.0
   SQL*Plus Required Support Files Patch 10.2.0.3.0
   SQL*Plus Required Support Files 10.2.0.1.0
   Enterprise Manager Agent for Grid Control 10.2.0.4.0
   Installation Common Files Patch 10.2.0.3.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.4.0
   ADF BC agent for OracleAS GC 10.2.0.3.0
   Enterprise Manager BPEL Process Analytics Plugin -- Agent Plugin 10.2.0.2.0
   Discoverer EM plugin - agent portion 10.2.0.2.0
   Oracle SSO Agent 10.2.0.3.0
   Forms Services Management Agent Plugin 10.2.0.2.0
   Oracle CM SDK and Oracle Files Plugin for Oracle Management Agent 10.2.0.3.0
   Enterprise Manager Integration B2B Plugin -- Agent Plugin 10.2.0.2.0
   Enterprise Manager Integration InterConnect Plugin -- Agent Plugin 10.2.0.2.0
   Enterprise Manager BPEL Process Manager Plugin -- Agent Plugin 10.2.0.2.0
   Oracle Portal agent 10.2.0.3.0
   Reports Services EM Plugin - Agent portion 10.2.0.2.0
   Oracle Workflow Agent for Grid Control 10.2.0.3.0
   Wireless EM Agent 10.2.0.3.0
   Oracle Content DB Plugin for Oracle Management Agent 10.2.0.3.0
   Enterprise Manager Collaboration Suite Plugin -- Agent Support 10.2.0.4.0
   Oracle Discussions Plugin for Agent 10.2.0.3.0
   Oracle Content Services Plugin for Oracle Management Agent 10.2.0.3.0
   Oracle Mobile Collaboration Server Plugin for Agent 10.2.0.3.0
   Oracle Collaboration Suite Web Access Agent Plugin 10.2.0.2.0
   Oracle Email components for Enterprise Manager Grid Control Agent 10.2.0.3.0
   Oracle Ultra Search Plugin for Oracle Management Agent 10.2.0.3.0
   Oracle Voice Mail and Fax Files Plugin for Agent 10.2.0.3.0
   Oracle Workspaces Plugin for Agent 10.2.0.3.0
   Enterprise Manager Database Plugin -- Agent Support 10.2.0.4.0
   Enterprise Manager Application Server Plugin -- Common Support 10.2.0.4.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 Configuration Manager 10.2.6.0.0
   Enterprise Manager Siebel Plugin -- Agent Support 10.2.0.4.0
   Oracle Universal Installer 10.2.0.4.0
   Oracle One-Off Patch Installer 10.2.0.4.0
   Installer SDK Component 10.2.0.4.0
   Java Runtime Environment 1.4.2.14.0
   Java 2 SDK 1.4.2.0.8
-----------------------------------------------------------------------------


Installation in progress (Wednesday, November 9, 2011 10:55:11 AM CST)
...............................................................  35% Done.
...............................................................  70% Done.
....................                                             81% Done.
Install successful

Linking in progress (Wednesday, November 9, 2011 10:55:44 AM CST)
Link successful

Setup in progress (Wednesday, November 9, 2011 10:55:54 AM CST)
...........                                                     100% Done.
Setup successful

End of install phases.(Wednesday, November 9, 2011 10:55:57 AM CST)
WARNING:
The following configuration scripts need to be executed as the "root" user.
#!/bin/sh
#Root script. to run
/oracle/gc_agent/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 "Oneoff Patch Application" succeeded
Configuration assistant "Agent Configuration Assistant" succeeded
The installation of Oracle Management Agent was successful.
Please check '/oracle/database/oraInventory/logs/silentInstall2011-11-09_10-54-57AM.log' for more details.

2.3.4 查看agent运行状态

$./emctl status agent
Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0. 
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 10.2.0.4.0
OMS Version       : 10.2.0.4.0
Protocol Version  : 10.2.0.4.0
Agent Home        : /oracle/gc_agent/agent10g
Agent binaries    : /oracle/gc_agent/agent10g
Agent Process ID  : 11973
Parent Process ID : 11947
Agent URL         : http://dbserver:3872/emd/main/
Repository URL    : http://ocmdb2:4889/em/upload/
Started at        : 2011-11-09 10:56:31
Started by user   : oracle
Last Reload       : 2011-11-09 10:56:31
Last successful upload                       : (none)
Last attempted upload                        : (none)
Total Megabytes of XML files uploaded so far :     0.00
Number of XML files pending upload           :       19
Size of XML files pending upload(MB)         :     7.00
Available disk space on upload filesystem    :    47.34%
Last attempted heartbeat to OMS              : 2011-11-09 11:01:03
Last successful heartbeat to OMS             : unknown
---------------------------------------------------------------
Agent is Running and Ready


2.3.5  修改协议

$./emctl secure agent
Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0. 
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
Enter Agent Registration password :
Agent successfully stopped...   Done.
Securing agent...   Started.
Requesting an HTTPS Upload URL from the OMS...   Done.
Requesting an Oracle Wallet and Agent Key from the OMS...   Done.
Check if HTTPS Upload URL is accessible from the agent...   Done.
Configuring Agent for HTTPS in CENTRAL_AGENT mode...   Done.
EMD_URL set in /oracle/gc_agent/agent10g/sysman/config/emd.properties
publicKeyFile = /oracle/gc_agent/agent10g/sysman/config/nmosudo.props
Generating RSA keys.

Saving private key in wallet.
SaveKeyWallet: Cannot open wallet (error=28759): file:/oracle/gc_agent/agent10g/sysman/config
SaveKeyWallet: Re-creating wallet.

Reading private key from wallet.

Saving public key into file.

Reading public key from file.

Encrypting clear-text: gensudoprops pass.

Decrypting encrypted-text.
Decrypted Text: gensudoprops pass
Securing agent...   Successful.
Agent successfully restarted...   Done.

注: 输入密码 oracle1. 创建GC时提示secure agent时输入的密码.

参考文档

ORACLE GC agent的安装以及配置 http://www.xmxq.cn/article.asp?id=3

Oracle 10R2 EM GRID CONTROL安装及Agent部署指南 http://crpp0902.itpub.net/post/307/227740  (这个文档了解了一些agebt的运行)

个人总结

1. 第一个错误由于GC用的是32bit的.传到DB OS端的也是32bit的.但DB OS是64bit的.不匹配两者.所以装不成功.
2.GC安装与OCM培训时环境一样.所以不存在问题.升级时按照升级文档操作.不会有问题发生.agent安装时由于官方文档的链接打不开,因此找到了参考文档中提到的链接写的rsg文件.一次成功.这里谢谢作者.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11780477/viewspace-710380/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/11780477/viewspace-710380/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值