Sunday 11 August 2013

Configuring a New Enterprise Manager System in OEM Cloud Control 12c Release 3 (12.1.0.3.0) on Redhat Enterprise Linux Server 6.0 x86-64

Configuring a new enterprise manager system in Oracle Enterprise Manager Cloud Control 12c Release 3 on Redhat Enterprise Linux Server 6.0 x86-64 is another tedious task that needs some careful planning and neat execution. It is also a very time consuming process that will require your attention initially, but once you let the configuration process initiate, it will occur on its own and will allow you to get some relief too.

The process also requires many prerequisites such as creating an Oracle Management Repository database and then installing Oracle Enterprise Manager Cloud Control 12c Release 3, but the benefits of setting up the enterprise manager system in your data center are obviously surplus!

In my tutorial below, I will demonstrate to you how to configure a new enterprise manager system in Oracle Enterprise Manager Cloud Control 12c R3 on Redhat Enterprise Linux Server 6.0 x86-64.

Time Duration: 3 to 3.5 hours (3.25 hours on an average without prerequisites!)

The time duration with the prerequisites is around 5 to 6 hours.

Prerequisites:
1. Create an 11g R2 (11.2.0.3.0) Oracle Management Repository database for use with OEM Cloud Control 12c (12.1.0.3.0)
Refer to the following article for this -
http://dba-omkar.blogspot.com/2013/07/creating-11g-r2-112030-oracle.html
2. Install Oracle EM Cloud Control 12c Release 3 (12.1.0.3.0) on Redhat Enterprise Linux Server 6.0 x86-64
Refer to the following article for this -
http://dba-omkar.blogspot.com/2013/08/installing-oracle-enterprise-manager.html
3. Start the listener of the Oracle Management Repository database, and perform a 'startup' operation of the database.

Configuration Process:
Start the OEM CC 12c R3 installer by running the 'ConfigureGC.sh' script as done below -
[oracle@oem12c install]$sh /u02/app/oracle/middleware/oms12c/oms/sysman/install/ConfigureGC.sh
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 400 MB. Actual 3589 MB Passed
Checking swap space: must be greater than 150 MB. Actual 6143 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed

Note: The installer needs greater than 400 MB of temp space and 150 MB of swap space, and a monitor capable of displaying at least 256 colours, to start.

1. The first screen will present the possible installation types:

There are two installation types:
A. Create a new Enterprise Manager System: This option allows you to set up a new Enterprise Manager System.
B. Upgrade an existing Enterprise Manager System: This option allows you to upgrade an existing Enterprise Manager System using either a 'Two System Upgrade' or a 'One System Upgrade' approach. For more information on these approaches, kindly check out the following link:
http://docs.oracle.com/cd/E24628_01/upgrade.121/e22625/overview_upg_approaches.htm

Select 'Create a new Enterprise Manager System' and click 'Next'.

2. The next screen allows you to select the management plug-ins you wish to configure -

You can select and configure these plug-ins after configuring the Enterprise Manager System, so let us not select any additional plug-ins here as supposed to the ones that are already selected by default.

Click 'Next' to continue.

3. The next screen allows you to set up the WebLogic Server configuration details:

Kindly set up the required credentials, but do not alter the default path of the OMS Instance Base Location. Click 'Next' to continue.

4. The next screen allows you to set up the database connection details:

The following fields need to be filled/selected -
A. Database Host Name: It is the host name of the database server that holds the database that will be used as the Oracle Management Repository.
B. Port: It is the port number of the listener with which the database that will be used as the Oracle Management Repository is registered.
C. Service/SID: It is the service name/system identifier of the database that will be used as the Oracle Management Repository.
D. SYS Password: It is the password of the SYS user of the database that will be used as the Oracle Management Repository.
E. Deployment Size: It is used to size the Enterprise Manager System. For more information on this, kindly read through the following document: http://www.oracle.com/technetwork/oem/framework-infra/em12c-sizing-1590739.pdf

Let the Deployment Size be 'SMALL', and Click 'Next' to continue.

5. The next screen allows you to set up the enterprise manager configuration details:

Kindly set up the enterprise manager SYSMAN password and registration password. Do not alter the remain fields. Click 'Next' to continue.

6. The next screen presents the port configuration details:

Leave the default port values as they are and ensure that connections to these ports are allowed through the firewall. You can optionally disable the firewall by firing the 'chkconfig iptables off' command as the 'root' user.

Click 'Next' to continue.

7. The next screen lets you review the information you have provided and begin the installation process -

Copy, paste and save the information in a text file for future reference.

Click 'Configure' to install the new Enterprise Manager System.

8. The configuration assistants will configure the new Enterprise Manager System for you -

The process will progress very slowly, taking hours to complete ...


Go for a break, or you will get seriously bored looking at the screen ... !

9. The finish screen will be displayed once the configuration process has completed -

Copy, paste and save the details of this screen in a text file for future reference.

Click 'Close' to successfully complete the configuration process.

10. Now it is time to set up the OMS_HOME and AGENT_HOME environment variables and launch the OEM CC 12c R3 web application -

Edit the .bash_profile file in your home directory (i.e. in /home/oracle) and add the following lines:

OMS_HOME=/u02/app/oracle/middleware/oms12c/oms
AGENT_HOME=/u02/app/oracle/middleware/agent12c/agent_inst
ORACLE_SID=<SID-OF-OEM-REPOSITORY>
export OMS_HOME AGENT_HOME ORACLE_SID

Save and exit the file, and then logout and login into the system.

Launching the OEM CC 12c R3 web application:
Create a script called 'start' in the home directory of the 'oracle' user, as the 'oracle' user, and add the following lines to the script -

$OMS_HOME/bin/emctl stop oms -all
sleep 30
lsnrctl -s start
export ORACLE_SID=<SID-OF-OEM-REPOSITORY>
sqlplus -s "/ as sysdba" << EOF
startup
exit
EOF
sleep 60
$OMS_HOME/bin/emctl start oms
sleep 30
$AGENT_HOME/bin/emctl start agent

Save the changes and exit the file.

At the bash prompt, fire the './start' command to start OEM CC 12c R3 -
[oracle@oem12c ~]$ ./start
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 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
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 11-AUG-2013 14:54:09
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.3.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/oem12c/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oem12c.virtualmachine)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oem12c.virtualmachine)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date 11-AUG-2013 14:54:10
Uptime 0 days 0 hr. 0 min. 1 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/oem12c/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oem12c.virtualmachine)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully
ORACLE instance started.
Total System Global Area 2137886720 bytes
Fixed Size 2230072 bytes
Variable Size 989857992 bytes
Database Buffers 1140850688 bytes
Redo Buffers 4947968 bytes
Database mounted.
Database opened.
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 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 Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
Agent is already running
[oracle@oem12c ~]$

To launch the OEM CC 12c R3 login page, type the following URL in your browser -

https://ip-address:port-number/em (by default, the port number is 7803; ip-address is the IP v4 address of the machine on which OEM CC 12c R3 has been configured)


Enter the 'User Name' as 'sysman' and password as the one you had set up earlier for 'sysman' user, and click 'Login'.

The welcome screen will load -


Note: A disclaimer will be presented before the welcome screen actually loads. Kindly accept it.

Congratulations! You have successfully configured a new enterprise manager system in OEM CC 12c R3!

Hope you had a good time reading this article! :)

No comments:

Post a Comment