Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for...

56
Oracle Enterprise Manager Cloud Control 12c Prepared by: Leighton L. Nelson (Setting up Metrics and Monitoring) Top 10 Features for DBAs

description

Oracle OpenWorld 2014 User Group Forum presentation. Oracle Enterprise Manager Cloud Control 12c Metrics, monitoring + Features for DBAs.

Transcript of Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for...

Page 1: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Oracle Enterprise Manager Cloud Control 12c

Prepared by: Leighton L. Nelson

(Setting up Metrics and Monitoring) Top 10 Features for DBAs

Page 2: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

About Me

@leight0nn  

Page 3: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

About Me

Page 4: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Agenda

■  Setting up Metrics and Monitoring ▪  What, Why, How ▪  Five step process

■  Top 10 Database Features ▪  Database Lifecycle Management ▪  Real-Time Database Operations ▪  EMCLI ▪  ASH Analytics ▪  Backup & Recovery ▪  Metric Extensions ▪  Compare Period and Real-Time ADDM ▪  Corrective Actions ▪  DBaaS ▪  AWR Data Warehouse

Page 5: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Setting up Metrics and Monitoring

WHY  DO  WE  MONITOR?  

Page 6: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Setting up Metrics and Monitoring

Page 7: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Setting up Metrics and Monitoring

<insert  list  here>  

WHAT  SHOULD  WE  MONITOR?  

Page 8: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Setting up Metrics and Monitoring

HOW  DO  WE  MONITOR?  

Page 9: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Setting up Metrics and Monitoring

Page 10: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Setting up Metrics and Monitoring

INSTALL  OEM  12C  

Page 11: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Setting up Metrics and Monitoring

1.  Add  Targets  •  Deploy  EM  Agent  to  Hosts  •  Promote  Targets  

2.  Add  Metrics  and  Metric  Extensions  •  Set  Thresholds  •  Monitoring  Templates  and  Template  CollecLons  

3.  AdministraLon  Groups  •  Automate  sePng  of  metrics  and  incident  rule  sets  

4.  Create  Incident  Rules/Rule  sets  •  Availability  Rules  •  Metric  Rules  

5.  Job  Library  •  Automate  everything  

   

Page 12: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Setting up Metrics and Monitoring

1.  Add  Targets  •  Deploy  EM  Agent  to  Hosts  •  Promote  Targets  

2.  Add  Metrics  and  Metric  Extensions  •  Monitoring  Templates  and  Template  CollecLons  

3.  AdministraLon  Groups  •  Automate  sePng  of  metrics  and  incident  rule  sets  

4.  Create  Incident  Rules/Rule  sets  •  Availability  Rules  •  Metric  Rules  

5.  Job  Library  •  Automate  everything  

   

Page 13: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Setting up Metrics and Monitoring

1.  Add  Targets  •  Deploy  EM  Agent  to  Hosts  •  Promote  Targets  

2.  Add  Metrics  and  Metric  Extensions  •  Monitoring  Templates  and  Template  CollecLons  

3.  AdministraLon  Groups  •  Automate  sePng  of  metrics  and  incident  rule  sets  

4.  Create  Incident  Rules/Rule  sets  •  Availability  Rules  •  Metric  Rules  

5.  Job  Library  •  Automate  everything  

   

Page 14: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Setting up Metrics and Monitoring

Metric  Thresholds      

Page 15: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Setting up Metrics and Monitoring

Monitoring  Templates  and  Template  CollecLons  

!

Page 16: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Setting up Metrics and Monitoring

1.  Add  Targets  •  Deploy  EM  Agent  to  Hosts  •  Promote  Targets  

2.  Add  Metrics  and  Metric  Extensions  •  Monitoring  Templates  and  Template  CollecLons  

3.  AdministraLon  Groups  •  Automate  sePng  of  metrics  and  incident  rule  sets  

4.  Create  Incident  Rules/Rule  sets  •  Availability  Rules  •  Metric  Rules  

