expert oracle enterprise manager 12c - home - springer978-1-4302-4939-9/1.pdf · expert oracle...
TRANSCRIPT
Expert Oracle Enterprise Manager 12c
Kellyn Pot’vinAnand AkelaGokhan AtilBobby CurtisAlex GorbachevNiall LitchfieldLeighton NelsonPete Sharman
Expert Oracle Enterprise Manager 12c
Copyright © 2013 by Kellyn Pot’vin, Anand Akela, Gokhan Atil, Bobby Curtis, Alex Gorbachev, Niall Litchfield, Leighton Nelson, and Pete Sharman
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. Exempted from this legal reservation are brief excerpts in connection with reviews or scholarly analysis or material supplied specifically for the purpose of being entered and executed on a computer system, for exclusive use by the purchaser of the work. Duplication of this publication or parts thereof is permitted only under the provisions of the Copyright Law of the Publisher’s location, in its current version, and permission for use must always be obtained from Springer. Permissions for use may be obtained through RightsLink at the Copyright Clearance Center. Violations are liable to prosecution under the respective Copyright Law.
ISBN-13 (pbk): 978-1-4302-4938-2
ISBN-13 (electronic): 978-1-4302-4939-9
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image, we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein.
President and Publisher: Paul ManningLead Editor: Chris Nelson Technical Reviewer: Frits Hoogland Editorial Board: Steve Anglin, Mark Beckner, Ewan Buckingham, Gary Cornell, Louise Corrigan, Morgan Ertel,
Jonathan Gennick, Jonathan Hassell, Robert Hutchinson, Michelle Lowman, James Markham, Matthew Moodie, Jeff Olson, Jeffrey Pepper, Douglas Pundick, Ben Renow-Clarke, Dominic Shakeshaft, Gwenan Spearing, Matt Wade, Tom Welsh
Coordinating Editor: Jill Balzano Copy Editor: Sharon Wilkey Compositor: SPi GlobalIndexer: SPi GlobalArtist: SPi GlobalCover Designer: Anna Ishchenko
Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail [email protected], or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation.
For information on translations, please e-mail [email protected], or visit www.apress.com.
Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use. eBook versions and licenses are also available for most titles. For more information, reference our Special Bulk Sales–eBook Licensing web page at www.apress.com/bulk-sales.
Any source code or other supplementary materials referenced by the author in this text is available to readers at www.apress.com/9781430249382. For detailed information about how to locate your book’s source code, go to www.apress.com/source-code/.
iii
Contents at a Glance
About the Authors ��������������������������������������������������������������������������������������������������������������� xv
About the Technical Reviewer ������������������������������������������������������������������������������������������� xix
Chapter 1: Enterprise Manager Cloud Control 12c Architecture ■ ���������������������������������������1
Chapter 2: Installation and Agent Deployment ■ ����������������������������������������������������������������15
Chapter 3: Management of the OMS and Repository ■ �������������������������������������������������������65
Chapter 4: Interacting with the EM12c Console ■ ��������������������������������������������������������������99
Chapter 5: Cloud Lifecycle Management ■ �����������������������������������������������������������������������153
Chapter 6: Software Library, Patching, and Provisioning ■ ����������������������������������������������187
Chapter 7: Managing and Monitoring Best Practices ■ ����������������������������������������������������245
Chapter 8: Managing Engineered Systems ■ ��������������������������������������������������������������������271
Chapter 9: Performance Pages and ASH Analytics ■ ��������������������������������������������������������301
Chapter 10: Metric Extensions and Management Plug-ins ■ �������������������������������������������339
Chapter 11: Enterprise Manager Jobs ■ ���������������������������������������������������������������������������385
Chapter 12: Incident Management ■ ��������������������������������������������������������������������������������423
Chapter 13: High Availability, Backup, and Recovery ■ ����������������������������������������������������445
Index ���������������������������������������������������������������������������������������������������������������������������������503
v
Contents
About the Authors ��������������������������������������������������������������������������������������������������������������� xv
About the Technical Reviewer ������������������������������������������������������������������������������������������� xix
Chapter 1: Enterprise Manager Cloud Control 12c Architecture ■ ���������������������������������������1
Architecture Overview �������������������������������������������������������������������������������������������������������������������2
The Cloud Control Console ������������������������������������������������������������������������������������������������������������������������������������� 3
Oracle Management Agents ���������������������������������������������������������������������������������������������������������������������������������� 3
Oracle Management Service ��������������������������������������������������������������������������������������������������������������������������������� 4
Oracle Management Repository ���������������������������������������������������������������������������������������������������������������������������� 4
Plug-ins ����������������������������������������������������������������������������������������������������������������������������������������������������������������� 5
A High-Availability EM12c Configuration ���������������������������������������������������������������������������������������5
Level 1 ������������������������������������������������������������������������������������������������������������������������������������������������������������������� 6
Level 2 ������������������������������������������������������������������������������������������������������������������������������������������������������������������� 6
Level 3 ������������������������������������������������������������������������������������������������������������������������������������������������������������������� 7
Level 4 ������������������������������������������������������������������������������������������������������������������������������������������������������������������� 7
The Software Library ���������������������������������������������������������������������������������������������������������������������8
Management Tools ������������������������������������������������������������������������������������������������������������������������9
Command-Line Tools �������������������������������������������������������������������������������������������������������������������10
Repository Users �������������������������������������������������������������������������������������������������������������������������10
Repository Views �������������������������������������������������������������������������������������������������������������������������11
Communication Flow �������������������������������������������������������������������������������������������������������������������11
Protocols �������������������������������������������������������������������������������������������������������������������������������������������������������������� 11
Ports �������������������������������������������������������������������������������������������������������������������������������������������������������������������� 12
Firewalls �������������������������������������������������������������������������������������������������������������������������������������������������������������� 12
■ Contents
vi
Authentication in EM12c �������������������������������������������������������������������������������������������������������������13
Summary �������������������������������������������������������������������������������������������������������������������������������������14
Chapter 2: Installation and Agent Deployment ■ ����������������������������������������������������������������15
Meeting Hardware Requirements������������������������������������������������������������������������������������������������16
Hardware Requirements for OMS ������������������������������������������������������������������������������������������������������������������������ 16
Hardware Requirements for Management Repository ���������������������������������������������������������������������������������������� 16
Hardware Requirements for Management Agents����������������������������������������������������������������������������������������������� 16
Installing Management Repository ����������������������������������������������������������������������������������������������17
Using the Oracle-Validated RPM Package and YUM �������������������������������������������������������������������������������������������� 17
Creating Oracle User and Groups ������������������������������������������������������������������������������������������������������������������������ 18
Setting Kernel Parameters ���������������������������������������������������������������������������������������������������������������������������������� 18
Creating Required Directories ����������������������������������������������������������������������������������������������������������������������������� 19
Installing the Oracle Database Software ������������������������������������������������������������������������������������������������������������� 19
Creating the Repository Database ����������������������������������������������������������������������������������������������������������������������� 30
Installing Oracle Enterprise Manager 12c �����������������������������������������������������������������������������������38
Creating the Oracle User and Groups ������������������������������������������������������������������������������������������������������������������ 38
Creating Required Directories ����������������������������������������������������������������������������������������������������������������������������� 38
Installing Oracle Enterprise Manager ������������������������������������������������������������������������������������������������������������������ 39
Deploying Management Agents ���������������������������������������������������������������������������������������������������53
Using the Add Host Targets Wizard ���������������������������������������������������������������������������������������������������������������������� 53
Using RPM ����������������������������������������������������������������������������������������������������������������������������������������������������������� 57
Using the AgentPull Script ����������������������������������������������������������������������������������������������������������������������������������� 60
Using the agentDeploy Script ������������������������������������������������������������������������������������������������������������������������������ 61
Summary �������������������������������������������������������������������������������������������������������������������������������������64
Chapter 3: Management of the OMS and Repository ■ �������������������������������������������������������65
Oracle Management Agent ����������������������������������������������������������������������������������������������������������65
Agent Management with the Console ������������������������������������������������������������������������������������������������������������������ 65
Agent Management with the Command Line ������������������������������������������������������������������������������������������������������ 73
■ Contents
vii
Oracle Management Service �������������������������������������������������������������������������������������������������������78
OMS Management with the Console ������������������������������������������������������������������������������������������������������������������� 78
OMS Management with the Command Line �������������������������������������������������������������������������������������������������������� 82
Oracle Management Repository ��������������������������������������������������������������������������������������������������88
Repository Management with the Console ���������������������������������������������������������������������������������������������������������� 88
Repository Management with the Command Line ����������������������������������������������������������������������������������������������� 91
Repository Views ������������������������������������������������������������������������������������������������������������������������������������������������� 94
Troubleshooting ���������������������������������������������������������������������������������������������������������������������������95
Summary �������������������������������������������������������������������������������������������������������������������������������������97
Chapter 4: Interacting with the EM12c Console ■ ��������������������������������������������������������������99
A Brief History of EM �������������������������������������������������������������������������������������������������������������������99
Technology ��������������������������������������������������������������������������������������������������������������������������������������������������������� 100
Interface ������������������������������������������������������������������������������������������������������������������������������������������������������������ 101
Cloud Control ����������������������������������������������������������������������������������������������������������������������������������������������������� 105
Cloud Control Menu Bar ������������������������������������������������������������������������������������������������������������106
Security Management ��������������������������������������������������������������������������������������������������������������������������������������� 107
Configuration of Support Integration ����������������������������������������������������������������������������������������������������������������� 115
Proxy Configuration ������������������������������������������������������������������������������������������������������������������������������������������� 115
Notifications ������������������������������������������������������������������������������������������������������������������������������������������������������ 118
Management Pack Access ��������������������������������������������������������������������������������������������������������������������������������� 122
Navigation Menu Bar �����������������������������������������������������������������������������������������������������������������124
Enterprise Menu ������������������������������������������������������������������������������������������������������������������������������������������������ 124
Targets Menu ����������������������������������������������������������������������������������������������������������������������������������������������������� 132
Favorites Menu �������������������������������������������������������������������������������������������������������������������������������������������������� 136
History Menu ����������������������������������������������������������������������������������������������������������������������������������������������������� 136
Search Box �������������������������������������������������������������������������������������������������������������������������������������������������������� 137
Target Management Menu Bar ��������������������������������������������������������������������������������������������������138
Monitoring Setup ����������������������������������������������������������������������������������������������������������������������������������������������� 140
Diagnostics �������������������������������������������������������������������������������������������������������������������������������������������������������� 143
■ Contents
viii
Target State and Notification Control ����������������������������������������������������������������������������������������������������������������� 145
Log Review �������������������������������������������������������������������������������������������������������������������������������������������������������� 146
Target Setup ������������������������������������������������������������������������������������������������������������������������������������������������������ 147
Customization ���������������������������������������������������������������������������������������������������������������������������������������������������� 148
Summary �����������������������������������������������������������������������������������������������������������������������������������151
Chapter 5: Cloud Lifecycle Management ■ �����������������������������������������������������������������������153
What Is Cloud Computing? ��������������������������������������������������������������������������������������������������������153
Essential Characteristics ����������������������������������������������������������������������������������������������������������������������������������� 154
Service Models �������������������������������������������������������������������������������������������������������������������������������������������������� 154
Deployment Models ������������������������������������������������������������������������������������������������������������������������������������������� 155
Enterprise Private Cloud ������������������������������������������������������������������������������������������������������������������������������������ 155
Complete Cloud Lifecycle Management ������������������������������������������������������������������������������������156
Planning the Cloud ��������������������������������������������������������������������������������������������������������������������������������������������� 157
Setting Up the Cloud ������������������������������������������������������������������������������������������������������������������������������������������ 158
Building the Cloud ��������������������������������������������������������������������������������������������������������������������������������������������� 161
Testing in the Cloud ������������������������������������������������������������������������������������������������������������������������������������������� 163
Deploying the Cloud ������������������������������������������������������������������������������������������������������������������������������������������� 164
Monitoring the Cloud ����������������������������������������������������������������������������������������������������������������������������������������� 165
Managing the Cloud ������������������������������������������������������������������������������������������������������������������������������������������� 166
Metering and Chargeback ��������������������������������������������������������������������������������������������������������������������������������� 169
Optimizing the Cloud ����������������������������������������������������������������������������������������������������������������������������������������� 179
Consolidation Planner ���������������������������������������������������������������������������������������������������������������179
Summary �����������������������������������������������������������������������������������������������������������������������������������186
Chapter 6: Software Library, Patching, and Provisioning ■ ����������������������������������������������187
Software Library ������������������������������������������������������������������������������������������������������������������������187
Configuring the Software Library ���������������������������������������������������������������������������������������������������������������������� 189
Using Software Library Entities ������������������������������������������������������������������������������������������������������������������������� 192
Performing Tasks via the Software Library Home Page ������������������������������������������������������������������������������������ 194
Maintaining the Software Library ���������������������������������������������������������������������������������������������������������������������� 208
■ Contents
ix
Patching ������������������������������������������������������������������������������������������������������������������������������������211
Patch Management �������������������������������������������������������������������������������������������������������������������������������������������� 211
Configuration of My Oracle Support ����������������������������������������������������������������������������������������������������������������� 212
Patch Plans �������������������������������������������������������������������������������������������������������������������������������������������������������� 213
Creation of a Patch Plan ������������������������������������������������������������������������������������������������������������������������������������ 214
Plan Templates �������������������������������������������������������������������������������������������������������������������������������������������������� 222
Saved Patches ��������������������������������������������������������������������������������������������������������������������������������������������������� 225
Additional Patching Procedures������������������������������������������������������������������������������������������������������������������������� 226
Roles Needed for Patching �������������������������������������������������������������������������������������������������������������������������������� 226
Provisioning �������������������������������������������������������������������������������������������������������������������������������227
Overview of Database Provisioning ������������������������������������������������������������������������������������������������������������������� 227
Supported Targets and Deployment Procedures ����������������������������������������������������������������������������������������������� 229
Setup for Database Provisioning ����������������������������������������������������������������������������������������������������������������������� 230
Summary �����������������������������������������������������������������������������������������������������������������������������������244
Chapter 7: Managing and Monitoring Best Practices ■ ����������������������������������������������������245
Metric Thresholds ����������������������������������������������������������������������������������������������������������������������245
Monitoring Templates ����������������������������������������������������������������������������������������������������������������248
Administration Groups ���������������������������������������������������������������������������������������������������������������252
Planning the Hierarchy �������������������������������������������������������������������������������������������������������������������������������������� 252
Implementing the Hierarchy ������������������������������������������������������������������������������������������������������������������������������ 254
Joining Administration Groups��������������������������������������������������������������������������������������������������������������������������� 257
Template Collections �����������������������������������������������������������������������������������������������������������������260
Synchronization Schedule ���������������������������������������������������������������������������������������������������������262
Incident Management Recommendations ���������������������������������������������������������������������������������264
Events, Incidents, and Problems ������������������������������������������������������������������������������������������������������������������������ 264
Rules and Rule Sets ������������������������������������������������������������������������������������������������������������������������������������������� 266
Metric Collection Errors ������������������������������������������������������������������������������������������������������������������������������������� 269
Summary �����������������������������������������������������������������������������������������������������������������������������������269
■ Contents
x
Chapter 8: Managing Engineered Systems ■ ��������������������������������������������������������������������271
Types of Engineered Systems ���������������������������������������������������������������������������������������������������271
Engineered Systems Lifecycle ��������������������������������������������������������������������������������������������������������������������������� 272
Supported Hardware and Software ������������������������������������������������������������������������������������������������������������������� 273
Planning and Setup Phase ��������������������������������������������������������������������������������������������������������274
Installing the Management Agent ���������������������������������������������������������������������������������������������������������������������� 274
Launching Autodiscovery ����������������������������������������������������������������������������������������������������������������������������������� 275
Specifying Component Credentials �������������������������������������������������������������������������������������������������������������������� 277
Reviewing Configuration and Completing Setup ����������������������������������������������������������������������������������������������� 278
Testing Phase ����������������������������������������������������������������������������������������������������������������������������280
Identifying Applications to Be Migrated ������������������������������������������������������������������������������������������������������������� 280
Creating a Test Environment ������������������������������������������������������������������������������������������������������������������������������ 287
Validating Application Performance ������������������������������������������������������������������������������������������������������������������� 289
Management Phase �������������������������������������������������������������������������������������������������������������������290
I/O Resource Manager ���������������������������������������������������������������������������������������������������������������292
Maintenance Phase �������������������������������������������������������������������������������������������������������������������293
Compliance Framework ������������������������������������������������������������������������������������������������������������������������������������� 294
Configuration Management ������������������������������������������������������������������������������������������������������������������������������� 295
Defect Diagnostics ��������������������������������������������������������������������������������������������������������������������������������������������� 298
Automated Patch Management ������������������������������������������������������������������������������������������������������������������������� 300
Summary �����������������������������������������������������������������������������������������������������������������������������������300
Chapter 9: Performance Pages and ASH Analytics ■ ��������������������������������������������������������301
Licensing Requirements ������������������������������������������������������������������������������������������������������������301
Host Performance ���������������������������������������������������������������������������������������������������������������������302
Performance Home �������������������������������������������������������������������������������������������������������������������304
Throughput �������������������������������������������������������������������������������������������������������������������������������������������������������� 306
I/O ���������������������������������������������������������������������������������������������������������������������������������������������������������������������� 307
Parallel Execution ���������������������������������������������������������������������������������������������������������������������������������������������� 307
Services ������������������������������������������������������������������������������������������������������������������������������������������������������������� 307
■ Contents
xi
Top Activity ��������������������������������������������������������������������������������������������������������������������������������308
Top SQL Pane ����������������������������������������������������������������������������������������������������������������������������������������������������� 310
SQL Details Page ����������������������������������������������������������������������������������������������������������������������������������������������� 310
SQL Activity �������������������������������������������������������������������������������������������������������������������������������������������������������� 311
Top Sessions Pane ��������������������������������������������������������������������������������������������������������������������������������������������� 315
ASH Analytics ����������������������������������������������������������������������������������������������������������������������������318
The Load Map ���������������������������������������������������������������������������������������������������������������������������������������������������� 322
SQL Monitoring ��������������������������������������������������������������������������������������������������������������������������323
SQL Performance ����������������������������������������������������������������������������������������������������������������������326
SQL Performance Analyzer �������������������������������������������������������������������������������������������������������������������������������� 326
SQL Access Advisor ������������������������������������������������������������������������������������������������������������������������������������������� 327
SQL Tuning Sets ������������������������������������������������������������������������������������������������������������������������������������������������� 327
SQL Plan Control ������������������������������������������������������������������������������������������������������������������������������������������������ 327
Optimizer Statistics ������������������������������������������������������������������������������������������������������������������������������������������� 328
Cloud Control SQL History ��������������������������������������������������������������������������������������������������������������������������������� 329
Advisor Central �������������������������������������������������������������������������������������������������������������������������������������������������� 330
Emergency Monitoring ��������������������������������������������������������������������������������������������������������������331
Real-Time ADDM �����������������������������������������������������������������������������������������������������������������������331
ADDM Comparison Report ��������������������������������������������������������������������������������������������������������������������������������� 333
Summary �����������������������������������������������������������������������������������������������������������������������������������338
Chapter 10: Metric Extensions and Management Plug-ins ■ �������������������������������������������339
Metric Extensions ����������������������������������������������������������������������������������������������������������������������339
Your First Metric Extension �������������������������������������������������������������������������������������������������������������������������������� 340
SQL Adapter ������������������������������������������������������������������������������������������������������������������������������������������������������� 347
OS Command Adapters �������������������������������������������������������������������������������������������������������������������������������������� 348
SNMP Adapter ���������������������������������������������������������������������������������������������������������������������������������������������������� 351
JMX Adapter ������������������������������������������������������������������������������������������������������������������������������������������������������ 351
Adapters and Target Types ��������������������������������������������������������������������������������������������������������������������������������� 351
Management Plug-ins ���������������������������������������������������������������������������������������������������������������352
Getting Started with the Extensibility Framework ��������������������������������������������������������������������������������������������� 352
Basic Plug-in Target Types and Metrics ������������������������������������������������������������������������������������������������������������� 355
■ Contents
xii
Target Type Metadata ���������������������������������������������������������������������������������������������������������������������������������������� 358
Default Collection Metadata ������������������������������������������������������������������������������������������������������������������������������ 365
Packaging the Plug-in ��������������������������������������������������������������������������������������������������������������������������������������� 368
Agent’s Metric Browser ������������������������������������������������������������������������������������������������������������������������������������� 369
Under the Hood of Metric Extensions ���������������������������������������������������������������������������������������������������������������� 369
Summary �����������������������������������������������������������������������������������������������������������������������������������383
Chapter 11: Enterprise Manager Jobs ■ ���������������������������������������������������������������������������385
Why Use EM12c Jobs ����������������������������������������������������������������������������������������������������������������386
Enterprise Manager Job Architecture ����������������������������������������������������������������������������������������386
EM Job System Components �����������������������������������������������������������������������������������������������������387
EM Jobs Service ������������������������������������������������������������������������������������������������������������������������������������������������ 387
Monitoring Configuration ����������������������������������������������������������������������������������������������������������������������������������� 389
The Job Activity Page ���������������������������������������������������������������������������������������������������������������������������������������� 390
The Enterprise Manager Job Library ����������������������������������������������������������������������������������������������������������������� 392
EM Job Schema�������������������������������������������������������������������������������������������������������������������������393
Job Creation ������������������������������������������������������������������������������������������������������������������������������396
Types of Jobs ����������������������������������������������������������������������������������������������������������������������������401
Effective Monitoring and Job Status �����������������������������������������������������������������������������������������402
Permissions �������������������������������������������������������������������������������������������������������������������������������404
EM Jobs Service Charts and Metrics ����������������������������������������������������������������������������������������405
EM Jobs Service Charts ������������������������������������������������������������������������������������������������������������������������������������� 406
Performance Metrics ����������������������������������������������������������������������������������������������������������������������������������������� 406
Usage Metrics ���������������������������������������������������������������������������������������������������������������������������������������������������� 407
Migrating Scripts to the EM Job System �����������������������������������������������������������������������������������408
Managing EM12c Jobs ��������������������������������������������������������������������������������������������������������������409
Viewing Job Results ������������������������������������������������������������������������������������������������������������������������������������������ 409
Editing Jobs from the Activity View ������������������������������������������������������������������������������������������������������������������� 410
Stopping a Running Job ������������������������������������������������������������������������������������������������������������������������������������ 410
Suspending Jobs ����������������������������������������������������������������������������������������������������������������������������������������������� 410
■ Contents
xiii
Copying to the Library ��������������������������������������������������������������������������������������������������������������������������������������� 411
Deleting Jobs ����������������������������������������������������������������������������������������������������������������������������������������������������� 411
Managing the Manager �������������������������������������������������������������������������������������������������������������411
Troubleshooting the EM12c Job System �����������������������������������������������������������������������������������411
Performing the Installation �������������������������������������������������������������������������������������������������������������������������������� 412
Using the EMDIAG with EM12c �������������������������������������������������������������������������������������������������������������������������� 413
Blackouts and EM12c Job Impact ���������������������������������������������������������������������������������������������419
Controlling Multiple Management Agents Through EM Jobs �����������������������������������������������������421
Summary �����������������������������������������������������������������������������������������������������������������������������������422
Chapter 12: Incident Management ■ ��������������������������������������������������������������������������������423
Incident Manager Terminology ��������������������������������������������������������������������������������������������������423
Events and Incidents ����������������������������������������������������������������������������������������������������������������������������������������� 423
Problems ����������������������������������������������������������������������������������������������������������������������������������������������������������� 425
Incident Rule Sets ���������������������������������������������������������������������������������������������������������������������������������������������� 426
Incident Manager User Interface �����������������������������������������������������������������������������������������������428
Creating Incident Rules ������������������������������������������������������������������������������������������������������������������������������������� 428
Looking at the Details of an Incident ����������������������������������������������������������������������������������������������������������������� 436
Creating a Custom View������������������������������������������������������������������������������������������������������������������������������������� 439
Prioritization of Rules and Notifications ������������������������������������������������������������������������������������441
Backward Compatibility ������������������������������������������������������������������������������������������������������������441
Incident Manager Guidelines �����������������������������������������������������������������������������������������������������442
Managing Events and Incidents ������������������������������������������������������������������������������������������������������������������������� 442
Rule Set Recommendations ������������������������������������������������������������������������������������������������������������������������������ 443
Summary �����������������������������������������������������������������������������������������������������������������������������������444
Chapter 13: High Availability, Backup, and Recovery ■ ����������������������������������������������������445
High Availability �������������������������������������������������������������������������������������������������������������������������445
Oracle Management Agent �������������������������������������������������������������������������������������������������������������������������������� 447
Management Repository������������������������������������������������������������������������������������������������������������������������������������ 447
Management Service ����������������������������������������������������������������������������������������������������������������������������������������� 450
Software Library ������������������������������������������������������������������������������������������������������������������������������������������������ 487
■ Contents
xiv
Backup ��������������������������������������������������������������������������������������������������������������������������������������488
Repository Backup ��������������������������������������������������������������������������������������������������������������������������������������������� 488
Oracle Management Service Backup ���������������������������������������������������������������������������������������������������������������� 491
Management Agent Backup������������������������������������������������������������������������������������������������������������������������������� 492
Recovery �����������������������������������������������������������������������������������������������������������������������������������492
Repository Recovery ������������������������������������������������������������������������������������������������������������������������������������������ 492
Oracle Management Service Recovery �������������������������������������������������������������������������������������������������������������� 494
Management Agent Recovery ���������������������������������������������������������������������������������������������������������������������������� 495
Switchover and Failover ������������������������������������������������������������������������������������������������������������������������������������ 496
Summary �����������������������������������������������������������������������������������������������������������������������������������502
Index ���������������������������������������������������������������������������������������������������������������������������������503
xv
About the Authors
Kellyn Pot’Vin is an Oracle ACE Director and senior technical consultant at Enkitec, managing Oracle and SQL Server. She specializes in environment optimization, tuning and creating systems that are robust and enterprise level. Kellyn works mostly on multiterabyte databases, including Exadata, and databases with driven performance involving solid-state disk solutions. Kellyn is deeply involved in the Oracle User Group community, speaking at conferences around the world, and is the director for the Rocky Mountain Oracle Users Group (RMOUG) Training Days conference, one of the largest regional conferences. Kellyn blogs at https://dbakevlar.com and is engrossed in social media. She can be found on Twitter under the handle @DBAKevlar, LinkedIn, and Facebook, where she often discusses her daily technical adventures since she works from home and doesn't have any coworkers to tell them to. She also heads up local and global Women in Technology (WIT) groups, mentoring fellow women in technical fields. Kellyn resides in Westminster, Colorado, with her partner, Tim Gorman, and her three children, Sam, Cait, and Josh.
Anand Akela is senior principal product marketing director for Oracle Enterprise Manager. He focuses on Oracle’s enterprise cloud, virtualization, and infrastructure management offerings. Prior to his current role at Oracle, he worked at HP in various product marketing, product management, and engineering roles in the areas of systems management, servers, data center energy efficiency, and enterprise software.
Anand is an active participant in various data center industry consortiums and currently serves as chairman for the Data Collection and Analysis Work Group at The Green Grid. The Green Grid is a global consortium of IT companies and professionals seeking to improve energy efficiency in data centers and business computing ecosystems around the globe. Anand also serves as an advisor to PeersNet, a web services provider. Anand received his MBA from the Fuqua School of Business at Duke University and a BS in computer science from the University of Pune in India.
■ About the Authors
xvi
Gokhan Atil is an independent consultant who has been working in IT since 2000. He worked as a development and production DBA, trainer, and software developer. He has a strong background in Linux and Solaris systems. He's an Oracle Certified Professional (OCP) for Oracle Database 10g and 11g, and has hands-on experience with Oracle 11g/10g/9i/8i. He is an active member of the Oracle community and has written and presented papers at various conferences. He's also a founding member of the Turkish Oracle User Group (TROUG). He was honored with the Oracle ACE award in 2011. He has a blog in which he has shared his experience with Oracle since 2008: www.gokhanatil.com.
Bobby Curtis is a solution architect at BIAS Corporation in Atlanta, Georgia. He has been a database administrator for 11 of his 17 years in the IT industry, with experience in Oracle, MS SQL Server, MySQL, and Sybase. Bobby specializes in database implementation, configuration, and data integration for enterprise-level databases and monitoring tools. He is a member of the Georgia Oracle Users Group (GOUSER), Independent Oracle User Group (IOUG), and Oracle Developer Tools User Group (ODTUG). Bobby is also certified in Oracle GoldenGate, Oracle Enterprise Manager 11, Oracle Enterprise Manager 12c, and Oracle Exadata. He now puts particular focus on the Oracle Database Appliance.
Few DBAs are as well equipped as Alex Gorbachev to handle any kind of database scenario. Alex has architected and designed numerous successful database solutions addressing challenging business requirements. Alex is a respected figure in the Oracle world and a sought-after leader and speaker at Oracle conferences around the globe. He regularly publishes articles on the Pythian blog and runs online webinars. Alex is a member of the OakTable Network and an Oracle ACE Director.
Today, Alex is working at The Pythian Group. He started at Pythian in Ottawa, leading a team of database experts before moving to Australia to embrace the challenges of setting up company business in the East Asia/Pacific region. Now he's back in Ottawa as Pythian's chief technology officer, continuing to bridge the gap between business and technology. The search for the perfect fit between technology, engineering talents, and business processes is what keeps him up at night.
Niall Litchfield is a DBA of 15 years standing, with extensive experience running databases on various x86(64) platforms, and with a particular bias toward Microsoft Windows. Niall began professional life as a “bean counter” for KPMG and consequently is a DBA who respects auditors, mainly because they have to stand in unheated warehouses in the middle of winter watching other people count things, something he never wants to do again. His dad was a real engineer, crafting genuinely useful objects with fine tolerances, and that, coupled with an early experience in which he showed that the two competing macroeconomic theories of the time both explained actual behavior equally well, and that neither explained it adequately, rather explains his evidence-based approach to databases in general and performance tuning in particular.
■ About the Authors
xvii
Leighton Nelson is an Oracle Certified database administrator and is a Lead Oracle DBA at Mercy, Saint Louis. He has over ten years of experience working with Oracle database products and currently spends his time working on database management, performance tuning, high availability, and backup and recovery. Leighton is an active member of the Oracle community. He often speaks at regional conferences across the United States, including Oracle Open World and IOUG Collaborate. He currently serves as the Oracle RAC SIG US Events Chairperson and IOUG Liaison. In addition to his speaking engagements, Leighton shares his experience with working with various Oracle products by blogging at blogs.griddba.com and by tweeting at his twitter handle @leight0nn. Leighton resides in Saint Louis, MO with his wife Kerrine and their four sons Casani, Brandon, Justin and Matthew.
Pete Sharman is a Principal Product Manager with the Enterprise Manager product suite group in the Server Technologies Division at Oracle Corporation. He has worked with Oracle for the past 18 years in a variety of roles from Education to Consulting to Development, and has used Enterprise Manager since its 0.76 beta release. Pete is a member of the Oak Table Network, and has presented at conferences around the world from Oracle Open World (both in Australia and the US), RMOUG Training Days, the Hostsos Conference, Miracle Open World, and AUSOUG and NZOUG conferences. He has previously authored a book on how to pass the Oracle8i Database Administration exam for the Oracle Certified Professional program. He lives in Canberra, Australia, with his wife and three children.
xix
About the Technical Reviewer
Frits Hoogland is an IT professional specializing in Oracle database performance and internals. Frits frequently presents Oracle technical presentations in the Netherlands, United Kingdom, United States, and other countries. In 2009 he received an Oracle ACE award from the Oracle Technology Network and a year later became an Oracle ACE Director. In 2010 he joined the OakTable Network. In addition to developing his Oracle expertise, Frits works with MySQL, PostgreSQL, and modern operating systems. Frits currently works at VX Company in the Netherlands.