howto installation grid control 11g rhel5
TRANSCRIPT
![Page 1: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/1.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 1/38
(c) Martin Decker, ora-solutions.net Page 1
Installation GuideOracle Enterprise Manager Grid Control 11g
on RHEL 5.5 x86-32
This document contains a step-by-step guide on how to install Oracle Enterprise ManagerGrid Control. It starts with Installation of RHEL, Weblogic Server, Repository Database andfinally the Enterprise Manager Installation itself. The installation takes around 60-120minutes and can be accomplished on a system with 2 GB RAM.
For production systems, I recommend 8 GB of memory and at least 4 CPU Cores.
1) Installation RHEL OS 5.5 default software packages
Install RHEL (or CentOS for testing purposes). Do not modify the package list, just take thedefault packages.
2) Upgrade with yum
After OS installation, upgrade to the latest patches.
yum upgrade
3) OS requirements
The next step is to install the necessary RHEL packages, which are required for Weblogic /
Oracle RDBMS / Oracle Enterprise Manager.
It is easiest with yum:
yum install binutils compat-libstdc++ elfutils-libelf glibc-2.5-12 glibc-2.5-24 ksh libaio libgcc libstdc++ make elfutils-libelf-devel elfutils-libelf-devel-static kernel-headers glibc-headers glibc-devel libstdc++-devel libgomp gcc gcc-c++ libaio-devel sysstat unixODBC unixODBC-devel rng-utils setarch compat-db pdksh compat-libstdc++-33 compat-libstdc++-296 lsof strace
wget system-config-lvm
4) Installation Oracle WebLogic Server 11gR1 (10.3.2)
We continue with the installation of WebLogic Server 11gR1 (i.e. 10.3.2) It can bedownloaded from OTN. Before installing, we create OS users and group.
![Page 2: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/2.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 2/38
(c) Martin Decker, ora-solutions.net Page 2
groupadd dbauseradd -g dba -G oinstall oraoemmkdir /u01/app/oraoem/Middlewarechown -R oraoem:dba /u01/app/oraoem/Middleware
./wls1032_linux32.bin
![Page 3: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/3.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 3/38
(c) Martin Decker, ora-solutions.net Page 3
![Page 4: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/4.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 4/38
(c) Martin Decker, ora-solutions.net Page 4
![Page 5: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/5.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 5/38
(c) Martin Decker, ora-solutions.net Page 5
You can either deselect "Run Quickstart" or cancel it. We don´t need that step.
5) Install Repository Database 11gR2
We proceed with the installation of the Repository Oracle Database 11gR2. (11.2.0.1)Additionally, we patch the database to the most current recommended patches.
The following requirements are necessary:
/etc/sysctl.conf:
kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 6815744fs.aio-max-nr = 1048576net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144
net.core.wmem_max = 1048576
![Page 6: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/6.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 6/38
(c) Martin Decker, ora-solutions.net Page 6
/etc/security/limits.conf:ora11gr2 soft nproc 2047ora11gr2 hard nproc 16384ora11gr2 soft nofile 1024ora11gr2 hard nofile 65536
oraoem soft nproc 2047oraoem hard nproc 16384oraoem soft nofile 1024oraoem hard nofile 65536
/etc/profile:if [ $USER = "ora11gr2" ]; then
if [ $SHELL = "/bin/ksh" ]; thenulimit -u 16384ulimit -n 65536
elseulimit -u 16384 -n 65536
fifi
if [ $USER = "oraoem" ]; thenif [ $SHELL = "/bin/ksh" ]; then
ulimit -u 16384ulimit -n 65536
elseulimit -u 16384 -n 65536
fifi
useradd -g dba ora11gr2
mkdir -p /u01/app/ora11gr2chown -R ora11gr2:dba /u01/app/ora11gr2
unzip linux_11gR2_database_1of2.zipunzip linux_11gR2_database_2of2.zipexport ORACLE_BASE=/u01/app/ora11gr2./runInstaller
![Page 7: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/7.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 7/38
(c) Martin Decker, ora-solutions.net Page 7
At this point, we are installing Oracle Binaries only, without creating a database.
![Page 8: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/8.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 8/38
(c) Martin Decker, ora-solutions.net Page 8
![Page 9: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/9.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 9/38
(c) Martin Decker, ora-solutions.net Page 9
![Page 10: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/10.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 10/38
(c) Martin Decker, ora-solutions.net Page 10
![Page 11: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/11.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 11/38
(c) Martin Decker, ora-solutions.net Page 11
![Page 12: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/12.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 12/38
(c) Martin Decker, ora-solutions.net Page 12
Installation of RDBMS patches:
I recommend to download and install these patches:
OPatch p6880880_112000_LINUX.zip
p6880880_112000_LINUX.zip p9165206_112010_LINUX.zip
p9352237_112010_LINUX.zip
![Page 13: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/13.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 13/38
(c) Martin Decker, ora-solutions.net Page 13
6) DBCA Repository Database
Now, we are ready to create the EMREP database.
![Page 14: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/14.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 14/38
(c) Martin Decker, ora-solutions.net Page 14
![Page 15: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/15.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 15/38
(c) Martin Decker, ora-solutions.net Page 15
![Page 16: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/16.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 16/38
(c) Martin Decker, ora-solutions.net Page 16
![Page 17: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/17.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 17/38
(c) Martin Decker, ora-solutions.net Page 17
Please choose at least 350M of memory here. In my test, 250M was insufficient and caused ORA-4031errors.
![Page 18: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/18.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 18/38
(c) Martin Decker, ora-solutions.net Page 18
![Page 19: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/19.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 19/38
(c) Martin Decker, ora-solutions.net Page 19
![Page 20: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/20.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 20/38
(c) Martin Decker, ora-solutions.net Page 20
Network Configuration (Listener, TNS)
![Page 21: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/21.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 21/38
(c) Martin Decker, ora-solutions.net Page 21
![Page 22: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/22.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 22/38
(c) Martin Decker, ora-solutions.net Page 22
![Page 23: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/23.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 23/38
(c) Martin Decker, ora-solutions.net Page 23
![Page 24: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/24.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 24/38
(c) Martin Decker, ora-solutions.net Page 24
Database Preparations
Ensure that the UNDO tablespace and the TEMP tablespace are autoextensible inthe existing, certified Oracle Database. Moreover, resize UNDO tablespace to>200M.
Documentation mentions that for RDBMS 11.2.0.1 as Grid Control Repository, patch forbug# 9002336 and 9067282 should be installed. I prefer to install PSU 11.2.0.1.1, whichcontains bugfix 9067282. Bug 9002336 can be addressed by underscore parameter" _optimizer_distinct_agg_transform = false"
![Page 25: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/25.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 25/38
(c) Martin Decker, ora-solutions.net Page 25
SQL> alter system set "_optimizer_distinct_agg_transform"=falsescope=spfile;SQL> alter system set log_buffer=10485760 scope=spfile;SQL> alter system set processes = 500 scope=spfile;SQL> alter system set session_cached_cursors=200 scope=spfile;SQL> alter database datafile
'/u01/app/ora11gr2/oradata/EMREP/undotbs01.dbf' resize 256M;
Check whether fine grained access control is installed:select value from v$option where parameter = 'Fine-grainedaccess control';
At this point, deinstall DB Control:./emca -deconfig dbcontrol db -repos drop
Note:
My Oracle Support Node 561429.1 mentions that 11.2.0.1 can only be used as repository,if DNS is used. For my demo installation, I prefer usage of /etc/hosts. I have tested and
found no issues without DNS.
7) WebLogic Server Patch Installation
Grid Control documentation mentions that WebLogic Patch WDJ7 is mandatory. Thereforewe install it:
cd /u01/app/oraoem/Middlewarecd utils/bsu
./bsu.sh
![Page 26: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/26.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 26/38
(c) Martin Decker, ora-solutions.net Page 26
![Page 27: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/27.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 27/38
(c) Martin Decker, ora-solutions.net Page 27
Click Tab "Get Patches", Select WDJ7 and click "Download Selected".
![Page 28: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/28.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 28/38
(c) Martin Decker, ora-solutions.net Page 28
Next, click "Apply" for WDJ7.
![Page 29: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/29.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 29/38
(c) Martin Decker, ora-solutions.net Page 29
8) Instllation Enterprise Manager Grid Control 11g
Download and unpack Grid Control:
./runInstaller
![Page 30: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/30.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 30/38
(c) Martin Decker, ora-solutions.net Page 30
![Page 31: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/31.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 31/38
(c) Martin Decker, ora-solutions.net Page 31
![Page 32: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/32.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 32/38
(c) Martin Decker, ora-solutions.net Page 32
![Page 33: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/33.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 33/38
(c) Martin Decker, ora-solutions.net Page 33
![Page 34: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/34.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 34/38
(c) Martin Decker, ora-solutions.net Page 34
![Page 35: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/35.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 35/38
(c) Martin Decker, ora-solutions.net Page 35
![Page 36: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/36.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 36/38
(c) Martin Decker, ora-solutions.net Page 36
Installation is now complete and Grid Control can be accessed via browser:
https://ora-vm2.intra:7799/em/
Click on "Setup" Tab, then Agents, then ora-vm2:3872. Then you see that EMREP databaseis not configured yet.
Unlock and set the password:
SQL> user dbsnmp identified by xxx account unlock;
![Page 37: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/37.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 37/38
(c) Martin Decker, ora-solutions.net Page 37
Configure the respective password for dbsnmp and finish.
8) Enterprise Manager Grid Control 11g Patches
Environment-Files:
/home/oraoem/OMS.env:export ORACLE_HOME=/u01/app/oraoem/Middleware/oms11gexport PATH=$ORACLE_HOME/bin:$PATH
/home/oraoem/AGENT.env:export ORACLE_HOME=/u01/app/oraoem/Middleware/agent11gexport PATH=$ORACLE_HOME/bin:$PATH
Stoppen von OMS und Agentas root: /etc/init.d/gcstartup stop
OMS Patch: (as oraoem). /home/oraoem/OMS.envunzip p9659466_111010_Generic.zipcd 9659466/u01/app/oraoem/Middleware/oms11g/OPatch/opatch apply/u01/app/oraoem/Middleware/oms11g/bin/rcuJDBCEnginesys/[email protected]:1521:EMREP JDBC_SCRIPT
post_install_script.sql $PWD $ORACLE_HOME
![Page 38: HowTo Installation Grid Control 11g RHEL5](https://reader031.vdocuments.us/reader031/viewer/2022021114/577d34b61a28ab3a6b8eab35/html5/thumbnails/38.jpg)
8/8/2019 HowTo Installation Grid Control 11g RHEL5
http://slidepdf.com/reader/full/howto-installation-grid-control-11g-rhel5 38/38
Agent Patch: (as oraoem). /home/oraoem/AGENT.envunzip p9738008_111010_LINUX.zipcd 9738008/u01/app/oraoem/Middleware/agent11g/OPatch/opatch apply
unzip p9676134_111010_Generic.zip
cd 9676134/u01/app/oraoem/Middleware/agent11g/OPatch/opatch apply
Starten von OMS und Agentas root: /etc/init.d/gcstartup start
9) Stopping/Starting of Grid Control
Grid Control Components can be stopped like described here:
OMS:
. /home/oraoem/OMS.envemctl stop oms
Agent:
. /home/oraoem/AGENT.envemctl stop agent