Você está na página 1de 25

ORACLE ENTERPRISE MANAGER GRID CONTROL 11GR1 (11.1.0.

1) INSTALL GUIDE
Version 1.1
July 2010

Contents
ORACLE ENTERPRISE MANAGER GRID CONTROL 11GR1 (11.1.0.1) INSTALL GUIDE ........................................................................ 1
Overview ................................................................................................................................................................................. 2
References .............................................................................................................................................................................. 2
Prepare the Oracle User Account ........................................................................................................................................... 2
Installing WebLogic Server 10.3.2.0 ........................................................................................................................................ 2
Download and Install Java SE Development Kit .................................................................................................................. 3
Download and Install WebLogic 10.3.2.0............................................................................................................................ 4
Download and Apply Patches to WebLogic 10.3.2.0 ........................................................................................................ 10
Create EM Grid Repository Database ................................................................................................................................... 12
EM Grid Control Installation ................................................................................................................................................. 13
Performing a Quick System Test ........................................................................................................................................... 24

DISCLAIMER

Hopefully you will find this document useful, but use it your
own risk. There are no warranties expressed or implied.

Prepared by Joe Johnson, OCP


joe.johnson@yahoo.com
http://disquisitivedba.wordpress.com

Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 1
Overview
This document shows a complete installation of Oracle Enterprise Manager Grid Control version 11.1.0.1 (EM Grid) on
64-bit RHEL 5.4 using an existing Oracle 11.2.0.1 repository database.

References
The following important documents were reviewed when preparing this install guide:

• Oracle® Enterprise Manager Grid Control Basic Installation Guide 11g Release 1 (11.1.0.1.0), Part Number
E15838-04.
• Oracle® Enterprise Manager Grid Control Advanced Installation and Configuration Guide 11g Release 1
(11.1.0.1.0), Part Number E16847-05.
• My Oracle Support Note 412431.1: Grid Control Certification Matrix.
• My Oracle Support Note 1063762.1: How to Install Web Logic Server 10.3.2 for Installing 11g Grid Control.
• My Oracle Support Note 1063587.1: Grid Control 11g: Example jdk1.6 on Linux x86_64 Install for Weblogic
Server Grid Control 11g jdk setup for WLS installation.
• Oracle® Fusion Middleware Installation Guide for Oracle WebLogic Server 11g Release 1 (10.3.1),
Part Number E14142-01.
• My Oracle Support Note 1072763.1: How to apply recommended WLS patches on WLS home for 11g Grid Control
Install/Upgrade .
• Oracle® Smart Update Installing Patches and Maintenance Packs Release 3.2, Part Number E14143-05.
• My Oracle Support Note 412.431.1: Oracle Enterprise Manager Grid Control Certification Checker.

I strongly recommend downloading and reviewing all of the above documents before starting your EM Grid installation.

Prepare the Oracle User Account


I've encountered problems with previous EM Grid installations whenever the oracle OS account has references to any
existing ORACLE_HOMEs, PATHs, etc. Therefore, I recommend starting your EM Grid installation session with a clean
environment:

• Undefine ORACLE_HOME variable


• Undefine ORACLE_BASE variable
• Remove any references to ORACLE_HOME s from your PATH
• Set the umask to 022

Installing WebLogic Server 10.3.2.0


The installation of WebLogic on a 64-bit Linux server consists of three steps:

• Download and installation of the Java SE Development Kit 6u20 for Linux x64
• Download and installation of the WebLogic 10.3.2.0 software for 64-bit Linux
• Download and apply patches for WebLogic 10.3.2.0

Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 2
Download and Install Java SE Development Kit
The Java SE Development Kit 6u20 for Linux x64 is required in order to install WebLogic 10.3.2 on a 64-bit Linux server.
You can download the Java SE Development Kit 6u20 for Linux x64 here:

http://java.sun.com/javase/downloads/widget/jdk6.jsp

Once downloaded, I staged the jdk-6u20-linux-x64.bin file on the server that was going to host the EM Grid
infrastructure, and then installed the JDK while signed in as the OS user oracle:

$ cd /u000/app

$ mkdir JDK

$ cd JDK

$ cp /stage/oracle/emgrid/linux_64/11g/JDK/jdk-6u20-linux-x64.bin .
Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 3
$ chmod u+x jdk-6u20-linux-x64.bin

$ ./jdk-6u20-linux-x64.bin
Sun Microsystems, Inc. Binary Code License Agreement
for the JAVA SE DEVELOPMENT KIT (JDK), VERSION 6

<snip>

