Thursday, 2 November 2017

Oracle Enterprise Manager Cloud Control 12c Release 5 Installation on Oracle Linux 5.11 and 6.6 Part - 2

◉ Cloud Control 12c Installation


Make the following directories to hold the management server and agent.

$ mkdir -p /u01/app/oracle/oms12cr5
$ mkdir -p /u01/app/oracle/agent12c

Unzip the Cloud Control media, the start the installation by running the "runInstaller" script.

$ mkdir em12cr5
$ unzip -d em12cr5 em12105_linux64_disk1.zip
$ unzip -d em12cr5 em12105_linux64_disk2.zip
$ unzip -d em12cr5 em12105_linux64_disk3.zip
$ cd em12cr5

$ ./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.

Oracle Database Ttutorial, Material and Certification, Oracle Database 12c

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

Oracle Database Ttutorial, Material and Certification, Oracle Database 12c

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

Oracle Database Ttutorial, Material and Certification, Oracle Database 12c

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

Oracle Database Ttutorial, Material and Certification, Oracle Database 12c

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

Oracle Database Ttutorial, Material and Certification, Oracle Database 12c

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

Oracle Database Ttutorial, Material and Certification, Oracle Database 12c

If you are happy with the review information, click the "Install" button.

Oracle Database Ttutorial, Material and Certification, Oracle Database 12c

Wait while the installation and configuration take place. Notice the "Repository Out Of Box Configuration" step. If we had not used the database template, this would read "Repository Configuration" and the contents of the repository would be created from scratch.

Oracle Database Ttutorial, Material and Certification, Oracle Database 12c

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

Oracle Database Ttutorial, Material and Certification, Oracle Database 12c

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/oms12cr5/oms/install/setupinfo.txt" file.

Oracle Database Ttutorial, Material and Certification, Oracle Database 12c

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

Oracle Database Ttutorial, Material and Certification, Oracle Database 12c

Once logged in, you are presented with a with the "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.

Oracle Database Ttutorial, Material and Certification, Oracle Database 12c

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

Oracle Database Ttutorial, Material and Certification, Oracle Database 12c

◉ Startup/Shutdown


Cloud Control is set to auto-start using the "gcstartup" service. The "/etc/oragchomelist" file contains the items that will be started by the system.

/u01/app/oracle/oms12cr5/oms

/u01/app/oracle/agent12c/core/12.1.0.5.0:/u01/app/oracle/agent12c/agent_inst

On a simple installation the default auto-start will cause a problem as Cloud Control will attempt to start before the database has started. The service can be disabled by commenting out (using #) all the contents of the "/etc/oragchomelist" file to prevent the auto-start and use start/stop scripts described below.

If the start/stop needs to be automated, you can do it in the usual way using Linux service that calls your start/stop scripts that include the database management.

Use the following commands to turn on all components installed by this article.

#!/bin/bash
export ORACLE_HOME=/u01/app/oracle/product/12.1.0.2/db_1
export OMS_HOME=/u01/app/oracle/oms12cr5/oms
export AGENT_HOME=/u01/app/oracle/agent12c/agent_inst

# 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/12.1.0.2/db_1
export OMS_HOME=/u01/app/oracle/oms12cr5/oms
export AGENT_HOME=/u01/app/oracle/agent12c/agent_inst

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

$AGENT_HOME/bin/emctl stop agent

$ORACLE_HOME/bin/dbshut $ORACLE_HOME