rng-utils \
make \
binutils \
gcc \
libaio \
glibc-common \
compat-libstdc++-296 \
libstdc++ \
libstdc++-devel \
setarch \
sysstat \
compat-db | grep "not installed"
[root@gridcontrol ~]# rpm -ivh *.rpm --force --nodeps
warning: compat-db-4.6.21-15.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
warning: rng-utils-2.0-1.14.1.fc6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 37017186: NOKEY
Preparing... ########################################### [100%]
1:setarch ########################################### [ 20%]
2:rng-utils ########################################### [ 40%]
3:compat-db ########################################### [ 60%]
4:compat-db ########################################### [ 80%]
5:compat-libstdc++-296 ########################################### [100%]


?

?

?

删除之前的em
[oracle@gridcontrol 11g_grid_control_linux_x86-64]$ emca -deconfig dbcontrol db -repos drop
STARTED EMCA at Jun 3, 2015 9:00:35 PM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle. All rights reserved.
Enter the following information:
Database SID: emrep
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:
Password for SYSMAN user:
----------------------------------------------------------------------
WARNING : While repository is dropped the database will be put in quiesce mode.
----------------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Jun 3, 2015 9:00:45 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /home/oracle/app/cfgtoollogs/emca/emrep/emca_2015_06_03_21_00_34.log.
Jun 3, 2015 9:00:45 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
WARNING: ORA-28000: the account is locked
Jun 3, 2015 9:00:45 PM oracle.sysman.emcp.ParamsManager checkListenerStatusForDBControl
WARNING: Error initializing SQL connection. SQL operations cannot be performed
Jun 3, 2015 9:00:45 PM oracle.sysman.emcp.EMDBPreConfig performDeconfiguration
WARNING: EM is not configured for this database. No EM-specific actions can be performed. Some of the possible reasons may be:
1) EM is configured with different hostname then physical host. Set environment variable ORACLE_HOSTNAME=
2) ORACLE_HOSTNAME is set. Unset it and re-run EMCA script
Jun 3, 2015 9:00:45 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Jun 3, 2015 9:02:50 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Enterprise Manager configuration completed successfully
FINISHED EMCA at Jun 3, 2015 9:02:50 PM
?

?

?

?

?

已root执行脚本
/home/oracle/app/Middleware/oms11g/allroot.sh
?

?

?

?

?
?
至此安装完成
agent 部署
第一种方式:
将GRID CONTROL主机的agentDownload.linux_x64文件拷贝到客户端
GRID CONTROL安装路径中:/home/oracle/app/Middleware/oms11g/sysman/agent_download/11.1.0.1.0/linux_x64
scp /home/oracle/app/Middleware/oms11g/sysman/agent_download/11.1.0.1.0/linux_x64/agentDownload.linux_x64 server2:/home/u01/app/oracle/agent
?
在客户端上执行,(在按照过程中,保证grid进程和所使用的数据库保持online)
chmod +x agentDownload.linux_x64
export PATH=$ORACLE_HOME/jdk/bin:$ORACLE_HOME/bin:$PATH
./agentDownload.linux_x64 -b /u02/agent -m gridcontrol.com -r 4900-y
将两个数据库的dbsnmp用户修改密码并解锁
alter user db