在Oracle Linux 5.9上安装Oracle Enterprise Manager Cloud Control 12cR3

OMS,OMR安装在一台服务器
OS:    Oracle Linux 5.9 x86_64
RAM:   6GB
OEM:   12.1.0.3
REPDB: 11.2.0.4
HOSTNAME: omsdb.localdomain

OMS12cR3认证平台

在Oracle Linux 5.9上安装Oracle Enterprise Manager Cloud Control 12cR3


--安装软件包
[root@omsdb ~]# yum -y install oracle-validated


--创建目录
[root@omsdb ~]# mkdir -p /u01/app/oracle
[root@omsdb ~]# chown -R oracle:oinstall /u01/app
[root@omsdb ~]# chmod -R 775 /u01/app


配置环境变量
export ORACLE_HOSTNAME=omsdb.localdomain
export ORACLE_SID=REPDB
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export WLS_HOME=/u01/app/oracle/product/Middleware/wlsserver_10.3
export OMS_HOME=/u01/app/oracle/product/Middleware/oms
export AGENT_HOME=/u01/app/oracle/product/agent/core/12.1.0.3.0
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib


--如果REPDB配置了DB Control必须删除,使用oracle用户执行以下语句
emca -deconfig dbcontrol db -repos drop -SYS_PWD <sys pasword> -SYSMAN_PWD <sysman password> -SID <databse sid> -PORT <port number>


--REPDB中不能有SYSMAN用户,如果有必须删除
[oracle@omsdb ~]$ sqlplus / as sysdba


SQL*Plus: Release 11.2.0.4.0 Production on Wed Feb 19 12:11:05 2014

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


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


SQL> select name from v$database;


NAME
---------
REPDB


SQL> select * from dba_users where username like ‘SYSMAN%‘;


no rows selected


--默认情况下确保以下端口可用
Admin Server HTTP SSL Port = 7101 - 7200
Enterprise Manager Upload HTTP Port = 4889 - 4898
Enterprise Manager Upload HTTP SSL Port = 1159, 4899 - 4908
Enterprise Manager Central Console HTTP Port = 7788 - 7798
Enterprise Manager Central Console HTTP SSL Port = 7799 -7809
Oracle Management Agent Port = 3872, 1830 - 1849


--调整REPDB参数
ALTER SYSTEM SET processes=300 SCOPE=SPFILE;
ALTER SYSTEM SET session_cached_cursors=200 SCOPE=SPFILE;
ALTER SYSTEM SET sga_target=2G SCOPE=SPFILE;
ALTER SYSTEM SET shared_pool_size=600M SCOPE=SPFILE;
ALTER SYSTEM SET pga_aggregate_target=1G SCOPE=SPFILE;
ALTER SYSTEM SET job_queue_processes=20 SCOPE=SPFILE;
ALTER SYSTEM SET log_buffer=10485760 SCOPE=SPFILE;
ALTER SYSTEM SET open_cursors=300 SCOPE=SPFILE;
SHUTDOWN IMMEDIATE
STARTUP


--解压em12cr3
[oracle@omsdb ~]$ mkdir em12cr3
[oracle@omsdb ~]$ unzip -d em12cr3 em12103_linux64_disk1.zip 
[oracle@omsdb ~]$ unzip -d em12cr3 em12103_linux64_disk2.zip 
[oracle@omsdb ~]$ unzip -d em12cr3 em12103_linux64_disk3.zip 


--因为OMS和OMR安装在一台服务器,所以安装钱取消相关环境变量
[oracle@omsdb em12cr3]$ unset ORACLE_HOME ORACLE_BASE ORACLE_SID
[oracle@omsdb em12cr3]$ env|grep ORACLE
ORACLE_HOSTNAME=omsdb


--安装OMS
[oracle@omsdb em12cr3]$ ./runInstaller 
Starting Oracle Universal Installer...


Checking Temp space: must be greater than 400 MB.   Actual 87841 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 7967 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-02-19_12-36-17PM. Please wait ...[oracle@omsdb em12cr3]$


--不填写MOS信息

在Oracle Linux 5.9上安装Oracle Enterprise Manager Cloud Control 12cR3


--不更新,选择Skip

在Oracle Linux 5.9上安装Oracle Enterprise Manager Cloud Control 12cR3


--Next

在Oracle Linux 5.9上安装Oracle Enterprise Manager Cloud Control 12cR3


--选择Advanced

在Oracle Linux 5.9上安装Oracle Enterprise Manager Cloud Control 12cR3


--输入安装路径

在Oracle Linux 5.9上安装Oracle Enterprise Manager Cloud Control 12cR3


--选择Plug-ins

在Oracle Linux 5.9上安装Oracle Enterprise Manager Cloud Control 12cR3


--设置weblogic和nodemanager密码

在Oracle Linux 5.9上安装Oracle Enterprise Manager Cloud Control 12cR3


--输入REPDB信息

在Oracle Linux 5.9上安装Oracle Enterprise Manager Cloud Control 12cR3


--输入SYSMAN和agent注册密码

在Oracle Linux 5.9上安装Oracle Enterprise Manager Cloud Control 12cR3


--选择默认OMS安装端口

在Oracle Linux 5.9上安装Oracle Enterprise Manager Cloud Control 12cR3


--安装概要

在Oracle Linux 5.9上安装Oracle Enterprise Manager Cloud Control 12cR3


在Oracle Linux 5.9上安装Oracle Enterprise Manager Cloud Control 12cR3


在Oracle Linux 5.9上安装Oracle Enterprise Manager Cloud Control 12cR3


--执行allroot.sh

[root@omsdb ~]# /u01/app/oracle/product/Middleware/oms/allroot.sh


Starting 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 ......


--安装完成

在Oracle Linux 5.9上安装Oracle Enterprise Manager Cloud Control 12cR3


--SYSMAN账户登录EM

https://192.168.1.200:7799/em

在Oracle Linux 5.9上安装Oracle Enterprise Manager Cloud Control 12cR3


在Oracle Linux 5.9上安装Oracle Enterprise Manager Cloud Control 12cR3


--启动oms步骤

#!/bin/sh
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
$ORACLE_HOME/bin/dbstart $ORACLE_HOME
$OMS_HOME/bin/emctl start oms
$AGENT_HOME/bin/emctl start agent
#startup Target Agent
#$AGENT_HOME/bin/emctl start agent


--关闭oms步骤

#!/bin/sh
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
$ORACLE_HOME/bin/dbshut $ORACLE_HOME


在Oracle Linux 5.9上安装Oracle Enterprise Manager Cloud Control 12cR3

上一篇:window设置定时执行 git 更新(git pull)


下一篇:什么是Windows To Go?