Do you agree to the above license terms? [yes or no]


yes
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).

<snip>

For more information on what data Registration collects and


how it is managed and used, see:
http://java.sun.com/javase/registration/JDKRegistrationPrivacy.html
Press Enter to continue.....

Done.

Complete instructions on how to install the JDK can be found here:

http://java.sun.com/javase/6/webnotes/install/jdk/install-linux-64-self-extracting.html

https://support.oracle.com/oip/faces/secure/km/DownloadAttachment.jspx?

Download and Install WebLogic 10.3.2.0


Now that the necessary Java components are installed, I can install the WebLogic binaries. The WebLogic binaries can be
downloaded here:

http://www.oracle.com/technology/software/products/ias/htdocs/wls_main.html

Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 4
Notes:

• Download the 10.3.2 version of WebLogic, not the newer version 10.3.3. This is specified in the documentation.
• Download the version under the "Additional Platforms" column and not the Linux 32-bit JVM.

Once downloaded, I staged the wls1032_generic.jar file on the server that was going to host the EM Grid infrastructure,
and then installed WebLogic while logged on as the OS user oracle. Notice that we are using the java executable that
was installed by the JDK in the previous section:

$ JAVA_HOME=/u000/app/JDK/jdk1.6.0_20/; export JAVA_HOME

$ PATH=$JAVA_HOME/bin:$PATH; export PATH

$ cd /stage/oracle/emgrid/linux_64/11g/weblogic_1032

$ java -Djava.io.tmpdir=/ora_tmp -d64 -jar wls1032_generic.jar

Extracting 0%...............................................................................100%

Note: Installing from the .jar file requires that you have 1GB of free temp space. Using the Djava.io.tmpdir option allows
you to redirect /tmp to a different temp location if desired.

Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 5
Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 6
Note: The documentation indicates in several places that you MUST do a typical install, not custom.

Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 7
Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 8
Note: Uncheck the Quickstart box before clicking Done.

Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 9
Download and Apply Patches to WebLogic 10.3.2.0
After installing WebLogic 10.3.2.0 the patches for bugs 8990616, 9100465, and 9221722 must be applied prior to
installing EM Grid Control. WebLogic patches are applied using the Smart Update Tool found in the
$BEA_HOME/utils/bsu directory:

$ cd /u000/app/oracle/middleware/utils/bsu

$ ./bsu.sh

The updated client will quickly download, install, and re-launch the Smart Update Tool, which will then prompt you for
your My Oracle Support login credentials:

Since this was my first experience with Smart Update, I was disappointed to find that the Smart Update utility expects
and relies on a connection to the Internet in order to obtain patches. Since my server is NOT on the Internet, I cannot
use the Smart Update utility to apply the required patches. In this situation, you apparently must open an SR with
Oracle Support and request the patches - they cannot be downloaded from the regular My Oracle Support patch
download area.

Therefore, I opened an SR requesting the patch and was given a WDJ7.zip file which I staged on my server before
performing the following steps to apply the patches:

$ cd /stage/oracle/emgrid/linux_64/11g/weblogic_1032

$ unzip WDJ7.zip
Archive: WDJ7.zip
WDJ7\4D53.jar: mismatching "local" filename (WDJ7/4D53.jar),
continuing with "central" filename version

Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 10
warning: WDJ7.zip appears to use backslashes as path separators
inflating: WDJ7/4D53.jar
WDJ7\NIXN.jar: mismatching "local" filename (WDJ7/NIXN.jar),
continuing with "central" filename version
inflating: WDJ7/NIXN.jar
WDJ7\patch-catalog.xml: mismatching "local" filename (WDJ7/patch-catalog.xml),
continuing with "central" filename version
inflating: WDJ7/patch-catalog.xml
WDJ7\prod-info.xml: mismatching "local" filename (WDJ7/prod-info.xml),
continuing with "central" filename version
inflating: WDJ7/prod-info.xml
WDJ7\WDJ7.jar: mismatching "local" filename (WDJ7/WDJ7.jar),
continuing with "central" filename version
inflating: WDJ7/WDJ7.jar
WDJ7\XLXA.jar: mismatching "local" filename (WDJ7/XLXA.jar),
continuing with "central" filename version
inflating: WDJ7/XLXA.jar

$ cd /u000/app/oracle/middleware/utils/bsu

$ ./bsu.sh -prod_dir=/u000/app/oracle/middleware/wlserver_10.3 -patchlist=WDJ7 -verbose -


install -patch_download_dir=/stage/oracle/emgrid/linux_64/11g/weblogic_1032/WDJ7

