Cloud 12C
Cloud 12C
Cloud 12C
OEL 6.1
Oracle announced recently at OOW 2011 the release of the brand new re-
engineered OEM Cloud Control 12c (c stands for the cloud). This is the
first product from the 12c family of products intended for the cloud. At
present, as of the time of the writing of the article, OEM 12c is only
available for download for Linux x86 (32bit) and Linux x86-64 (64bit)
from OTN.
In the article you will have a look at how to prepare the OEL 6.1 and
subsequently install OEM 12c on OEL 6.1. OEM 12c requires a repository
database. In the article Oracle 11.2.0.3 database is used a repository. I
will provide pointers to MOS or Oracle documentation for supported OS and
repository database versions.
In the article I will reuse the OEL61 VM created here to install OEM
12c and will outline the steps to follow if you start from a new OEL 6.1
installation. Proceed for OS configuration and OEM 12c installation once
you are on supported OS and have a supported Oracle RDBMS database for an
OEM repository.
Installation of OEL 6.1 and Oracle 11.2.0.3 GI and RDBMS and creating RAC
database is covered here.
1. Hardware Requirements
Install the following packages or later from OEL media if you have
a fresh OEL 6.1 install.
For OMS
make-3.81
binutils-2.17.50.0.6
gcc -4.1.1
libaio-0.3.106
glibc-common-2.3.4
libstdc++ -4.1.1
sysstat-5.0.5
glibc-2.5.12
glibc-devel-2.5-49
For agent
make-3.81
binutils-2.17.50.0.6
gcc -4.1.1
libstdc++ -4.1.1
The kernel parameters were already set for Oracle RAC 11.2.0.3
deployment and met the OEM 12c requirement for kernel.shmmax
parameter to a value less than 4 GB.
kernel.shmall = 4294967296
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmni = 4096
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
net.ipv4.conf.eth2.rp_filter = 2
net.ipv4.conf.eth2.rp_filter = 2
net.ipv4.conf.eth1.rp_filter = 1
net.ipv4.conf.eth0.rp_filter = 2
kernel.shmmax = 2074277888
fs.suid_dumpable = 1
kernel.shmall = 4294967296
[root@oel61 stage]#
cat /etc/security/limits.conf
<………..>
# End of file
For OEM12c you can create the following groups and users.
# End of file
[root@oel61 stage]# cat /etc/selinux/config
SELINUX=disabled
SELINUXTYPE=targeted
[root@oel61 stage]#
Make sure that the bash profiles for the oracle and grid users
contain umask 022.
6. Make sure that you use unique host names and static IP addresses. Do
not use Virtual IP or Virtual hostnames or SCANs.
7. Make sure that a physical host name is used and is fully resolvable
Make sure that all nslookup queries resolve to the same name and
associated IP address. For example on node oel61 you should have:
Server: 192.168.2.11
Address: 192.168.2.11#53
Name: oel61.gj.com
Address: 192.168.2.11
Server: 192.168.2.11
Address: 192.168.2.11#53
Name: oel61.gj.com
Address: 192.168.2.11
Server: 192.168.2.11
Address: 192.168.2.11#53
[root@oel61 stage]#
RMANREP =
(DESCRIPTION =
(LOAD_BALANCE = ON)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = RMANREP)
13. It is recommended to set the redo log files size to at least 300MB and
to configure at least 3 redo log groups.
14. Do not use a shared file system for Oracle Inventory.
Run the OUI from the staging area by issuing ./runInstaller command.
Deselect the option for receiving security updates and press Next to
continue.
allroot.sh root.sh
/u01/app/oracle/product/11.2.0/em12c/oms
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/11.2.0/em12c/oms
[n]:
[n]:
[n]:
/etc exist
/u01/app/oracle/product/11.2.0/em12c/oms
……
/etc exist
Finished execution of
/u01/app/oracle/product/11.2.0/em12c/agent/core/12.1.0.1.0/root.sh ……
[root@oel61 oms]#
Press Close.
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
export OMS_HOME=/u01/app/oracle/product/11.2.0/em12c/oms
export AGENT_HOME=/u01/app/oracle/product/11.2.0/em12c/agent/core/12.1.0.1.0
# Start OMS & agent
[oracle@oel61 ~]$
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
export OMS_HOME=/u01/app/oracle/product/11.2.0/em12c/oms
export AGENT_HOME=/u01/app/oracle/product/11.2.0/em12c/agent/core/12.1.0.1.0
[oracle@oel61 ~]$
Verify the start and stop scripts. Note that file descriptors need to
modified as per Configure OEL 6.1 step 3.
Starting WebTier…
The OMS has been started but it may run out of descriptors under heavy usage.
For proper functioning of OMS, please set “ulimit -n” to be at least 4096.
[oracle@oel61 ~]$
—————————————————————
—————————————————————
[oracle@oel61 bin]$
—————————————————————
Enter sysman and the password that you specified during OEM 12c
installation with OUI.
Acknowledge the license agreement.
Drill down to Enterprise Summary.
Go to the database RMANREP used for OEM CC 12c repository.
Look at Database systems.
Look at the cluster.
Access from the browser Admin Server URL
at https://oel61.gj.com:7103/console
This concludes the OEM 12c Cloud control installation. You looked at
OEL 6.1 configuration in order to meet the prerequisites for OEM CC
12c installation. You installed OEM CC 12c interactively using OUI.
Annex 1
[oracle@oel61 db_1]$ emca -deconfig dbcontrol db -repos drop -cluster -SYS_PWD sys1 -
SYSMAN_PWD sys1
———————————————————————-
WARNING : While repository is dropped the database will be put in quiesce mode.
———————————————————————-
/u01/app/oracle/cfgtoollogs/emca/RMANREP/emca_2011_10_05_18_41_11.log.
denied
[oracle@oel61 db_1]$
[oracle@oel61 bin]$ ./RepManager oel-cluster 1521 RMANREP1 -action dropall -dbUser sys -
mwHome /u01/app/oracle/product/11.2.0/em12c -
mwOraHome /u01/app/oracle/product/11.2.0/em12c/oms -
oracleHome /u01/app/oracle/product/11.2.0/em12c/oms
processing arguments
creating logger..
/u01/app/oracle/product/11.2.0/em12c/oms/sysman/log/schemamanager/
/u01/app/oracle/product/11.2.0/em12c/oms/sysman/log/schemamanager/
/u01/app/oracle/product/11.2.0/em12c/oms/sysman/log/schemamanager/
filename: /u01/app/oracle/product/11.2.0/em12c/oms/sysman/log/schemamanager/emschema.log
newly created:
/u01/app/oracle/product/11.2.0/em12c/oms/sysman/log/schemamanager/emschema.log
Driver: oracle.jdbc.driver.OracleDriver
jdbcUrl = jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(Host=oel-
cluster)(Port=1521)))(CONNECT_DATA=(SID=RMANREP1)))
logger null: REPOS_CONN is null in check repos user… creating new one
jdbcUrl = jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(Host=oel-
cluster)(Port=1521)))(CONNECT_DATA=(SID=RMANREP1)))
jdbcUrl = jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(Host=oel-
cluster)(Port=1521)))(CONNECT_DATA=(SID=RMANREP1)))
Error found: Validation Failure for Action: [DROP]. The reason for failure was: [null repos-
connection found]
/u01/app/oracle/product/11.2.0/em12c/oracle_common
Percent Complete: 9
Percent Complete: 9
Percent Complete: 46
Database details:
cluster)(Port=1521)))(CONNECT_DATA=(SID=RMANREP1)))
Connected As : sys
Percent Complete: 22
Percent Complete: 47
Percent Complete: 49
Database details:
cluster)(Port=1521)))(CONNECT_DATA=(SID=RMANREP1)))
Connected As : sys
RCU Logfile :
/u01/app/oracle/product/11.2.0/em12c/oms/cfgtoollogs/cfgfw/emsecrepmgr.log
og
Percent Complete: 9
Percent Complete: 9
Percent Complete: 46
Database details:
cluster)(Port=1521)))(CONNECT_DATA=(SID=RMANREP1)))
Connected As : sys
RCU Logfile :
/u01/app/oracle/product/11.2.0/em12c/oms/cfgtoollogs/cfgfw/emsecrepmgr.log
Component schemas dropped:
Authorization Policy
/u01/app/oracle/product/11.2.0/em12c/oracle_common
[oracle@oel61 bin]$
[oracle@oel61 bin]$ ./RepManager oel-cluster 1521 RMANREP1 -action dropall -dbUser sys -
dbPassword sys1
processing arguments
creating logger..
/u01/app/oracle/product/11.2.0/em12c/oms/sysman/log/schemamanager/
/u01/app/oracle/product/11.2.0/em12c/oms/sysman/log/schemamanager/
/u01/app/oracle/product/11.2.0/em12c/oms/sysman/log/schemamanager/
filename: /u01/app/oracle/product/11.2.0/em12c/oms/sysman/log/schemamanager/emschema.log
newly created:
/u01/app/oracle/product/11.2.0/em12c/oms/sysman/log/schemamanager/emschema.log
Driver: oracle.jdbc.driver.OracleDriver
jdbcUrl = jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(Host=oel-
cluster)(Port=1521)))(CONNECT_DATA=(SID=RMANREP1)))
logger null: REPOS_CONN is null in check repos user… creating new one
jdbcUrl = jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(Host=oel-
cluster)(Port=1521)))(CONNECT_DATA=(SID=RMANREP1)))
jdbcUrl = jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(Host=oel-
cluster)(Port=1521)))(CONNECT_DATA=(SID=RMANREP1)))
Error found: Validation Failure for Action: [DROP]. The reason for failure was: [null repos-
connection found]
/u01/app/oracle/product/11.2.0/em12c/oracle_common
/u01/app/oracle/product/11.2.0/em12c/oracle_common
[oracle@oel61 bin]$
Share this: