Oracle enterprise cloud control 12c的安装是一个比較复杂的过程,由于他须要依赖于Oracel database以及Oracle Weblogic。

如今Oracle已经整合了Weblogic到cloud control安装包中还是省事非常多,本文是基于Oracle Linux 6.3上安装Oracle enterprise cloud control 12c

1、安装前的准备
a) os安装參考
   Virtual Box下安装Oracle Linux 6.3

b) Oracel software安装及创建DB參考
   使用yum高速部署Oracle安装环境(11g)
   Oracle Linux 6.3下安装Oracle 11g R2(11.2.0.3)

2、JAVA执行环境部署
   [root@oel64 src]# pwd
   /usr/local/src
   [root@oel64 src]# chmod u+x jdk-6u45-linux-x64-rpm.bin
   [root@oel64 src]# ./jdk-6u45-linux-x64-rpm.bin

3、 Cloud Control所需的rpm包
 Package Requirements for Oracle Management Service
     make-3.81
     binutils-2.20.51.0.2-5.11
     gcc-4.4.4
     libaio-0.3.107
     glibc-common-2.12-1
     libstdc++-4.4.4
     libXtst-1.0.99.2-3.el6.x86_64.rpm
     sysstat-9.0.4
     glibc-devel-2.12-1.7.el6.i686 (This is a 32-bit package)
     glibc-devel-2.12-1.7.el6.x86_64 (This is a 64-bit package)
     (Applicable only for Oracle Linux 6.2, which includes RH6.2 and UEK 6.2) glibc-2.12-1.47.0.2

 Package Requirements for Oracle Management Agent   
     make-3.81               
     binutils-2.20.51.0.2-5.11
     gcc-4.4.4               
     libaio-0.3.107          
     glibc-common-2.12-1.7   
     libstdc++-4.4.4         
     sysstat-9.0.4          
 
 #使用以下的方式校验rpm包
 [root@oel63 ~]# rpm -qa make binutils gcc libaio glibc-common libstdc++ sysstat --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n"
   glibc-common-2.12-1.132.el6_5.1(x86_64)
   sysstat-9.0.4-20.el6(x86_64)
   libaio-0.3.107-10.el6(x86_64)
   gcc-4.4.7-4.el6(x86_64)
   binutils-2.20.51.0.2-5.34.el6(x86_64)
   libstdc++-4.4.7-4.el6(x86_64)
   make-3.81-20.el6(x86_64)

 [root@oel63 ~]# rpm -qa glibc-devel --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n"
   glibc-devel-2.12-1.132.el6_5.1(x86_64)

   #在安装的时候出现了一个错误提示,无法找到glibc-devel-2.12-1.7-i686
 [root@oel63 ~]# yum install glibc-devel*i686
 [root@oel63 ~]# rpm -qa | grep glibc-devel
   glibc-devel-2.12-1.132.el6_5.1.i686
   glibc-devel-2.12-1.132.el6_5.1.x86_64

4、配置数据库选项 
a) 假设当前数据库配置了dbconsole,先deconfig
   [oracle@oel63 ~]$ emctl status dbconsole    #这个查询表明本机没有配置dbconsole
   OC4J Configuration issue. /u01/ora11g/db_1/oc4j/j2ee/OC4J_DBConsole_oel63.ycdata.net_ora11g not found.
   #使用以下的命令deconfig dbconsole
   $ emca -deconfig dbcontrol db -repos drop -SYS_PWD <sys pasword> -SYSMAN_PWD <sysman password> 

b) 相关參数改动 
  SQL> ALTER SYSTEM SET processes=300 SCOPE=SPFILE;

  SQL> ALTER SYSTEM SET session_cached_cursors=200 SCOPE=SPFILE;

  SQL> ALTER SYSTEM SET sga_target=2G SCOPE=SPFILE;

  SQL> ALTER SYSTEM SET shared_pool_size=600M SCOPE=SPFILE;

  SQL> ALTER SYSTEM SET pga_aggregate_target=1G SCOPE=SPFILE;

  SQL> ALTER SYSTEM SET job_queue_processes=20 SCOPE=SPFILE;

  SQL> shutdown immediate;

  SQL> startup

4、安装cloud control
  [oracle@oel63 ~]$ mkdir -p /u01/oms12cr3
  [oracle@oel63 ~]$ mkdir -p /u01/agent12cr3
  # Author: Leshami
  # Blog  : javascript:void(0)
  [oracle@oel63 ~]$ cd /usr/local/src/em12cc/
  [oracle@oel63 em12cc]$ ls
  em12103p1_linux64_disk1.zip  em12103p1_linux64_disk2.zip  em12103p1_linux64_disk3.zip

  [oracle@oel63 em12cc]$ unzip em12103p1_linux64_disk1.zip
  [oracle@oel63 em12cc]$ unzip em12103p1_linux64_disk2.zip
  [oracle@oel63 em12cc]$ unzip em12103p1_linux64_disk3.zip

  [oracle@oel63 em12cc]$ export DISPLAY=192.168.7.133:0.0
  [oracle@oel63 em12cc]$ ./runInstaller

  #安装完成后,把这2行加入到~/.bash_profile
  export OMS_HOME=/u01/oms12cr3/oms
  export AGENT_HOME=/u01/agent12cr3/core/12.1.0.3.0
  $ source ~/.bash_profile
  安装完成后能够通过以下的URL登陆到oms https://oel63.ycdata.net:7802/em
  有关clould control启动关闭安装信息,请參考:Oracle cloud control 12c 的启动与关闭

5、现场花絮

Linux 6.3下安装Oracle Enterprise Cloud Control 12c_linux

Linux 6.3下安装Oracle Enterprise Cloud Control 12c_libstdc++_02

Linux 6.3下安装Oracle Enterprise Cloud Control 12c_oracle_03

Linux 6.3下安装Oracle Enterprise Cloud Control 12c_linux_04

Linux 6.3下安装Oracle Enterprise Cloud Control 12c_sql_05

Linux 6.3下安装Oracle Enterprise Cloud Control 12c_linux_06

Linux 6.3下安装Oracle Enterprise Cloud Control 12c_sql_07

Linux 6.3下安装Oracle Enterprise Cloud Control 12c_oracle_08

Linux 6.3下安装Oracle Enterprise Cloud Control 12c_libstdc++_09

Linux 6.3下安装Oracle Enterprise Cloud Control 12c_.net_10

Linux 6.3下安装Oracle Enterprise Cloud Control 12c_linux_11

Linux 6.3下安装Oracle Enterprise Cloud Control 12c_oracle_12

Linux 6.3下安装Oracle Enterprise Cloud Control 12c_linux_13

Linux 6.3下安装Oracle Enterprise Cloud Control 12c_oracle_14

Linux 6.3下安装Oracle Enterprise Cloud Control 12c_sql_15

Linux 6.3下安装Oracle Enterprise Cloud Control 12c_sql_16

Linux 6.3下安装Oracle Enterprise Cloud Control 12c_.net_17

Linux 6.3下安装Oracle Enterprise Cloud Control 12c_sql_18