ORACLE
Oracle
Press
Oracle
Enterprise
Manager 10g
Grid
Control
Handbook
Werner
De
Gruyter
Matthew
Hart
Daniel
Nguyen
Mc
Grauu
Hill
TECHNISCHE
INFORMATIQNSBIBUOTHEK
UNIVERSITATSBIBUOTHEK
HANNOVER
New York
Chicago
San FranciscoLisbon
London
Madrid
MexicoCity
MilanNew Delhi San
Juan
SeoulSingapore Sydney
TorontoTIB/UB Hannover 133 380 939
Acknowledgments
XlxIntroduction XXMI
PART 1
Installing
and
Deploying
Grid
Control
1 What Is Grid Control?
Enterprise Manager Concepts
3Enterprise Management
Software 4 The VariousManagementTools 6DBControl 6
ASControl 7
GridControl
Concepts
7GridControlvs.
Enterprise
Manager 7Acronym
vs. Idiom 8Metricsvs.
Targets
3Administratorvs.User 9
Grid Control
Components
10Grid Control Console 11
TheGrid Control Agent 11
The
Management
Server(OMS) 13TheGrid Control
Repository
13The Flow of Information 14
Agent
and OMS Communication 14OMS-to-Repository
Communication 16User(Web-Client)toOMS Communication 19
TCP PortsUsed
by
Enterprise Manager
20The Different
Types
ofTargets
21Summary
22X Oracle
Enterprise Manager 10g
GridControl Handbook
23
2
Preparing
andInstalling
the Environment24
Preparing
for the Install25
Phased Rollout
2&
Topology
oftheManagement
FrameworkTopology
of theManaged
Targets^
Preparing
forFutureGrowthNamingConventionsfor
Physical
Hosts 28Using
a Different Hostnamefor the Install 29Preinstallation Checks for the Installer and the Database 30
OT
Modifying
theResponse
FilesHardware Requirements 33
Installing
GridControl 34Enterprise Manager
1Og
Grid ControlUsing
a New Database 34Enterprise
Manager
1Og Grid ControlUsing
anExisting
Database 35Additional
Management
Server 36Additional
Management Agent
37Postconfiguration
onthe RepositoryServer 37Postconfiguration
onthe OMS Server 38LoaderSetup and Shared File
System
Loader 38 Out-Of-BandNotifications 39Log
and Trace Filesand Rotation 41Oracle HTTPServer
Configuration
45SMTP Server 45
Securing
the Environment 45Setting Up
AdvancedNetworking
Option
(ANO) 46Configuring
HTTPServertoUse SSLforConsole Ul 46 EMKEYOperations
48Locking
andUnlocking
theOMSServer 48Securing
the Databaseand theApplication
Server 50Using
Firewalls 51Postconfiguration
forPatching
andProvisioning
54Software
Library
54Proxy
ServerSettings
55My Oracle
Support Setup
56EMCLI 57
Installing
EMCLI 58Setting
Up EMCLI 59 Files Usedby
EMCLI 60Synchronizing
EMCLI Software 61CommandOverview 61
Setting Up
aTestEnvironment 62Installationand
Deployment
Best Practices 62CommonMistakes 62
Best Practices 63
Contents
xi
3 Grid Control
and Maximum
Availability
81
Why High
Availability?
82HA:
Eliminating
theSingle
Point ofFailure 84Making
GridControl DisasterRecovery-Ready
95Backup
andRecovery
99
Strengthening
the Extended Infrastructure 106Summary—EM
HA in the RealWorld 107 4Deploying Agents
into theEnterprise
109
Preparing
the ServerMachine 110Hostnames and Hostname Resolution 110 User Accounts 110 Time Zone and OSClock 111
Available DiskSpace 112
Different
Types
of Install 113Standard OUI Interactive Install 113 Silent OUI Install 113
Agent
Download 114Agent
Push (aka Ul-Based Push) 114Shared
Agent
(akaState-Deployed
Agenl/NFS
Agent) 115Using
theAgent
Download Install116
The DefaultInstalled Software 116
Customizing
the Agent DownloadScript 119Using
astaticports.ini File 122Command-Line Optionsfor theAgent Download
Script
122Using
theAgent
Push Install 124ThePrerequisitesfor Push Installs 124
Installation
Steps
124Using the Shared
Agent
Install 125The
Prerequisites
for SharedAgent
Installs 125 Installation Steps 125Postinstallation and
Configuration Steps
126Enabling
OOBMessages
127Configuring
theMonitoring Space
128Logging
andTracing
128Timeout
Configuration
130The SNMP
Subagent
131Securing
theAgent
132Registration
Passwords 132Securing
andUnsecuring
theAgent
134 AdvancedNetworking Option
and DatabaseMonitoring
134Configuring
theAgent
for PAM Authentication 134Configuring
theAgent
forLarge Systems
135Incoming
Connections 135 Threads and Processes 136••
XII Oracle
Enterprise Manager
10g
Grid Control HandbookWatchdog
Monitoring 137 Oracle Database Connections 138PropertyTimeouts 139
OMS Server
Request
Timeouts 140Summary
1415 Grid Control:
Sizing
theEnvironmentand Other Best Practices 143JustHow
Many
OMS Servers Do I Need? 144Adding
anAdditional OMS Server 145XML Loaders 147
Metric Data
Rollup
153Agent
Heartbeating
154Job Handling
155Notification
Handling
157How
Big
Doesthe Database NeedtoBe? 158Installing
andDeploying
Grid Control:Common Mistakes 161Summary:
Best Practices 162 6Maintaining
andManaging
the EMGCInfrastructure
163MonitortheMonitor 164
TheOMSand
Repository Target
164WhatlsMTM? 166
Health-Checks 176
Cleaning
UpFiles 183Defining
Timeouts 185Managing theCoreInfrastructure 187
XML Loaders 187
GridControl Jobs 193
Notification
Dispatching
198Agent Heartbeating
201Repository
Metric Calculations 203 DataRollup
206 DataPurging
207Keeping Up
withChanges
in the Data Center 211 InfrastructureChanges
211 Server MachineOperations 217Patching
andUpgrading
theInfrastructure 224Keeping
Track ofChanges
231AdministratorManagement 234
Summary
238The CommonMistakes 238 Best Practices 239
Contents XI
ii
PART II
Grid
Control Common Tasks and Functions
7
Principles
ofTarget Monitoring
243
Monitoring
andManaging
aTarget244
Setting Up
aTargetforAdministration andMonitoring
245 Credential Information 245Monitoring
Properties 249Target Properties
250Navigatingthe Ul Consolefor
Target Monitoring
251Locating
theTargetin the Console 251Finding
theAgent foraTarget
252TargetState and
Availability
253Availability
States 253Availability
Grouping 254Summary
2558
Managing
EM Users and Audits 257Defining
Administrators 258GridControl
Privileges
259Job
Privileges
259Report
Privileges
259Target Privileges
260Template Privileges
260System Privileges
260Creating
New Users 261Modifying
aUser 262Deleting
a User 262Defining
Roles andAssigning Privileges
263CreatingNew Roles 263
Deleting
aRole 263Set Up Centralized Authentication 263
User
Management
266Auditing
266Enabling
Auditing
266Audit
Reporting
267Purgingthe Audit Data 268
Summary
2699 Metrics and
Notifications
271Maximizing
the Power ofGrid Control Metrics 272Reviewing
Metrics intheGC Environment 272 MetricThresholds 273Setting
theMetric Thresholds 277XIV
Oracle
Enterprise Manager
10g
Grid Control HandbookManaging Alerts 282
User-DefinedMetrics 287
Policies in EM Grid Control 289
Suspend Monitoring with Blackouts 291
Corrective Actions 293
Getting
the Most (orShouldWeSay Least)Out ofNotifications 293Understanding
and Utilizing MethodsEffectively
294 Notification Rules 301 What AreSchedules? 303Summary 304
10
Jobs
and Task Automation 305Jobs 306
Anatomy
ofaJob 306Managed Targets
to ExecuteJobsAgainst
307Further Classification ofJobs, Job Executions, andJob Runs 310 TheJob
System
310Using
andDefining
Jobs 316Job
Library
320 A NoteonEnterprise
Manager Command-LineInterface andJobs 321JobsandGroups 322
Analyzing,
Diagnosing, andTroubleshooting Jobs
324Searching
Jobs 327Maintaining
theJob System 328Summary 331
11
Reporting and Dashboards
333Reports 334
Common Uses for
Reports
334How toGetaReport 335
The Anatomyofa
Report
336CreatingaNew Report 337
Dashboards 343
Customizing
Dashboards 344WritingYour Own Dashboards 345
AnEnd-to-EndView of
Deployed Applications: Topology
Viewer 346Summary 347
PART ill
Enterprise
Manager
Power User's
Guide
12 Host
Management
351Hosts 352
Provisioning
Hosts 352Contents XV
WhatDo You
Really
Know about Your Hosts? 356Oracle,What Are
My Agents Monitoring?
366Creating
andEnforcing
Standards forHostManagement
369Summary 379
13
Systems, Services,
andCroups
381Systems 382
Building
aSystem
383BestPracticesforUsing Systems 389
Services 389
Web
Application
390Building
aService 390Best Practicesfor UsingServices 394
Groups 395
Redundancy
Groups 396Building
aGroup 396BestPractices for Using
Groups
396Defining
the EMSystem andService 400Summary 409
14
Database Management
in Grid Control 411Enterprise Manager DatabaseControl 412
Configuring
Databasesin Grid Control 416Database Discovery 416
PreferredCredentials for Database Activities 416
Database Administration in Grid Control 419
Database
Monitoring
419Database Administration 419 The Database Home Page 420 Performance 423
Availability
429Backupand Recovery 430
Database
Backups
fromGrid Control 432Performing
RecoveryinGrid Control 436Backup Management
and Reporting 438TheServer 438
Schema
Monitoring
andManagement
443DataMovement 445 Grid Control and Managing the ProductionDatabase
Ecosystem
446Databases andConsolidated
Targets
(Groups,Systems,
Services) 447Database Change
Management
449Summary 451
15 RAC and Cluster
Management
453Managing
RAC Clusters in Grid Control 454•
XVI
Oracle
Enterprise Manager
lOg
Grid ControlHandbook
Navigating Through
the Cluster Resources 463Cluster-Managed
Database Services 466Listener Information 466 ASM
Monitoring
467Summary
47216 Data Guard
Management
473The
High Availability
Console 474 Data Guard Overview 475Creating
aPhysical Standby
Database in Grid Control 476Data GuardManagement Operations:An Overview 477
Data Guard
Monitoring
andMetrics 485Configuring
aPhysical
Standby
fora RAC Database 486Summary 488
17
Application
Monitoring
489The
Complexity
ofOnline Operations 490Servicing Applications
492Justifying
ServiceAvailability
492Working
with Beacons 492Whereto Put Beacons 493
SSL
Monitoring
with Beacons 496Exposing Monitoring Configuration
Tasks 505Setting Up
Watch Lists 513 Root CauseAnalysis
515Duality Explained
516Summary
51618
Troubleshooting
andDiagnostics
517Troubleshooting
the Install 518Log
and Trace Files 518 How toDebug
OUI 519 HowtoDebug
OPatch 521Logging
andTracing
theInfrastructure 523Logging
andTracing the Agent 523Logging
andTracing theManagement
Server 527Logging
andTracing theRepository
531Diagnosing Agent
Problems 533Agent Hang/Restart
533Target
Discovery Debugging
535Target Monitoring Debugging
536Agent
MetricDebugging
537Agent Upload
Debugging
542Agent Job
Debugging
545TimeZone
Debugging
546Contents XVII
Diagnosing
OMSProblems • ••-• 549Java
Debugging
549 OMSTarget
Debugging
• 551XML Loader
Debugging
554 EMJobDebugging
556Repository
Validation 557Using
EMDIAG 559 WhatIs EMDIAG? 559Installing
EMDIAG 561Using
Verify
Commands 563Dumping Reports 566
Reportingon EMDIAG
Findings
568Summary
569PARTIV
Appendixes
A
Configuration
Files 573Agent
574OMS:
Management
Server 576B
Configuration
Parameters 577Agent:
Propertiesintheemd.properties
File 578OMS:Propertiesin theemoms.propertiesFile 586
C
Log Files
597Agent
598Agent Log andTraceFiles 598
Oracle NetLog Files 599
OMS:ManagementServer 599
Oracle HTTP ServerLogFiles 599
ASControl Agent
Log
Files 600OC4J
Applications
600OMS Server(OC4J_EM)
Log
and Trace Files 601Agent
Push Installs(OC4J_EMPROV) Log and Trace Files 601DCM
Log
Files 602OPMN
Log
Files 603 Webcache ServerLogFiles 603Install,
Configure,
and Patch 603Installer 604
Configuration
Tools 604OPatch 604
D Environment Variables 605
Environment VariablesUsed
by
EMCTLonthe Agent 606XVlii
OracleEnterprise Manager lOgGrid
Control HandbookE Standard
Repository
Views 611F Command-Line Tool
Options
623EMCTL:
Agent-Side
Commands 624 EMCTL: OMS Server-Side Commands 627 EMCTL: AS Control Commands 630G