Top Banner
Installation Document Made by: Muhammad Uzair Zahid
20

Oracle12C EM Installation Document

Nov 24, 2015

Download

Documents

muzairzahid

This Document describe how to install Oracle 12c Enterprise Manager
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • Installation Document Made by: Muhammad Uzair Zahid

  • List Of Contents

    Hardware Requirements

    Installation Steps

    Startup/Shutdown Process

    Configuring Server Host in Oracle EM 12c

    Configuration Host Database

    Agent Deployment

    Configure and Add Target Host

    Configuring Target Database

  • Hardware Requirements

    At least 6GB RAM and Hard Disk 50 GB

    Installation Steps

    Install Oracle Enterprise Linux 5.* or 6.* Install Oracle Database 11g R2 After installing Oracle Linux & Database, install additional RPM

    # OL 5.x and 6.x Rpm Uvh make-3* Rpm Uvh binutils-2* Rpm Uvh gcc-4* Rpm Uvh libaio-0* Rpm Uvh glibc-common-2* Rpm Uvh libstdc++-4* Rpm Uvh sysstat-* Rpm Uvh glibc-devel

    # OL 6.x only Rpm Uvh glibc-devel.i686

    # OL 5.x only Rpm Uvh glibc-devel.i686 Rpm Uvh setarch Rpm Uvh rng-utils-2* Rpm Uvh libXtst-1* Rpm Uvh xorg-x11-utils

    After the database installation, 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

    For Cloud Control 12c Installation, make the following directories

    # mkdir -p /u/app/oracle/oms12cr2 # mkdir -p /u/app/oracle/agent12cr2

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

    # mkdir em12cr2 # unzip -d em12cr2 em12cr2_linux64_disk1.zip #unzip -d em12cr2 em12cr2_linux64_disk2.zip # unzip -d em12cr2 em12cr2_linux64_disk3.zip # cd em12cr2 # ./runInstaller

  • After executing ./runInstaller command, Installation screen will occur write your email address or click next to proceed further

    Click on Skip and then Click on next button

  • Succeeded status show all the prerequisite checks are accurate, click next to proceed

    Select create a new EM and simple

  • Write hostname, directory location

    Write the administrator password and database connection details

  • Click yes on disable the stats gathering job

    View the installation review and click next

  • After viewing the installation process, now installation is going on

    In between the installation a popup screen will appear in which you will ask to run configuration script

  • After completing the installation, final screen will appear showing the url of 12c enterprise manager console

    logon to the url of 12c EM, login with sysman username & password

  • Startup/Shutdown Process

    After installing Oracle 12c EM use the following commands for startup process # export ORACLE_HOME=/u/app/oracle/product/11.2.0/db_1 # export OMS_HOME=/u/app/oracle/oms12cr2/oms # export AGENT_HOME=/u/app/oracle/agent12cr2/core/12.1.0.2.0 # $ORACLE_HOME/bin/dbstart $ORACLE_HOME # $OMS_HOME/bin/emctl start oms # $AGENT_HOME/bin/emctl start agent

    Use the following Commands to shutdown process

    # export ORACLE_HOME=/u/app/oracle/product/11.2.0/db_1 # export OMS_HOME=/u/app/oracle/oms12cr2/oms # export AGENT_HOME=/u/app/oracle/agent12cr2/core/12.1.0.2.0 # $OMS_HOME/bin/emctl stop oms -all # $AGENT_HOME/bin/emctl stop agent # $ORACLE_HOME/bin/dbshut $ORACLE_HOME

  • Configuring Server Host in Oracle EM 12c

    Enterprise Configuration Refresh Host Configuration

    Select Server Hostname and click refresh host

    Click in confirmation

  • Configuration Host Database

    Steps are same as Configuring Target Database

    Agent Deployment

    Add the host name of target machine in server machine in etc/hosts file

    Add the host name of server machine in target machine in etc/hosts file

    Add the Oracle user in target machine in /etc/sudoers file

    Remark default requiretty option in /etc/sudoers file

    Visiblepw option is set in the /etc/sudoers file

    Give chmod 440 permission to /etc/sudoers

    Give chomod 4775 permission to /usr/bin/sudo

    Reboot the target machine

    Go to server machine and and edit the /u1/app/oracle/oms12cr2/oms/sysman/prov/agentpush.properties file and set the value of oracle.sysmanprov.agentpush.enablePty to true

    Now login to EM 12c https://132.147.157.41:7803/em and connect with sysman user

  • Configure and Add Target Host

    Go to setup Add targets Add targets manually

    Select Add Host Targets and click on Add Host

  • Click add, enter the host name and choose platform and then click next

    Make a directory named agent in u drive

    Enter directory details in installation details, then click next

    Review the details and click deploy agent

  • If you see agent deployment succeeded click done

    Go to target select hosts

  • Select the host configure ok

    Select the host add ok

  • Configuring Target Database

    Go to target select databases

    In databases screen select search list

    Click add

  • Enter the target host name and continue

    Write the monitor password and click next

    Click save to save the database information

  • Click ok in target configuration results

    Target Databases , all the databases are attached