Checking for conflicts..


No conflict(s) detected

Installing Patch Set ID: WDJ7

Starting installation of Patch ID: XLXA


Installing /u000/app/oracle/middleware/utils/bsu/cache_dir/XLXA.jar
Extracting /u000/app/oracle/middleware/patch_wls1032/patch_jars/Bug9221722_1032.jar
Updating
/u000/app/oracle/middleware/patch_wls1032/profiles/default/sys_manifest_classpath/weblogic_pa
tch.jar
Old manifest value: Class-Path=
New manifest value: Class-Path=../../../patch_jars/Bug9221722_1032.jar
Result: Success

Starting installation of Patch ID: 4D53


Installing /u000/app/oracle/middleware/utils/bsu/cache_dir/4D53.jar
Extracting /u000/app/oracle/middleware/patch_wls1032/patch_jars/Bug9100465_1032.jar
Updating
/u000/app/oracle/middleware/patch_wls1032/profiles/default/sys_manifest_classpath/weblogic_pa
tch.jar
Old manifest value: Class-Path=../../../patch_jars/Bug9221722_1032.jar
New manifest value: Class-Path=../../../patch_jars/Bug9100465_1032.jar Result: Success

Starting installation of Patch ID: NIXN


Installing /u000/app/oracle/middleware/utils/bsu/cache_dir/NIXN.jar
Extracting /u000/app/oracle/middleware/patch_wls1032/patch_jars/bug8990616_1032.jar
Updating
/u000/app/oracle/middleware/patch_wls1032/profiles/default/sys_manifest_classpath/weblogic_pa
tch.jar
Old manifest value: Class-Path=../../../patch_jars/Bug9100465_1032.jar
../../../patch_jars/Bug9221722_1032.jar
New manifest value: Class-Path=../../../patch_jars/bug8990616_1032.jar
../../../patch_jars/Bug9100465_1032.jar ../../../patch_jars/Bug9221722_1032.jar
Result: Success

$ ./bsu.sh -view -status=applied -prod_dir=/u000/app/oracle/middleware/wlserver/10.3

ProductName: WebLogic Server


ProductVersion: 10.3 MP2
Components: WebLogic Server/Core Application Server,WebLogic Server/Admi
nistration Console,WebLogic Server/Configuration Wizard and
Upgrade Framework,WebLogic Server/Web 2.0 HTTP Pub-Sub Serve

Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 11
r,WebLogic Server/WebLogic SCA,WebLogic Server/WebLogic JDBC
Drivers,WebLogic Server/Third Party JDBC Drivers,WebLogic S
erver/WebLogic Server Clients,WebLogic Server/WebLogic Web S
erver Plugins,WebLogic Server/UDDI and Xquery Support,WebLog
ic Server/Workshop Code Completion Support
BEAHome: /u000/app/oracle/middleware
ProductHome: /u000/app/oracle/middleware/wlserver/10.3
PatchSystemDir: /u000/app/oracle/middleware/utils/bsu
PatchDir: /u000/app/oracle/middleware/patch_wls1032
Profile: Default
DownloadDir: /u000/app/oracle/middleware/utils/bsu/cache_dir
JavaVersion: 1.6.0_14
JavaVendor: Sun

Patch Set ID: WDJ7 (9438213)


Patch ID: XLXA (9221722)
Patch ID: 4D53 (9100465)
Patch ID: NIXN (BUG8990616)

Create EM Grid Repository Database


I used an existing 11.2.0.1 database called EMG2U for my repository. This database had the following installed options:

SQL> select comp_name, version, status from dba_registry;

COMP_NAME VERSION STATUS


--------------------------------------------- --------------- ---------------
Oracle Multimedia 11.2.0.1.0 VALID
Oracle XML Database 11.2.0.1.0 VALID
Oracle Expression Filter 11.2.0.1.0 VALID
Oracle Rules Manager 11.2.0.1.0 VALID
Oracle Database Catalog Views 11.2.0.1.0 VALID
Oracle Database Packages and Types 11.2.0.1.0 VALID
JServer JAVA Virtual Machine 11.2.0.1.0 VALID
Oracle XDK 11.2.0.1.0 VALID
Oracle Database Java Packages 11.2.0.1.0 VALID

My database used these non-default init.ora parameters:

