How to install Oracle Enterprise Manager Cloud Control 12c Release 4 on Oracle Linux


Enterprise Manager Cloud Control is the new name for what was previously know as Enterprise Manager Grid Control. Depending on the source of the material, you may still see the product described as Grid Control. This article describes the installation of Oracle Enterprise Manager Cloud Control 12c Release 4 on Oracle Linux 5.9 and 6.5. (x86_64).


Note. Oracle Database 12c is now a supported release for use as a management repository database. The steps described in this article will work for an 11.2.0.4 instance.
  • Software
  • OS Installation
  • Database Installation
  • Cloud Control 12c Installation
  • Startup/Shutdown 

 

Software

Download the following software:
Note. Previous versions of the database can be used to hold the repository, but anything earlier than 11.2.0.2 will require additional patches.

OS Installation

Install Oracle Linux (OL) 5.9 or 6.5 in the same way you would for a regular Oracle Database installation.
During this installation I used a virtual machine with 8G RAM and 100G disk space. The swap size was set at 8G, the firewall was disabled and SELinux was set to permissive.

Database Installation

Use one of the following database.
  • Oracle Database 11g Release 2 (11.2)
  • Oracle Database 11g Release 2 (11.2)

The installation documentation says the following packages are necessary for the cloud control installation. Since you have already performed the database installation, most of these prerequisites will already have been met.
# OL5 and OL6
yum install make -y
yum install binutils -y
yum install gcc -y
yum install libaio -y
yum install glibc-common -y
yum install libstdc++ -y
yum install libXtst -y
yum install sysstat -y
yum install glibc-devel -y
yum install glibc -y
yum install libaio -y

# OL5
yum install setarch -y
yum install rng-utils -y
yum install glibc-devel.i386 -y

# OL6
yum install glibc-devel.i686 -y
If you have performed a default 11g database installation you will need to deconfigure Enterprise Manager Database Control. Run the following command as the "oracle" user.
$ emca -deconfig dbcontrol db -repos drop -SYS_PWD  -SYSMAN_PWD 
Make the following initialization parameter changes and restart the instance.
sqlplus / AS SYSDBA

ALTER SYSTEM SET processes=300 SCOPE=SPFILE;
ALTER SYSTEM SET session_cached_cursors=200 SCOPE=SPFILE;
ALTER SYSTEM SET sga_target=2G SCOPE=SPFILE;
ALTER SYSTEM SET shared_pool_size=600M SCOPE=SPFILE;
ALTER SYSTEM SET pga_aggregate_target=1G SCOPE=SPFILE;
ALTER SYSTEM SET job_queue_processes=20 SCOPE=SPFILE;

-- May be required if using older versions of DB.
--ALTER SYSTEM SET log_buffer=10485760 SCOPE=SPFILE;
--ALTER SYSTEM SET open_cursors=300 SCOPE=SPFILE;

-- Restart the instance.
SHUTDOWN IMMEDIATE
STARTUP
If you have done a default installation as described here, the UNDO tablespace will be autoextensible. If you have done a custom installation make sure the UNDO tablespace is at least 200M in size. Also, make sure you have 3 redo logs of at least 300M to prevent a warning during the installation.

Edit the "/etc/security/limits.conf" file, increasing the following entry to 4096 if it is less than that. You will need to reboot after this.
oracle   soft   nofile    4096
The database installation is now complete.

 



Cloud Control 12c Installation


Make the following directories to hold the management server and agent.
$ mkdir -p /u01/app/oracle/oms12cr4
$ mkdir -p /u01/app/oracle/agent12cr4
Unzip the Cloud Control media, the start the installation by running the "runInstller" script.
$ mkdir em12cr4
$ unzip -d em12cr4 em12104_linux64_disk1.zip
$ unzip -d em12cr4 em12104_linux64_disk2.zip
$ unzip -d em12cr4 em12104_linux64_disk3.zip
$ cd em12cr4

$ ./runInstaller
If you wish to receive support information, enter the required details, or uncheck the security updates checkbox and click the "Next" button. Click the "Yes" button the subsequent warning dialog.


If you wish to check for updates, enter the required details, or check the "Skip" option and click the "Next" button.


If you have performed the prerequisites as described, the installation should pass all prerequisite checks. Click the "Next" button.


Select the "Create a new Enterprise Manager System" and "Simple" options, then click the "Next" button.


Enter the middleware and agent locations, then click the "Next" button.



Enter the administrator password and database repository details, then click the "Next" button.


On the first warning dialog, click the "Yes" button.


If you have any additional warnings, check they don't look like show-stoppers, then click the "OK" button to continue. If you are happy with the review information, click the "Install" button.


Wait while the installation and configuration take place.


When prompted, run the root scripts, then click the "OK" button.


Make note of the URLs, then click the "Close" button to exit the installer. A copy of this information is available in the "/u01/app/oracle/Middleware/oms/install/setupinfo.txt" file.


The login screen is available from a browser using the URL provided in the previous screen ("https://yourdbhost:7802/em"). Log in with the username "sysman" and the password you specified during your installation.



This is "Accessibility Preference" screen. Click the "Save and Continue" button and you are presented with the the "License Agreement" screen. Click the "I Accept" button and you are presented with the homepage selector screen. On the right side of the screen it lists the post-installation setup tasks you need to work through, which i have mentioned  at the end of this documented. Select the desired homepage (I chose Summary).


On next "License Agreement" screen, Click the "I Accept" button and you are presented with the homepage selector screen.

You are presented with the selected screen as the console homepage.


Startup/Shutdown

