Professional Documents
Culture Documents
Grid Control
D17244GC11
Edition 1.1
March 2005
D41403
Authors Copyright © 2005, Oracle. All rights reserved.
Oracle and all references to Oracle Products are trademarks or registered trademarks
GES Contributors: of Oracle Corporation.
Christopher Wensley All other products or company names are used for identification purposes only, and
Gary Vance may be trademarks of their respective owners.
Javier Saiz
Lakshmi Narapareddi
Tim Samosa
Reviewers:
Bruce Ernst
Christine Jeal
Donna Keesling
Janet Stern
Joel Goodman
Mary Bryksa
Stephan Lindblad
Sue Jang
Thomas Hoogerwerf
Trevor Bowen
Wolfgang Krueger
Publisher
Michael Sebastian
Contents
1 Introduction
Objectives 1-2
Grid Computing 1-3
Oracle Ecosystem 1-5
Enterprise Grid Computing 1-6
Implement One from Many 1-7
Manage Many as One 1-9
Management Controls 1-11
Oracle Enterprise Manager 10g Grid Control 1-12
Course Objectives 1-13
Summary 1-14
2 Architecture
Objectives 2-2
Grid Control Components 2-3
Managed Targets 2-5
Oracle Management Agent 2-6
Oracle Management Service 2-8
Oracle Management Repository 2-10
Accessing the Grid Control Console 2-11
Grid Control Console: Home 2-12
Grid Control Console: Targets 2-13
Grid Control Console: Deployments 2-14
Grid Control Console: Alerts 2-16
Grid Control Console: Jobs 2-17
Grid Control Console: Management System 2-18
EM2Go 2-19
Managing Very Large Grids 2-20
Summary 2-21
3 Installing the Grid Control Framework
Objectives 3-2
Oracle Management Repository 3-3
Oracle Management Service 3-4
Oracle Management Agent 3-5
Installation Overview 3-6
Preinstallation Checks: Hardware 3-7
Preinstallation Checks: Operating System 3-8
Installation 3-10
Select Product 3-11
Enterprise Manager 10g Grid Control Using a New Database 3-12
Super Administrator 3-15
Repository Database Passwords 3-16
iii
MetaLink and Proxy Information 3-17
Database Identification 3-18
Database Files 3-19
Configuration Assistants 3-20
Enterprise Manager 10g Grid Control Using an Existing Database 3-21
Add Repository to Existing Database 3-22
Enterprise Manager 10g Grid Control Additional Management Service 3-24
Connect OMS to Existing Repository 3-25
Demonstration 3-26
End of Installation 3-27
Custom Port Selection 3-29
Summary 3-31
Practice 3 Overview: Installing the Grid Control Framework 3-32
4 Installing the Oracle Management Agent
Objectives 4-2
Grid Control Components 4-3
OMA Installation Options 4-4
Interactive Installation 4-5
Selecting an OMS 4-6
Silent Installation 4-7
Response File 4-9
Downloadable Management Agent 4-10
Preinstallation Steps for agentDownload 4-11
agentDownload 4-12
Postinstallation 4-14
Configuring Monitoring Credentials 4-15
Key Configuration Files 4-16
Target Discovery 4-17
Summary 4-19
Practice 4 Overview: Installing the Oracle Management Agent 4-20
5 Managing Grid Control
Objectives 5-2
Controlling the Management Framework 5-3
Starting the Grid Control Framework 5-4
Stopping the Grid Control Framework 5-5
Controlling the OMR Database Listener 5-6
Controlling the OMR Database 5-8
Controlling the OMS 5-10
opmnctl 5-11
emctl 5-13
dcmctl 5-14
Application Server Control 5-16
Starting Application Server Control 5-17
OMS Home Page 5-18
Starting, Stopping, and Restarting the OMS 5-19
OMS Component Home Pages 5-20
Starting, Stopping, and Restarting OMS Components 5-21
Obtaining Common OMS Metrics 5-22
Controlling the OMA 5-23
iv
Demonstration 5-25
Summary 5-26
Practice 5 Overview: Managing Grid Control 5-27
6 Configuring Grid Control Administrators
Objectives 6-2
Groups 6-3
Types of Groups 6-4
Creating Groups 6-6
Monitoring Groups 6-8
Monitoring Group Performance 6-9
Monitoring Group Targets 6-10
Super Administrator 6-11
Creating Administrators 6-12
Creating Roles 6-13
Notifying Administrators About Issues 6-15
Setting Up Notification Methods 6-16
Defining E-Mail Addresses 6-18
Defining a Notification Schedule 6-19
Notification Rules 6-21
Using Public Notification Rules 6-22
Creating a Notification Rule 6-23
Preferred Credentials 6-25
Setting Preferred Credentials 6-26
Managing Target Subtabs 6-27
Modifying Metric Columns 6-28
Summary 6-29
Practice 6 Overview: Configuring Groups and Grid Control Administrators 6-30
7 Monitoring Grid Control
Objectives 7-2
Monitoring Grid Control 7-3
Management System: Overview 7-4
Loader and Notification Backlogs 7-5
Management Repository Details 7-6
Repository Operations 7-7
Management Services 7-8
Management Service Status 7-9
Management Agents 7-10
Metric Collection Errors 7-11
Troubleshooting Grid Control 7-12
Troubleshooting the OMR 7-13
Troubleshooting the OMS 7-15
Troubleshooting the OMA 7-17
Summary 7-18
Practice 7 Overview: Monitoring Grid Control 7-19
8 Monitoring the Ecosystem
Objectives 8-2
Monitoring the Ecosystem: Overview 8-3
Monitoring 8-4
Target Monitoring 8-5
v
Availability Monitoring 8-6
Examining Metrics in Alerts 8-7
Reviewing Historical Trends: Slowest Page Response 8-8
Metrics and Thresholds 8-9
Changing a Threshold 8-10
Changing Multiple Thresholds 8-11
Copying Thresholds to Another Target 8-12
Metric Baselines 8-13
Creating Metric Baselines 8-14
Automating Responses to Alerts 8-15
Defining a Response Action 8-16
Defining a Response Action for Target Down 8-17
Notifications 8-18
Accessing Sent Notifications 8-19
Reviewing Your Notification 8-20
Blackouts 8-21
Creating a Blackout 8-22
Reviewing Blackouts 8-23
Summary 8-24
Practice 8 Overview: Monitoring the Ecosystem 8-25
9 Using the Job System
Objectives 9-2
Jobs 9-3
Job Types 9-4
Viewing Job Activity 9-5
Creating a Host Command Job 9-7
Creating a SQL Script Job 9-8
Accessing Jobs 9-9
Runs Versus Executions 9-10
Reviewing Job Execution Results 9-11
Job Library 9-13
Searching for Jobs 9-14
Jobs Purge Policy 9-15
Summary 9-17
Practice 9 Overview: Using the Job System 9-18
10 Host Monitoring and Management
Objectives 10-2
Doing More with More 10-3
Monitoring Hosts with Grid Control 10-4
What Is a Host? 10-5
Viewing a List of Hosts in Your Grid 10-6
Host Home Page 10-7
Viewing Performance Information 10-8
Using Metrics to Monitor Host Performance 10-9
Changing Thresholds of Predefined Metrics 10-10
Viewing a List of Targets 10-11
Viewing Host Configuration 10-12
Comparing Hosts 10-13
Comparing Hosts: Different 10-14
vi
Using Telnet to Verify Host Information 10-15
Summary 10-16
Practice 10 Overview: Host Monitoring and Management 10-17
11 Database Monitoring and Management
Objectives 11-2
Ways to Manage Your Database 11-3
Grid Control Versus Database Control 11-4
Accessing Grid Control Versus Database Control 11-6
Using Database Groups to Manage Multiple Database Targets 11-7
Comparing Metrics of Multiple Database Targets 11-8
Database Home Page 11-9
Configuring an Oracle8i or Oracle9i Database Target 11-10
Administering Databases with Grid Control 11-12
Case Study: Managing by Exception 11-13
Case Study 11-14
Summary 11-18
Practice 11 Overview: Database Monitoring and Management 11-19
12 Application Server Management
Objectives 12-2
Managing Application Servers Using Grid Control 12-3
Grid Control Versus Application Server Control 12-4
Accessing Grid Control Versus Accessing Application Server Control 12-6
Application Server Control Tasks for Managing Application Servers 12-7
Administering the Application Server Instance 12-8
Reviewing the List of J2EE Applications 12-9
Centrally Managing Ports 12-10
Configuring Infrastructure Services 12-11
Topology Viewer 12-12
Deploying an OC4J Application 12-13
Practice 12a Overview: Deploying the Petstore Application 12-15
Reviewing Your Application’s Performance Metrics in Application Server
Control 12-18
Applications Deployed to the OC4J Instance 12-19
Viewing Log Files to Help Diagnose Problems 12-20
Grid Control Tasks for Managing Application Servers 12-21
Summary View of Application Servers from Grid Control 12-22
Performance Diagnosis with Diagnostic Drilldowns 12-23
Reviewing Historical Performance Data 12-24
Drill Down to OC4J Home Page 12-25
Drill Down to Applications 12-26
Drill Down to Applications Performance 12-27
Analyzing J2EE Diagnostic Reports 12-28
Example Report: Top Servlets 12-29
Using Groups to Manage Application Server Targets 12-30
Monitoring Performance Across Multiple Application Servers 12-31
Summary 12-33
Practice 12b Overview: Application Server Management 12-34
vii
13 Application Service Level Management
Objectives 13-2
Application Service Level Management 13-3
Monitor from the End User’s Viewpoint 13-4
Monitor from the Application Administrator’s Perspective 13-5
Application Administrator Requirements 13-6
Manage Systems Holistically 13-7
Manage Application Availability 13-9
Beacons 13-10
Define Availability 13-11
Monitor Application Performance 13-12
Monitor Transaction Response Time 13-13
Drill Down for More Transaction Details 13-14
Monitor End-User Response Times 13-15
Investigate URL Performance Bottlenecks 13-16
Analyze URL Performance 13-17
Diagnose Performance Problems 13-18
Interactive Transaction Trace 13-19
Diagnose Middle-Tier Performance Issues 13-20
Drill Down for Diagnostic Details 13-21
Analyze the Processing Call Stack 13-22
Correlate Performance 13-23
Application Service Level Management Requirements 13-24
Configuring Web Applications 13-25
Add a Web Application Target 13-26
Create Transactions 13-28
Create Beacons 13-30
Define Availability 13-31
Configure End-User Response-Time Monitoring 13-32
Configure OracleAS Web Cache Logging 13-33
Configure OracleAS Web Cache Logging (Optional) 13-34
Configure Middle-Tier Performance Monitoring 13-35
Enable OC4J Logging 13-36
Summary 13-37
Practice 13 Overview: Application Service Level Management 13-38
viii
Drill Down to Review the Alerts 14-11
Drill Down to Review Component Availability 14-12
Review Member Targets List 14-13
Monitoring Oracle Collaboration Suite Components 14-14
Email Component Home Page 14-15
List of Email Components 14-16
WebMail Web Application Page 14-17
Email Performance 14-18
Email IMAP Operations 14-19
Calendar Component Group Page 14-20
Calendar Web Application 14-21
Calendar Performance 14-22
Web Conference Component Group Page 14-23
Web Conference Web Application 14-24
Page Performance of Web Application 14-25
Summary 14-26
ix
Cloning a Database Instance: Source Working Directory 15-31
Cloning a Database Instance: Archiving Mode 15-32
Cloning a Database Instance: Select Destination 15-33
Cloning a Database Instance: Destination Options 15-34
Cloning a Database Instance: Schedule 15-35
Cloning a Database Instance: Review 15-36
Cloning a Database Instance: Viewing the Job Results 15-37
Summary 15-38
Practice Overview: Managing Your Configuration 15-39
17 EM2Go
Objectives 17-2
Administer from Anywhere 17-3
EM2Go 17-4
Administering EM2Go 17-5
Navigating EM2Go 17-6
Target Home Pages 17-7
Administering Databases with EM2Go 17-8
x
Resolving Database Issues with EM2Go 17-9
Administering Hosts With EM2Go 17-10
Administering Application Servers with EM2Go 17-11
Summary 17-12
19 High-Availability Options
Objectives 19-2
High Availability 19-3
Highly Available OMR 19-4
Configuring OMS Connections to a RAC 19-5
Highly Available OMS 19-6
Configuring OMA Connections to a Clustered OMS 19-7
Summary 19-8
xi
Migrate Existing Administrator Accounts 20-8
Summary 20-9
xii
Application Server Management
Objectives
This lesson explores the differences between Oracle Enterprise Manager 10g Application Server
Control and Oracle Enterprise Manager 10g Grid Control. You deploy a J2EE application using
Application Server Control and review its performance. You also evaluate the application
server’s performance over time and compare its metrics with other application servers in the grid.
HTTP(s) HTTP(s)
HTTP(s)
Management Management
Monitored Agent Management
Agent Agent
Targets
Application Application
Server Server
Control #1 Control #2
Management
Centralized No
Repository
Application
Yes Yes
Configuration
Application Server
No Yes
Farm/Cluster aware
Groups Yes No
Historical Monitoring
Yes No
and Alerts
Application Service
Yes No
Level Management
Instance2 http://ashost1.domain:1811
Topology Viewer
Topology Viewer is a graphical, real-time view of application server processes managed by
Oracle Process Manager and Notification (OPMN). Topology Viewer, available on the Oracle
Technology Network (OTN), is an add-on feature of Oracle Enterprise Manager 10g Application
Server Control. From Topology Viewer, an administrator can perform the following:
• View status of the Application Server Farm, Clusters, and member components.
• Start/Stop/Restart Application Server processes.
• Monitor performance across the Application Server environment.
• Drilldown to component home pages for more details.
After installation, you can access either a JSP version or applet version of the Topology Viewer.
Both versions offer the same functionality (though in a slightly different format) with one
exception - only the applet version of Topology Viewer allows you to customize the colors used
within the topology interface.
To access the Topology Viewer, enter the following URL:
http://<ashost>:1810/emd/console/ias/topology/topologyjsp
or
http://<ashost>:1810/emd/console/ias/topology/topologyapplet
From either version of the Topology Viewer, you can see a clear visualization of your
Application Server environment. You can scroll down to see critical performance information for
the Application Server components.
Oracle Enterprise Manager 10g Grid Control 12-12
Deploying an OC4J Application
Name: InventoryDB
connection-driver=oracle.jdbc.driver.OracleDriver
url=jdbc:oracle:thin:@<yourdbhostpc>:1521:orcl
username=estoreuser
password=estore
location=jdbc/InventoryDataSource
xa-location=jdbc/xa/InventoryXADS
ejb-location=jdbc/InventoryDB
Name: EstoreDB
connection-driver=oracle.jdbc.driver.OracleDriver
url=jdbc:oracle:thin:@<yourdbhostpc>:1521:orcl
username=estoreuser
password=estore
location=jdbc/EstoreDataSource
xa-location=jdbc/xa/EstoreXADS
ejb-location=jdbc/EstoreDB
Name: SignOnDB
connection-driver=oracle.jdbc.driver.OracleDriver
url=jdbc:oracle:thin:@<yourdbhostpc>:1521:orcl
username=estoreuser
password=estore
location=jdbc/SignOnDataSource
xa-location=jdbc/xa/EstoreXADS
ejb-location=jdbc/EstoreDB
6. Access the Petstore application and load the application data using the URL
http://<appserver_host>:7778/estore.
2. For your application server, what is the average CPU usage for the past 24 hours?
3. What is the average memory usage for the past seven days?
4. Create a group called asgroup# and include your assigned application server and another
one in the class. Include all metrics available.
6. Which servlet in the Petstore application has the highest number of process requests?
Administrators must:
• Be alerted in advance before problems seriously
affect users
• Understand the impact of performance problems
on end users
• Quickly diagnose problems
Beacons
Beacons are a function of the Management Agent that has the responsibility of replaying
transactions at specified intervals. In addition, beacons measure the performance and response
times of the transaction from that physical beacon location.
Grid Control makes it easy to stage beacons in geographical areas where you have a
concentration of users. Beacons monitor transactions, reporting on transaction availability and
response time.
Comparing response times from different beacons helps you gauge the effect of network latency
and other network connectivity issues. This may make the application seem to be unavailable or
poorly performing from your end users’ viewpoint even though performance in the data center is
fine.
Define Availability
Availability and response-time definitions differ from one Web application to another. In some
cases, the ability to access a static page may be the most critical measure of performance and
availability. In others, the ability to complete a complex multistep transaction may be the key.
With Grid Control, you can easily record and monitor multioperation transactions that model the
way your end users work. Grid Control lets you define the transaction that is most important to
you and your end users. Availability is defined by the key availability transaction and its ability
to be played successfully from at least one key user community or beacon. Administrators have
the flexibility to define what availability means for their application by defining the
representative availability transaction and the beacons from which availability is determined. If
you don’t specifically choose a transaction to define availability, Grid Control uses the
application’s home page by default. If beacons are not explicitly assigned to the Web application,
there is always a local beacon running the transaction by default. The local beacon is defined by
the monitoring agent as selected by the administrator when creating the Web application using
the wizard. The local beacon or the designated monitoring agent typically should be the beacon
or agent that is as close to the application as possible.
Correlate Performance
Click Correlate Performance to compare performance metrics against each other on a sliding
time scale. Select the metrics you want to correlate and compare effects with potential causes
(such as a peak in CPU utilization) for a particular host.
This ability to correlate performance details between the different components servicing an
application is crucial to successfully tuning or troubleshooting complex applications.
Create Transactions
You may choose to monitor application transactions to track both response time and the
availability of the transactions. To add monitored transactions to your Web application:
1. Connect to Grid Control using Microsoft Internet Explorer 5.5 or later. The creation of a
Web transaction uses the Transaction Recorder, which requires APIs contained in Internet
Explorer and not available from other supported browsers such as Mozilla or Netscape.
2. Navigate to your Web application target, click Transaction Performance, Manage
Transactions, and then click Create.
3. Enter a name for the transaction. This name should reflect the type of transaction being
tested. You may also choose to enter a description of the transaction. Click Next.
4. Record your transaction. Click Start to open a new browser and begin recording. Using the
new browser window, step through the application as you would expect a customer to do. If
your application requires authentication at some point, you should ensure that there is a
dummy user for the transaction to log in as (Petstore has a dummy user, or credit card,
already created). If you have logged in, make sure that you log out as well in the
transaction; otherwise, you may have too many sessions open. When the transaction is
created, click Stop to close the transaction window, and then click Verify to check the steps
you just recorded.
Create Beacons
Beacons are components that test Web application transactions. Any Oracle management agent
that is associated with your grid can serve as a beacon.
To create a beacon, click Management System, Agents, and select the agent you want to
configure as a beacon. Select Beacon from the drop-down list of targets, and then click Go.
Simply give the beacon a name and enter any proxy information the beacon needs to reach the
targets that it is monitoring. Click OK, and the beacon is created.
To monitor a transaction from the new beacon, click Targets, Web Applications, and select the
Web application you want to monitor. On the Web application’s home page, click
Administration and Manage Beacons. Add or remove beacons that monitor the Web application.
Define Availability
The Define Availability page specifies which beacons are used to measure the availability of
your Web application and which transaction is used by the beacons to measure availability.
When a beacon is selected to define the availability of your Web application, response-time data
for the beacon appears in the chart on the Web application home page. If none of the selected
availability beacons can reach your Web application, Enterprise Manager generates an alert
indicating that the Web application is no longer available.
The transaction that you select in the Availability Transaction section of the page is the
transaction that each selected beacon runs automatically and continuously to determine the
availability of your Web application.
1. Stop OracleAS
Web Cache.
2. Archive any
existing logs
using the original
CLF format.
3. Start OracleAS
Web Cache.
$ cd $ORACLE_HOME/webcache/logs
$ mkdir archive
$ mv *log archive/.
Note
Because there is no Internet Explorer browser available in the classroom, students import
transactions using a script. Normally, the Transaction Recorder is used to record, play, and trace
transactions.
3. Load a transaction into your Web application using the following script:
Objectives
This lesson covers the differences between EM Website and Grid Control. You examine the
tasks that are required to configure Oracle Collaboration Suite in Grid Control so that you can
monitor its availability and performance.
Application
Management Server
Service
Email Performance
Click the Performance property page on the Email Home page to view several graphs that
provide useful information on how your Email component is performing.
Click Back to return to the Email Home page.
Calendar Performance
Click the Performance property page. Understanding your Calendar component’s performance
helps to find issues before they become problems. Drill down into each metric chart or click
Compare Metrics to compare against another Oracle Calendar installation.
Click OCSGroup to return to the group page.
Objectives
This lesson helps you manage your configurations. You learn how to view, search, and compare
configurations. In addition, you learn the steps to review changes made to your configuration, to
apply patches to targets, and to manage policy violations against targets. You learn the process to
clone an Oracle home and database instance.
Searching Configurations
On the Deployments page, click Search Configurations.
The Search Configurations page is the starting point for different types of searches that involve
one or more targets in your enterprise configuration. Most of the search queries are predefined,
but you can modify the search criteria to customize different search queries.
Click the link for one of the predefined search queries to access a page on which you can specify
the criteria for that search query. Click Help on that search query page to obtain more
information about the search query.
In addition, you can perform an advanced search and specify a SQL statement to query the
enterprise configuration management views in the Oracle Management Repository. If you want
to perform an advanced search but do not want to create the entire SQL query yourself, you can
choose one of the predefined searches and, optionally, make modifications to it. At any time,
click Search Using SQL to display the SQL statement that is used to carry out the predefined
search with the search criteria that you have specified. Execute and modify the SQL query as
often as necessary until it returns the desired results.
Comparing Systems
Enterprise Manager provides tools for an enterprise-wide comparison of systems so that
administrators can quickly and easily identify any potential differences. This helps to keep
systems synchronized and simplifies investigations into why systems that are presumed to be
identical may behave differently.
Administrators often need to create new systems that are equivalent in performance to existing
systems. This information can then be used as a blueprint for creation of new systems.
Using Grid Control, you can perform the following comparisons:
• Host to host: Identifies configuration differences between two hosts
• Host to multiple hosts (job): Compares one host to multiple other hosts. This comparison
executes a job that can be run immediately or scheduled for a later time.
• Databases: Identifies differences between two database configurations
Receive critical
1 patch Update
advisories. 4 inventory.
3 Apply
patch.
2 Evaluate
applicability.
Patches on
MetaLink
Retrieve the
1 list of
available
patches. Update
4 inventory.
3 Apply the
patch.
2 Select the
desired patch.
Patches on
MetaLink
Applying Patches
An administrator can also use the Patch Wizard to search, download, and apply patches. Using
the Patch Wizard, patches can be searched in the context of a specific target or, if desired, the
administrator can query for a specific patch. After the necessary patch is located, Enterprise
Manager Grid Control can download and apply it. Optionally, Enterprise Manager can execute
an end user–provided script to install the patch.
Policy Management
Enterprisewide compliance with Oracle best-practice security and configuration policies can be
automatically monitored with the Configuration Management Pack Policy Manager. This saves
hours of tedious and repetitive work for administrators. Oracle provides policies that span hosts
and their operating systems, Oracle database installations, and instances as well as application
servers. Example policies include:
• Database SPFILE not used
• Insufficient number of control files
• Password complexity not enabled
• Detect open host ports
Policy compliance is evaluated continually even as new targets come online. Administrators are
immediately informed about any policy violations. Individial policies can be deactivated
enterprisewide or on a per-target basis.
Select
software and
Update
1 instances to 3 inventory.
clone.
2 Clone to
selected
targets.
1. Browse the configuration information collected for one of your host targets, and then
export the information to a file.
4. Perform a search by using SQL query that uses the Initialization Parameters Settings
option.
OC4J
EM
OMR
Web OHS
Cache OMS
Encrypted Encrypted
channel channel
2. Generate the root key, configure the HTTP server for secure communications, and enter the
OMA authentication password with emctl:
$ $GRID_HOME/bin/emctl secure oms
TZ set to US/Mountain
Oracle Enterprise Manager 10g Release 10.1.0.2.0.
Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved.
Enter Enterprise Manager Root Password :
Enter Agent Registration password :
Enter a Hostname for this OMS : eddnr5p12.us.oracle.com
Note: This procedure only refuses HTTP upload traffic to the OMS. It does not affect HTTP
traffic to the EM application which renders the Grid Control console, nor does it prevent access
to the agent_download script. Depending on your security requirements, you may also want
to secure access to the EM application. To do so, follow standard practices for securing a Web
application deployed to the Oracle Application Server. Refer to the Oracle Application Server
Security Guide for more information on securing Web applications.
To restore the OMS’ ability to receive nonsecure uploads on the original upload port:
1. Stop all OMS services.
2. Unlock the OMS using emctl secure unlock.
3. Start all OMS services.
Modify ORACLE_HOME/network/admin/sqlnet.ora
to request encryption:
• SQLNET.ENCRYPTION_SERVER
• SQLNET.CRYPTO_SEED
SQLNET.ENCRYPTION_SERVER=REQUESTED
SQLNET.CRYPTO_SEED="abcdefg123456789"
OMR
oracle.sysman.emRep.dbConn.enableEncryption=TRUE
oracle.net.encryption_types_client=(DES40C)
oracle.net.encryption_client=REQUESTED
Parameter Remarks
Create AGENT_HOME/network/admin/sqlnet.ora as
a text file with the following entry:
• SQLNET.CRYPTO_SEED
SQLNET.CRYPTO_SEED="abcdefg123456789"
Note: When prompted for the Enterprise Manager Root Password, enter the SYSMAN password
for the database. Do not enter the SYSMAN password for Grid Control. When prompted to enter
the “hostname for this OMS” enter the hostname of the server hosting Database Control,
not the Grid Control OMS.
Note: Database Control continues to use the original port assigned during the installation. The
protocol simply changes from HTTP to HTTPS. Because the certificate generated during this
procedure is not from a commonly recognized certificate authority, you will receive a warning
when accessing Database Control. Remember that SSL encryption does not require that a
certificate be issued by a recognized authority. You can ignore the warning and connect to
Database Control.
OC4J
EM
Web OHS
Proxy server Cache OMS
Proxy server
OC4J
EM
Web OHS
Proxy server Cache OMS
Grid
Control
Oracle Internet
Directory
OC4J
EM
Web OHS
Cache OMS
Demonstration
During the practice session for this lesson, you will configure your management agents to
communicate securely with the Oracle Management Service. Before the OMAs can be
configured for secure communications, the OMS must first be configured to accept secure
uploads.
In this demonstration the instructor will perform the following steps:
1. Stop all OMS services.
2. Execute emctl secure oms:
a. Enter the SYSMAN password.
b. Specify the Agent Registration Password.
c. Enter the fully qualified host name of the OMS.
3. Start all OMS services.
4. Retrieve the secure upload port by executing emctl secure status.
5. Test the secure upload port by connecting via a Web browser:
https://<oms host>.us.oracle.com:<secure port>/em/upload
3. Configure your OMA for secure uploads. Execute the following command:
./emctl secure agent
Note: Your instructor should have configure the OMS for secure uploads. If he/she has not
performed this task, he/she needs to complete that task before you can complete this step.
EM2Go
One way to provide remote access system administration is through EM2Go, which is a version
of the Grid Control application specifically designed for the small screen.
Connect to EM2Go with a portable device running Microsoft Pocket Internet Explorer. EM2Go
does not provide full access to all Grid Control functions, but does allow an administrator to
perform most critical tasks, including reviewing host configuration information, identifying top
resource consumers, starting and stopping database and listener targets, reviewing alert
notification for all targets, and carrying out most common database administration tasks.
EM2Go requires:
• No separate installation
• No special configuration
• No extra administration
• No additional servers
Administering EM2Go
EM2Go is automatically installed and configured when the OMS is installed. There is no
separate configuration or administration required. Simply connect to Grid Control at the usual
Grid Control URL with a supported browser to access EM2Go.
Navigating EM2Go
Unlike the Grid Control console, EM2Go is not divided into tabs of property pages. Instead, the
initial home page presents an overview of the most critical information for an on-call
administrator:
• What targets are down?
• How many alerts are current? How severe are they?
Tapping the underlined link next to each alert category opens the corresponding target home
page.
The EM2Go home page also presents links to the different types of targets (similar to the Targets
properties page in the Grid Control console). Tapping a target type opens the summary page for
that target type.
3 6
EM2Go provides:
• Availability monitoring
• Alert reporting
• Performance summaries
User-Defined Metrics
Grid Control monitors a rich set of metrics, but there is often a need to monitor a metric that is
uniquely important to your system. With user-defined metrics, you can extend the reach of
Enterprise Manager’s monitoring to conditions specific to your particular environment.
Grid control supports two types of user-defined metrics: operating system and database.
Operating system user-defined metrics are derived through monitoring scripts. Database user-
defined metrics are derived through SQL statements.
Adding a user-defined metric to Grid Control is a simple matter of creating an operating system
script or crafting a SQL statement that monitors the condition you are interested in, then telling
Grid Control to run the script or statement at periodic intervals.
Once a user-defined metric is defined, the results are collected at a specified interval and stored
within the Oracle Management Repository. With the exception of real-time monitoring, all other
monitoring features (namely, threshold-based alerting, proactive notifications, historical
collections and analysis, seamless integration with the Grid Control) are automatically available
to the metric. If you already have your own library of custom monitoring scripts, you can
leverage these monitoring features by integrating your scripts as user-defined metrics.
em_result=<numeric value>
em_message=<message describing script result>
$AGENT_HOME/bin/emctl ilint -
-o collection_test -d 0 -
-m new_target_metadata.xml -
-i na
Base Views
There are over 4,000 objects in the SYSMAN schema, including 354 tables and 249 views. A few
key views—known as the base views—are designed to present information from the management
repository in a form that is both intuitive and directly usable for customized reporting.
The base views are divided into three categories:
• Central policy views: A group of two views providing information on central policies such
as target blackouts and metric collection
• Monitoring views: Eight views providing time-based information about collected metrics
and availability
• Inventory views: A group of ten views providing information on managed targets,
including the target name, type, installed software versions, and configuration information
Monitoring Views
There are eight monitoring views that provide information on alerts, availability, and metric data.
• Availability: Two views provide information about managed target availability, including
the status of the target and the time that the status was reported.
- mgmt$availability_current: One row for each managed target showing the
current status of the target as last reported by the management agent
- mgmt$availability_history: Historical record of status changes for all
managed targets, including the reported status and the time that it was reported
• Alerts: Two views provide information about alerts, including the target the alert applies to,
the metric causing the alert, and the time that the alert was collected.
- mgmt$alert_current: Information about all noncleared alerts that have been
logged with the OMR
- mgmt$alert_history: Historical information about all alerts logged with the
OMR, including when the alert was reported, the status of the alert, and the alert
message
• Metric data: Four views provide information about metric data.
- mgmt$metric_details: A rolling sample of raw metric data collected
Inventory Views
There are ten inventory views:
• mgmt$target: Contains a list of managed targets including target name, target type, the
management agent that services the target, the server that hosts the target, and the time at
which the last upload completed
• mgmt$target_type: Provides a list of known target types and associated metrics
• mgmt$target_composite: Contains a breakdown of components belonging to
composite targets. A composite target is a managed target consisting of one or more
components which are also managed targets. An example of a composite target is an Oracle
application server. Each application server includes at least an Oracle HTTP Server and
Oracle Application Container for J2EE, and may include many other components.
• mgmt$target_properties: Provides a list of properties and property values for
managed targets. Different target types are associated with different properties. For
example, database targets have properties such as SID, LOG_ARCHIVE_MODE, and
BACKGROUND_DUMP_DESTINATION. Host targets have properties such as OS,
BOOTTIME, and IP_ADDRESS.
• mgmt$target_components: Lists the software that is installed for a given target,
including version and ORACLE_HOME
1. Create a user-defined metric for your host called Free_Memory# that runs the
getfreemem.sh script to display the amount of free memory you have.
2. Create a user-defined metric called sort_users# for your database that selects the sum
of current users from v$sort_segments.
High Availability
Grid Control leverages the standard Oracle 10g high-availability options.
The Oracle Management Repository (OMR) is hosted within an Oracle database. Use Real
Application Clusters (RAC) to configure a highly available OMR.
The OMR may also take advantage of the Oracle database’s disaster recovery options, including
Oracle Data Guard. With Oracle Data Guard, the repository data can be safeguarded against
catastrophic events such as natural disasters.
The Oracle Management Service serves two purposes:
• Processing information uploads from the management agents and loading that information
into the OMR
• Rendering the Grid Control console
Because in the OMS both of these functions are accomplished using a standard J2EE application,
high availability for the OMS is achieved by clustering the OMS behind a load balancer.
OMR
Standby
oracle.sysman.eml.mntr.emdRepConnectDescriptor=(
DESCRIPTION\=(ADDRESS_LIST\=(
ADDRESS\=(PROTOCOL\=TCP)(
HOST\=omr1.mycompany.com)(PORT\=1521))(
ADDRESS\=(PROTOCOL\=TCP)(
HOST\=omr2.mycompany.com)(PORT\=1521)))(
CONNECT_DATA\=(SERVICE_NAME\=emRAC.mycompany.com)))
REPOSITORY_URL=
https://loadbalancer.mycompany.com:4888/em/upload/
Postinstallation Requirements
Once the management agents have been installed on all nodes, you must run root.sh on all
UNIX and Linux hosts so that the agents can interact with the operating system to execute Grid
Control jobs.
Create another operating system job using the legacy Oracle Enterprise Manager console. This
time you should select Run OS Command for the task and enter <AGENT_HOME>/root.sh as
the command to be run. If your hosts did not use a common directory as the AGENT_HOME, you
must create separate jobs for each different directory structure.
For Oracle Enterprise Manager 9.2 consoles, override the preferred credentials to run the job as
root. Preferred credential override was new in version 9.2. For Oracle Enterprise Manager 2.2
and 9.0.1, you must run the job as a user with preferred credentials allowing root access.
$ repo_mig –migrate
EM_user/password@old_repository_host:port:sid
sysman/password@OMR_host:port:sid
1. Create an Administrator called Team#_B. For Team#_B, add your assigned database, the
OMR database and application server and give the administrator ADD ANY TARGET,
USE ANY BEACON and MONITOR ENTERPRISE MANAGER access. Give View,
Operator and Full privilege to all targets except OMR database, OMS and OMR Host and
the OMS and Repository only give View privilege.
3. Create a database group called dbgroup#_B and add your database as well as another
one from the list.
4. Review the group you just created and answer the following questions:
- Are there any alerts to be concerned about?
- How many policy violations are there?
- Is there any job activity?
- Which database has the most activity?
5. Add your dbgroup#_B to the Target tab and make it first in the list.
6. Create a new tablespace called tblsp#_B and set a Tablespace File Usage (%) threshold for
the new tablespace to a warning of 50% and critical of 68%.
7. Compare the CPU Utilization metric between your assigned database and the OMR
database.
8. Your application server needs to be upgraded. Create a blackout for this target. Verify the
home page.