Install Oracle Enterprise Manager Cloud control 12cR4 · PDF fileInstall Oracle Enterprise...
Transcript of Install Oracle Enterprise Manager Cloud control 12cR4 · PDF fileInstall Oracle Enterprise...
Install Oracle Enterprise Manager Cloud control 12cR4
on OEL 6.5
In the article you will have a look at the guidelines and steps to install
OEM Cloud Control 12cR4 on Oracle Linux 6.5 X86_64. You will have a glimpse
at how to configure OEL 6.5 for OEM CC 12cR4 installation. Oracle 12.1.0.1
database is used as an Oracle Management Repository (OMR) database. I will
provide pointers to MOS or Oracle Documentation for the supported OS and
Repository database versions.
The environment I use is an Oracle VM VirtualBox running on a MS Windows host
OS with OEL 6.5 x86_64 guest OS. I am not going to describe neither details
of configuring the Oracle VM VirtualBox nor details on installing OEL 6.5 and
installing Oracle RDBMS binaries 12.1.0.1 and databases. More information
about the latter can be found here. I would like to point out that you need
to pay attention for the hardware and software requirements described here.
My VM running the guest OS is configured with 8GB RAM and 80GB of disk space.
The latter is to accommodate the disk footprint for Oracle binaries, stage
area and Oracle databases. If you need to add disk space to already
configured VM look at here.
Select a supported OS and install supported Oracle database for repository.
MOS maintains a list of certified platforms and products for a product. For
OEM CC 12cR4 you will have to look at:
1. Certified OS for installation
2. Certified Oracle database for repository
3. Certified targets
You can obtain the information from MOS.
For OEM CC 12cR4 on OEL 6.5 I have the following information.
I installed the OEL with all options and created the following databases
1. EMREP version 12.1.0.1 serving as OMR
2. DCB12C 12.1.0.1 used as a CDB for testing purposes.
3. Downloaded OEM CC R4 from OTN and staged it in the Guest OS.
Before you start installing OEM CC 12cR4 I strongly recommend browsing the
Oracle documentation here and here to have an idea what you are expected.
The article will skip and will not cover the following:
1. Installing 12.1.0.1 binaries and
2. Creating EMREP OMR database.
3. Creating CDB12C CDB database
The OMR database can be set in advance with the following init parameters
alter system set processes=500 scope=spfile;
alter system set session_cached_cursors=500 scope=spfile;
alter system set shared_pool_size=300000000;
alter system set memory_max_target=1000m scope=spfile;
alter system set db_securefile=PERMITTED scope=both;
alter system set memory_target=1000m scope=spfile;
Installing the oracle-rdbms-server-12cR1-preinstall package using the command
yum install oracle-rdbms-server-12cR1-preinstall greatly simplifies the
configuration.
Installing OEM CC 12c R3
1. Create a .bash_profile as specified in the Appendix A
2. Launch the runInstaller and de-select receiving security updates from
MOS.
3. Select Skip
4. Let the prerequisites checks completes.
5. I selected create a simple installation
6. Select the binaries location.
7. Specify the sysman administrator user password, database configuration
details and software library location.
8. Fix the issue if you have not done it yet.
9. If you have not changed some of the OMR parameter you can do it now by
letting the installer do it for you or after the installation.
10. If you have not set the init parameter initially before the
installation you are provided the following options. Click OK in order
to set the parameters later.
11. Review and click install.
12. This is the whole info for you to review.
13. Wait for the installation to complete.
14. If you face the following issue manually start OMS.
[oracle@oel65 bin]$ ./emctl stop oms -all
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights
reserved.
Stopping WebTier...
WebTier Successfully Stopped
Stopping Oracle Management Server...
Oracle Management Server Successfully Stopped
AdminServer Successfully Stopped
Oracle Management Server is Down
[oracle@oel65 bin]$ ./emctl start oms
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights
reserved.
Starting Oracle Management Server...
Starting WebTier...
WebTier Successfully Started
Oracle Management Server Successfully Started
Oracle Management Server is Up
[oracle@oel65 bin]$
After manually starting OMS retry the operation. The content of the
start and stop scripts are in Annex A.
15. Wait until you are asked to run the scripts as root.
16. Run the script as root.
[root@oel65 oms]# pwd
/u01/app/oracle/product/12.1.0/em12cr4/oms/oms
[root@oel65 oms]# ls
allroot.sh common gccompliance lib32
oraInst.loc root.sh tg4tera
apm create_header.log install modules oui
slax upgrade
archives crs instantclient network perl
soa xdk
asr css inventory nls plsql
sqlplus
bin diagnostics javavm ocm
postjava_header.log srvm
bmp disc jdbc omscarespfile precomp
sysman
ccr doc jlib OPatch rcu
tg4ifmx
cfgtoollogs dummy.ic.linux.txt ldap opmn rdbms
tg4ingr
clone dummy.ic.txt lib oracore relnotes
tg4sybs
[root@oel65 oms]# ./allroot.sh
Starting to execute allroot.sh .........
Starting to execute
/u01/app/oracle/product/12.1.0/em12cr4/oms/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/12.1.0/em12cr4/oms/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]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying coraenv to /usr/local/bin ...
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/12.1.0/em12cr4/oms/oms
Finished execution of
/u01/app/oracle/product/12.1.0/em12cr4/oms/oms/root.sh ......
Starting to execute
/u01/app/oracle/product/12.1.0/em12cr4/agent/core/12.1.0.4.0/root.sh
......
Finished product-specific root actions.
/etc exist
Finished execution of
/u01/app/oracle/product/12.1.0/em12cr4/agent/core/12.1.0.4.0/root.sh
......
[root@oel65 oms]#
17. Click OK.
18. Review the installation results.
19. Verify that you can login to the Administration Console.
20. Verify that you can login to the OEM CC 12cr3 console.
21. Create scripts for OEM startup and shutdown
[oracle@oel65 ~]$ cat startOMS.sh
export OMS_HOME=/u01/app/oracle/product/12.1.0/em12cr4/oms/oms
export
AGENT_HOME=/u01/app/oracle/product/12.1.0/em12cr4/agent/core/12.1
.0.4.0
$OMS_HOME/bin/emctl start oms
$AGENT_HOME/bin/emctl start agent
[oracle@oel65 ~]$ cat stopOMS.sh
export OMS_HOME=/u01/app/oracle/product/12.1.0/em12cr4/oms/oms
export
AGENT_HOME=/u01/app/oracle/product/12.1.0/em12cr4/agent/core/12.1
.0.4.0
$OMS_HOME/bin/emctl stop oms -all
$AGENT_HOME/bin/emctl stop agent
[oracle@oel65 ~]$
22. Modify the sudoer file
Set sudoers access for oracle and grid in /etc/sudoers
oracle ALL=(ALL) ALL
grid ALL=(ALL) ALL
23. This concludes the OEM CC 12C R4 installation.
Appendix A
.bash_profile content
umask 022
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/12.1.0/db_1
#ORACLE_HOME=/u01/app/oracle/product/11.2.0/em12c/oms
ORACLE_HOSTNAME=oel65.gj.com
ORACLE_SID=RMANREP
ORACLE_UNQNAME=RMANREP
LD_LIBRARY_PATH=$ORACLE_HOME/lib
PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch
export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH
ORACLE_HOSTNAME ORACLE_UNQNAME
#export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
export OMS_HOME=/u01/app/oracle/product/12.1.0/em12cr4/oms
export
AGENT_HOME=/u01/app/oracle/product/12.1.0/em12cr4/agent/core/12.1.0.4.0
TEMP=/tmp
TMPDIR=/tmp
export TEMP TMPDIR
ulimit -t unlimited
ulimit -f unlimited
ulimit -d unlimited
ulimit -v unlimited
ulimit -n 65536
if [ -t 0 ]; then
stty intr ^C
fi
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
[oracle@oel65 ~]$ cat startOMS.sh
export OMS_HOME=/u01/app/oracle/product/12.1.0/em12cr4/oms/oms
export
AGENT_HOME=/u01/app/oracle/product/12.1.0/em12cr4/agent/core/12.1.0.4.0
$OMS_HOME/bin/emctl start oms
$AGENT_HOME/bin/emctl start agent
[oracle@oel65 ~]$ cat stopOMS.sh
export OMS_HOME=/u01/app/oracle/product/12.1.0/em12cr4/oms/oms
export
AGENT_HOME=/u01/app/oracle/product/12.1.0/em12cr4/agent/core/12.1.0.4.0
$OMS_HOME/bin/emctl stop oms -all
$AGENT_HOME/bin/emctl stop agent
[oracle@oel65 ~]$
Conclusion
In the article you looked at the prerequisites and steps to install OEM CC
12cR4 on OEL 6.5 x86_64.