Installation

Basic Steps to configure OEM12c


 The very first step is to Configure OEL(Oracle Enterprise Linux)
 Package, Kernel parameter and library requirements
Install OEL6.1 and additionally added glibc-devel-2.12-1.25.el6.i686.rpm as OUI was asking for glibc-devel-2.5-49.i386.rpm.
Install the following packages or later from OEL media 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
Change the /etc/sysctl.conf
# Controls the maximum number of shared memory segments, in pages
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
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
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
# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296
Value kernel.shmmax = 2074277888 is within the OEM 12c requirements.
1. File descriptor requirements
Modify as root /etc/security/limits.conf to make sure that you set a minimum of 4056 max open files. This is the content for Oracle RAC 11.2.0.3. Only the values in red a required for OEM 12c.
cat /etc/security/limits.conf
<………..>
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 4096
oracle hard nofile 65536
grid soft nproc 2047
grid hard nproc 16384
grid soft nofile 4096
grid hard nofile 65536
# End of file
OMS will complain and display a warning if descriptors are not properly set. See the Annex 1.
2. Create users and groups
Since we are installing it on a RAC node I have oracle user already created. OEM 12c can be installed using that oracle user. Assuming that Oracle RDBMS is created for OEM 12c repository you can install OEM as Oracle owner or any user that is part of oinstall and dba group. As part of GI and RAC installation I did.
groupadd -g 1000 oinstall
groupadd -g 1020 asmadmin
groupadd -g 1021 asmdba
groupadd -g 1031 dba
groupadd -g 1022 asmoper
groupadd -g 1023 oper
useradd -u 1100 -g oinstall -G asmadmin,asmdba,dba,asmoper grid
useradd -u 1101 -g oinstall -G dba,asmdba,oper oracle
For OEM12c you can create the following groups and users.
groupadd -g 1000 oinstall
groupadd -g 1031 dba
useradd -u 1101 -g oinstall -G dba oracle
3. Make sure that SELINUX and firewall are disabled
chkconfig iptables off
# End of file
[root@oel61 stage]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing – SELinux security policy is enforced.
# permissive – SELinux prints warnings instead of enforcing.
# disabled – SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted – Only targeted network daemons are protected.
# strict – Full SELinux protection.
SELINUXTYPE=targeted
4. Make sure that a physical host name is used and is fully resolvable
NOTE: Make sure that there is no existing OEM Database Control or Grid Control or Cloud control repository.Remove an existing OEM DC repository using the following command.
emca -deconfig dbcontrol db -repos drop -cluster -SYS_PWD sys1 -SYSMAN_PWD sys
 Create a directory /u01/app/oracle/product/11.2.0/em12c for OEM12c installation.
drwxr-x—. 16 oracle oinstall 4096 Oct 8 22:17 em12c
Unzip the OEM12c binaries in a stage directory.
For OEM12c installation modify the tnsnames.ora entry for the RMANREP service you will use to specify the local physical host (RAC only). Added the red lines as per OUI suggestion.
RMANREP =
(DESCRIPTION =
(LOAD_BALANCE = ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = oel-cluster)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = oel61)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = RMANREP)
)
)
Make sure that the Repository database is properly configured.
alter system set job_queue_processes=20 scope=both ;
alter system set session_cached_cursors=500 scope=spfile;
alter system set processes=500 scope=spfile sid=’*';
alter system set shared_pool_size=600M scope=spfile;
alter system set sga_target=2G scope=spfile;
alter system set pga_aggregate_target=1G scope=spfile;
After setting the init parameters in spfile bounce the instance.
It is recommended to set the redo log files size to at least 300MB and to configure at least 3 redo log groups.
Install OEM 12c
Run the OUI from the staging area by issuing ./runInstaller command. Deselect the option for receiving security updates and press Next to continue.
Select Skip and press Next button to continue.
Review the prerequisite checks. The warning is due to missing glibc-devel-2.5-49.i386.rpm. Instead glibc-devel-2.12-1.25.el6.i686.rpm is installed. Press Next to continue if this is the only problem.
Specify the installation location for Middleware home as indicated from Configure OEL 6.1 in step 11. Press Next button to continue.
Specify the password and database connection details. Press Next to continue.
This is already done in Configure OEL 6.1 step 13. Test the connection and press OK.
Confirm that test is successful.
Press Yes.
Will leave as it is.
Review the summary of the installation.
Wait until installation completes.
At the end you are prompted to run scripts as root.
Run the scripts as root.

No comments:

Post a Comment