5.  Job  Library  •  Automate  everything  

   

Page 17: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Setting up Metrics and Monitoring

AdministraLon  Groups  

Page 18: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Setting up Metrics and Monitoring

1.  Add  Targets  •  Deploy  EM  Agent  to  Hosts  •  Promote  Targets  

2.  Add  Metrics  and  Metric  Extensions  •  Monitoring  Templates  and  Template  CollecLons  

3.  AdministraLon  Groups  •  Automate  sePng  of  metrics  and  incident  rule  sets  

4.  Create  Incident  Rules/Rule  sets  •  Availability  Rules  •  Metric  Rules  

5.  Job  Library  •  Automate  everything  

   

Page 19: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Setting up Metrics and Monitoring

Create  Incident  Rules/Rule  sets  

Page 20: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Setting up Metrics and Monitoring

1.  Add  Targets  •  Deploy  EM  Agent  to  Hosts  •  Promote  Targets  

2.  Add  Metrics  and  Metric  Extensions  •  Monitoring  Templates  and  Template  CollecLons  

3.  AdministraLon  Groups  •  Automate  sePng  of  metrics  and  incident  rule  sets  

4.  Create  Incident  Rules/Rule  sets  •  Availability  Rules  •  Metric  Rules  

5.  Job  Library  •  Automate  everything  

   

Page 21: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Setting up Metrics and Monitoring

Page 22: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Setting up Metrics and Monitoring

•  Create  central  administrator  to  own  Incident  Rule  Sets,  Templates  and  Jobs  

•  OEM_ADMIN  •  Test  Incident  Rule  Sets  periodically  

•  Create  Like  or  Use  Private  Rule  Sets  •  Use  the  Metric  threshold  test  

•  Use  CorrecLve  AcLons  •  Incident  Manager  •  Extend  monitoring    

•  Storage  Plug-­‐ins  •  EM  Extensibility  Exchange  

•  Automate  rouLne  tasks  using  EMCLI      

Page 23: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Setting up Metrics and Monitoring

Page 24: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Top 10 Features for DBAs

Page 25: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

1/ Database Lifecycle Management

■  Database Patching & Updates ▪  Patch Types

—  PSU

—  CPU

—  One-offs

—  Opatch

▪  Manual patching —  Time consuming

—  Complex

—  Risky

—  Requires downtime

Page 26: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

1/ Database Lifecycle Management

■  Database Upgrades ▪  Upgrades can be scary

—  Pre-requisites

—  Backups

—  Down-time

—  Cross-fingers

Page 27: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

1/ Database Lifecycle Management

■  Database Patching & Updates ▪  Use Patch Plans ▪  Out of Place Patching support ▪  Integrates with MOS

Page 28: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

1/ Database Lifecycle Management

Page 29: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

1/ Database Lifecycle Management

■  Database Patching & Updates ▪  5 Step Process to patch many DBs

—  Patch Description

—  Select the patches to apply and the targets

—  Deployment options

—  Patch Validation & Analysis

—  Review and Deploy

▪  More automation with EMCLI —  emcli submit_patch_plan

Page 30: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

2/ Real-Time Database Operations Monitoring ■  Simple Statements

▪  SQL Monitoring ▪  PL/SQL Monitoring

■  Composite Database Operations ▪  Enabled by default when STATISTICS_LEVEL=TYPICAL/ALL

■  Define DB Operation ▪  DBMS_SQL_MONITOR.BEGIN_OPERATION ▪  DBMS_SQL_MONITOR.END_OPERATION

Page 31: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

2/ Real-Time Database Operations Monitoring ■  SQL Monitoring

Page 32: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

3/ EM Command Line Interface

■  Turbo charges EM! ■  Enables Script Automation ■  Install from OEM Console ■  Standard or Advanced with Scripting Option

Page 33: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

3/ EM Command Line Interface

Page 34: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

3/ EM Command Line Interface