compatible='11.2.0.1'
control_files='/u100/oradata/EMG2U/control01.ctl','/u101/oradata/EMG2U/control02.ctl'
db_block_size=8192
db_files=512
db_domain=''
db_name=EMG2U
db_recovery_file_dest_size=5G
db_recovery_file_dest=''
dispatchers='(PROTOCOL=TCP) (SERVICE=EMG2UXDB)'
diagnostic_dest=/u000/app/oracle
disk_asynch_io = FALSE
java_pool_size=128M
job_queue_processes=10
log_archive_dest_1='LOCATION=/u199/ora_arch/EMG2U'
log_archive_format='EMG2U_%r_%t_%s.arc'
log_buffer=10485760
open_cursors=500
os_authent_prefix='ops$'
pga_aggregate_target=100M
processes=500
remote_login_passwordfile='exclusive'
sga_target=850M
session_cached_cursors=200
streams_pool_size=50M

Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 12
undo_management='AUTO'
undo_retention=3600
undo_tablespace='UNDOTBS'

EM Grid Control Installation


Now that the WebLogic and repository database portions of the EM Grid technology stack are in place, I downloaded,
and then installed the EM Grid Control components. I downloaded the EM Grid binaries from TechNet using this link:

http://www.oracle.com/technology/software/products/oem/index.html

Once downloaded, I unzipped and staged the files on the server that was going to host the EM Grid infrastructure, and
then installed EM Grid while signed in as the OS user oracle:

$ cd /stage/oracle/emgrid/linux_64/11g/11101_emgrid

$ ./runInstaller

Starting Oracle Universal Installer...

Checking Temp space: must be greater than 150 MB. Actual 8510 MB Passed
Checking swap space: must be greater than 150 MB. Actual 806 MB Passed
Checking monitor: must be configured to display at least 256 colors
>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo.
Check if the DISPLAY variable is set. Failed <<<<

Some requirement checks failed. You must fulfill these requirements before

continuing with the installation,

Continue? (y/n) [n] y


>>> Ignoring required pre-requisite failures. Continuing...

Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 13
Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 14
Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 15
Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 16
These passwords
are actually being
established here
based on your
responses, so make
note of them!

linux01.mydomain.com

Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 17
This password is
actually being
established here
based on your
responses, so make
note of them!

This password is
actually being
established here
based on your
responses, so make
note of your
responses!

Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 18
Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 19
Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 20
# cd /u000/app/oracle/middleware/oms11g/
# ./allroot.sh

Starting to execute allroot.sh .........

Starting to execute /u101/app/oracle/middleware/oms11g/root.sh ......


Running Oracle 11g root.sh script...

The following environment variables are set as:


ORACLE_OWNER= oracle
ORACLE_HOME= /u101/app/oracle/middleware/oms11g

Enter the full pathname of the local bin directory: [/usr/local/bin]:


The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: n
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: n
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: n

Entries will be added to the /etc/oratab file as needed by


Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Adding entry to /etc/oratab file...
Finished execution of /u101/app/oracle/middleware/oms11g/root.sh ......

Starting to execute /u101/app/oracle/middleware/agent11g/root.sh ......


Running Oracle 11g root.sh script...

The following environment variables are set as:


ORACLE_OWNER= oracle
ORACLE_HOME= /u101/app/oracle/middleware/agent11g

Enter the full pathname of the local bin directory: [/usr/local/bin]:


The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: n
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: n
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: n

Entries will be added to the /etc/oratab file as needed by


Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
Adding entry to /etc/oratab file...
Finished execution of /u101/app/oracle/middleware/agent11g/root.sh ......

Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 21
Next the configuration assistants for each component are configured are executed, this process took about 25 minutes
to complete on my server:

See section below

See section below

Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 22
Summary of URL information shown on the installation summary screen above:

This information is also available at:

/u000/app/oracle/middleware/oms11g/install/setupinfo.txt

See below for information pertaining to your Enterprise Manager installation:

Use the following URL to access:

1. Enterprise Manager Grid Control URL: https://linux01.mydomain.com:7799/em

2. Admin Server URL: https://linux01.mydomain.com:7101/console

The following details need to be provided during the additional OMS install:

1. Admin Server Hostname: linux01.mydomain.com

2. Admin Server Port: 7101

Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 23
Performing a Quick System Test

After supplying the SYSMAN username and password, I got the license page upon my initial sign-on:

Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 24
And then the Enterprise Manager Grid Control 11g Home Page:

This completes the installation of the EM Grid software.

Next steps would be to configure startup and shutdown of the EM Grid components (OMS, agent, repository DB) in the
server /etc/init.d files, and add the EM Grid agent to other nodes we wish to manage from this EM Grid console.

Oracle Enterprise Manager Grid Control 11gR1 (11.1.0.1) Install Guide - http://disquisitivedba.wordpress.com Page 25

Você também pode gostar