Wednesday, March 25, 2015

How to Install Oracle 12c Enterprise Manager cloud control on Linux


Oracle 12c Enterprise Manager cloud control Software Installer Download

Oracle 12c Enterprise Manager cloud control Software can be download the below Link
http://www.oracle.com/technetwork/oem/grid-control/downloads/index.html
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.
  1. http://docs.oracle.com/cd/E24628_01/install.121/e22624/toc.htm
  2. http://oracle-base.com/articles/12c/cloud-control-12cr4-installation-on-oracle-linux-5-and-6.php

Environment Details

1. Operating System Version : Oracle Linux 6.4 (64 Bit)
2. Database Version : Oracle Database 11.2.0.3 (64 Bit)
3. Enterprise Manager version :Oracle Enterprise Manager Cloud Control 12c Release 4 (12.1.0.4)
4. RAM : 8 GB
5. HDD : 100 GB.

Configuration Details

1. IP Address : 192.168.0.15
2. Hostname : oracledb2.spectrum-bd.com
3. Oracle SID : orcl
4. Oracle Base : /u01/app/oracle
5. Oracle Home : /u01/app/oracle/product/11.2.0/db_1
6. Middleware Home Location: /u01/app/oracle/oms12cr4
7. Agent Base Directory: /u01/app/oracle/agent12cr4
8. Software Installer Location : /u01/software

Required Tools

1. Putty : For connecting to server using remote terminal
2. File Zilla: For transfer any file from local machine to server.
3. VNC viewer: For GUI access from local machine.

Required Tools Installation and Database Software Upload

  1. Install all necessary tools.
  2. Connect to the server as a root user by using putty.
  3. Create a directory which named ‘software’ in u01 location.
  4. Transfer oracle em12cr4 to software from local machine to server by using filezilla.

Database Installation Prerequisites

Database Installation: If you don't have a installed Database.Then Use one of the following link to install the 11.2.0.3 or 11.1.0.2 database.
If you already have a database then start form here....

Step :01

The installation documentation says the following packages are necessary for the cloud control installation.
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
yum install glibc-devel.i686 -y

Step: 02

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 <sys pasword> -SYSMAN_PWD <sysman password>

Step: 03

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
Note: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.

Step: 04

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

Step: 05

Make the following directories to hold the management server and agent.
$ mkdir -p /u01/app/oracle/oms12cr4
$ mkdir -p /u01/app/oracle/agent12cr4

Step: 06

[root@oracledb2~]# xhost  +

Step: 07

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

Starting Installation with GUI wizard

After executing runinstaller command, it will show below lines:
Checking Temp space: must be greater than 120 MB.   Actual 40875 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 7903 MB    Passed
Checking monitor: must be configured to display at least 256 colors  passed   
'''Some requirement checks failed. You must fulfill these requirements before
continuing with the installation.'''
Continue? (y/n) [n]
Write:''' y'''
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.
source:Shelf/Wiki/OracleEM12c/01-em12cr4-my-oracle-support-details.PNG
If you wish to check for updates, enter the required details, or check the "Skip" option and click the "Next" button.
source:Shelf/Wiki/OracleEM12c/02-em12cr4-software-updates.PNG
If you have performed the prerequisites as described, the installation should pass all prerequisite checks. Click the "Next" button.
source:Shelf/Wiki/OracleEM12c/03-em12cr4-prerequisite-checks.PNG
Select the "Create a new Enterprise Manager System" and "Simple" options, then click the "Next" button.
source:Shelf/Wiki/OracleEM12c/04-em12cr4-install-types.PNG
Enter the middleware and agent locations, then click the "Next" button.
source:Shelf/Wiki/OracleEM12c/05-em12cr4-installation-details.PNG
Enter the administrator password and database repository details, then click the "Next" button.
source:Shelf/Wiki/OracleEM12c/06-em12cr4-configuration-details.PNGOn the first warning dialog, click the "Yes" button.
source:Shelf/Wiki/OracleEM12c/07-em12cr4-repository-warning1.PNG
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.
source:Shelf/Wiki/OracleEM12c/08-em12cr4-review.PNG
Wait while the installation and configuration take place.
source:Shelf/Wiki/OracleEM12c/09-em12cr4-installation-progress-details.PNG
When prompted, run the root scripts, then click the "OK" button.
source:Shelf/Wiki/OracleEM12c/10-em12cr4-root-scripts.PNG
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/oms12cr4/oms/install/setupinfo.txt" file.
source:Shelf/Wiki/OracleEM12c/11-em12cr4-finish.PNG
The login screen is available from a browser using the URL provided in the previous screen ("https://oracledb02.spectrum-bd.com:7802/em"). Log in with the username "sysman" and the password you specified during your installation.
source:Shelf/Wiki/OracleEM12c/12-em12cr4-login.PNG
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.Select the desired homepage (I chose Summary).
source:Shelf/Wiki/OracleEM12c/13-em12cr4-homepage-selector.PNGYou are presented with the selected screen as the console homepage.
source:Shelf/Wiki/OracleEM12c/14-em12cr4-console.png

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

No comments:

Post a Comment