Use the following commands to turn on all components installed by this article.
#!/bin/bash
export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/db_1
export OMS_HOME=/u01/app/oracle/oms12cr4/oms
export AGENT_HOME=/u01/app/oracle/agent12cr4/core/12.1.0.4.0

# Start everything
$ORACLE_HOME/bin/dbstart $ORACLE_HOME

$OMS_HOME/bin/emctl start oms

$AGENT_HOME/bin/emctl start agent
Use the following commands to turn off all components installed by this article.
#!/bin/bash
export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/db_1
export OMS_HOME=/u01/app/oracle/oms12cr4/oms
export AGENT_HOME=/u01/app/oracle/agent12cr4/core/12.1.0.4.0

# Stop everything
$OMS_HOME/bin/emctl stop oms -all

$AGENT_HOME/bin/emctl stop agent

$ORACLE_HOME/bin/dbshut $ORACLE_HOME

Oracle Enterprise Manager Cloud Control 12c Post-Installation Setup Tasks

  • Setup Software Library
  • Set My Oracle Support (MOS) Credentials
  • Download Additional Agents
  • Install an Agent on a Target Host
  • Discover Targets on Host
  • Add Administrator Users
  • Notifications
 

Setup Software Library

  • Create a directory to use as the software library.
    $ mkdir -p /u01/app/oracle/oms12cr2/software_library
  • Navigate to the "Software Library: Administration" screen using the menu at the top-right of the screen (Setup > Provisioning and Patching > Software Library).
  • Select the storage type of "OMS Agent Filesystem".
  • Click the "Add +" button.
  • Enter a name and use the lookup buttons to select the local agent and location on the file system for the software library. Once you've selected the appropriate values, click the "OK" button.
  • The software library is now configured.

Set My Oracle Support (MOS) Credentials

  • Navigate to the "My Oracle Support Preferred Credentials" screen using the menu at the top-right of the screen (Setup > My Oracle Support > Set Credentials...).
  • Enter the credentials and click the "Apply" button.

Download Additional Agents

  • Navigate to the "Self Update" screen using the menu at the top-right of the screen (Setup > Extensibility > Self Update).
  • Click on the "Check Updates" button and "OK" on the subsequent message dialog.
  • Click on the "Agent Software" link.
  • Highlight the agent of interest and click the "Download" button. Select the download schedule and click the "Select" button. Click the "OK" button on the confirmation dialog.
  • Click the refresh button on the top-right of the screen until the download is complete and the status changes to "Downloaded".
  • Highlight the newly downloaded software and click the "Apply" button, followed by the "OK" button on the two following message dialogs.
  • When the status changes to "Applied", the agent software is ready for installation on a target.

Install an Agent on a Target Host

  • Navigate to the "Add Targets Manually" screen using the menu at the top-right of the screen (Setup > Add Target > Add Targets Manually).
  • Accept the "Add Host Targets" option by clicking the "Add Host..." button.
  • Click the "Add +" button.
  • Enter the host and platform, then click the "Next" button.
  • Enter the installation details and click the "Next" button.
     
    Installation Base Directory  : /u01/app/oracle/agent12cr2
    Instance Directory           : /u01/app/oracle/agent12cr2/agent_inst (default)
    Named Credential  : (click the "+" button and add the credentials of the "oracle" user)
    Privileged Delegation Setting: (leave blank)
    Port                         : 3872
     
    If you are installing the agent on a HP Service Guard package, 
    remember to set the "Additional Parameters" to point at the 
    package-specific inventory location and override the machine name with 
    the package name. For example.
     
    INVENTORY_LOCATION=/u07/app/oraInventory ORACLE_HOSTNAME=my-package.example.com
     
  • Check the information on the review screen and click the "Deploy Agent" button.
  • Wait while the installation takes place. The "Add Host Status" page refreshes every 30 seconds.
  • When the installation completes, run the specified "root.sh" script and click the "Done" button.
  • The host will now be visible on the "Targets > Hosts" screen.

Discover Targets on Host

  • Navigate to the "Add Targets Manually" screen using the menu at the top-right of the screen (Setup > Add Target > Add Targets Manually).
  • Select the "Add Non-Host Targets Using Guided Process (Also Adds Related Targets)" option, select the target types to be discovered (eg. Oracle Database, Listener and Automatic Storage Manager) and click the "Add Using guided Discovery..." button.
  • Enter the host name and click the "Continue" button.
  • Click the "Configure" icon for any discovered targets and enter the required details. If you are using HP Service Guard, remember to only select and configure targets belonging to the package. By default, the agent will discover all targets on the physical machine.
  • When all the configuration steps are complete, click the "Finish" button, followed by the "Save" button, then finally the "OK" button.
  • The targets will now be listed on the relevant target screen (Targets > Databases).

Add Administrator Users

  • Navigate to the "Administrators" screen using the menu at the top-right of the screen (Setup > Security > Administrators).
  • Click the "Create" button.
  • Enter the username/password details and check the "Super Administrator" checkbox, then click the "Review" button.
  • Click the "Finish" button.

Notifications

Setup and maintenance of notifications has changed considerably in Cloud Control 12c compared to previous versions of Grid Control. There are several areas to consider when configuring and diagnosing notification issues.
  • Make sure the SMTP server is registered in the "Setup > Notifications > Notification Methods" screen.
  • Check the "Setup > Incidents > Incident Rules" screen. Make sure the relevant incident rules are enabled. Create any new rules you need.
  • Subscribe to any rules you want to be notified about. To do this, highlight the rule, then do "Actions > Email > Subscribe Me".
  • Make sure your email is setup in the "Enterprise Manager Password & Email" screen, from the menu below your username on the top right of the screen.

No comments:

Powered by Blogger.