在OracleLinux5.9上安装OracleEnterpriseManagerCloudControl12cR3(二)

2014-11-24 11:59:00 · 作者: · 浏览: 5
to execute allroot.sh .........


Starting to execute /u01/app/oracle/product/Middleware/oms/root.sh ......
Running Oracle 11g root.sh script...


The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/Middleware/oms


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


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


Creating /etc/oragchomelist file...
/u01/app/oracle/product/Middleware/oms
Finished execution of /u01/app/oracle/product/Middleware/oms/root.sh ......


Starting to execute /u01/app/oracle/product/agent/core/12.1.0.3.0/root.sh ......
Finished product-specific root actions.
/etc exist
Finished execution of /u01/app/oracle/product/agent/core/12.1.0.3.0/root.sh ......

--安装完成

\

--SYSMAN账户登录EM

https://192.168.1.200:7799/em

\

\

\

--关闭oms步骤

export ORACLE_SID=REPDB
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
export OMS_HOME=/u01/app/oracle/product/Middleware/oms
export AGENT_HOME=/u01/app/oracle/product/agent/core/12.1.0.3.0
#stop Target Agent
#$AGENT_HOME/bin/emctl stop agent
$AGENT_HOME/bin/emctl stop agent
$OMS_HOME/bin/emctl stop oms -all
lsnrctl stop

sqlplus / as sysdba

shutdown immediate

[oracle@omsdb ~]$ export OMS_HOME=/u01/app/oracle/product/Middleware/oms
[oracle@omsdb ~]$ export AGENT_HOME=/u01/app/oracle/product/agent/core/12.1.0.3.0
[oracle@omsdb ~]$ $AGENT_HOME/bin/emctl stop agent
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
Stopping agent ..... stopped.
[oracle@omsdb ~]$ $OMS_HOME/bin/emctl stop oms -all
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
Stopping WebTier...
WebTier Successfully Stopped
Stopping Oracle Management Server...
Oracle Management Server Successfully Stopped
AdminServer Successfully Stopped
Oracle Management Server is Down

--启动oms步骤

export ORACLE_SID=REPDB
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
export OMS_HOME=/u01/app/oracle/product/Middleware/oms
export AGENT_HOME=/u01/app/oracle/product/agent/core/12.1.0.3.0
lsnrctl start

sqlplus / as sysdba

startup
$OMS_HOME/bin/emctl start oms
$AGENT_HOME/bin/emctl start agent
#startup Target Agent
#$AGENT_HOME/bin/emctl start agent

[oracle@omsdb ~]$ $OMS_HOME/bin/emctl start oms
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
Starting Oracle Management Server...
Starting WebTier...
WebTier Successfully Started
Oracle Management Server Successfully Started
Oracle Management Server is Up
[oracle@omsdb ~]$ $AGENT_HOME/bin/emctl start agent
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
Starting agent ............................... started.
[oracle@omsdb ~]$
[oracle@omsdb ~]$

--查看OMS状态

[oracle@o