•  emcli  help  •  emcli  verb  help    

Page 35: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

4/ ASH Analytics

■  Multi-dimensional view of ASH data ■  DB-Time Analysis ■  Top Activity +

▪  Resize sample window ▪  More dimensions ▪  Load map tree

Page 36: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

4/ ASH Analytics

Page 37: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

5/ Backup & Recovery

When I ask the sysadmins, “The backups are making it to tape, right?”

-DBA Reactions

Page 38: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

5/ Backup & Recovery

■  RMAN Backup ▪  Target-based RMAN backup

—  Wizard-driven interface

—  Oracle-Suggested or Customized Backup

▪  Job System based RMAN backup —  Use existing RMAN scripts

▪  Group Backups using deployment procedure —  Backup multiple databases, homes and filesystems in a single

operation

Page 39: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

5/ Backup & Recovery

Page 40: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

6/ Corrective Actions

■  Resolve Incidents, Automagically! ■  Automate routine administrative tasks ■  Triggered in response to metric alerts ■  Runs on the target on which alerts are triggered ■  Agent-side response actions can execute single commands

or scripts on host

Page 41: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

7/ Automatic Database Diagnostics Monitor ADDM

Compare Period ADDM

“Why is the database slower today than yesterday?” Compares database activity over two periods of time

Page 42: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

7/ Automatic Database Diagnostics Monitor ADDM

■  Real-Time ADDM ▪  Analyzes hung or very slow DB ▪  Finds sources of contention ▪  Performs DB Time Analysis ▪  Uses 2 connection modes

—  Normal JDBC connection

—  Latch-less connection

▪  Enhanced Real-Time ADDM (DB 12c)

Page 43: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

7/ Automatic Database Diagnostics Monitor ADDM

Real-time ADDM Active Reports

Page 44: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

8/ Database-as-a-Service

■  Schema-as-a-Service ■  DBCA Template ■  RMAN Backup ■  Snap Clone

▪  Storage Agnostic (ZFS) ▪  Vendor Specific (NetApp, Oracle ZFSSA, EMC)

■  Pluggable Databases (12c)

Page 45: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

8/ Database-as-a-Service

■  Database-as-a-Service

Page 46: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

8/ Database-as-a-Service

■  Database-as-a-Service

Page 47: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

9/ Metric Extensions

Not satisfied with out-of-the-box metrics?

BYOM…

…Build Your Own Metrics  

Page 48: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

9/ Metric Extensions

Page 49: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

9/ Metric Extensions

•  Many  out-­‐of-­‐the  box  metrics  available  •  If  there  isn’t  you  can  create  your  own    •  Create  using  adapters  

•  SQL  •  PL/SQL  •  Shell  Scripts  

•  Useful  for  re-­‐using  exisLng  scripts  

Page 50: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

9/ Metric Extensions

•  Flash  Recovery  Area  (FRA)  being  used  •  Archived  Used  (%)  doesn’t  trigger  •  Recovery  Area  (%)  Used  not  modifiable  

•  Warning  85%  •  CriLcal  97%  

•  Create  new  FRA  Used  (%)  Metric  •  See  New  EM12c  Extensibility  Exchange  for  

examples    

Example  

Page 51: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

10/ AWR Warehouse (AWRW)

■  Used for consolidation of AWR from multiple databases ■  Provides long term historical information for AWR ■  Data is moved from source to targets system via ETL jobs ■  Retention period can be modified ■  See MOS note 1907335.1 for patches and requirements

Page 52: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

10/ AWR Warehouse (AWRW)

Page 53: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

10/ AWR Warehouse (AWRW)

Page 54: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Summary

Questions?

EM  12c  Rocks!!!  

Page 55: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Thank You

Questions?

Page 56: Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitoring (Top 10 Features for DBAs v1.1)

Contact Information

h)p://blogs.griddba.com  

linkedin.com/pub/leighton-­‐nelson/4/6b8/a7a  

@leight0nn  

[email protected]