oracle enteprise manager cloud control 12c - setting up metrics and monitoring (top 10 features for...

Post on 08-Jul-2015

1.662 Views

Category:

Technology

4 Downloads

Preview:

Click to see full reader

DESCRIPTION

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

TRANSCRIPT

Oracle Enterprise Manager Cloud Control 12c

Prepared by: Leighton L. Nelson

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

About Me

@leight0nn  

About Me

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

Setting up Metrics and Monitoring

WHY  DO  WE  MONITOR?  

Setting up Metrics and Monitoring

Setting up Metrics and Monitoring

<insert  list  here>  

WHAT  SHOULD  WE  MONITOR?  

Setting up Metrics and Monitoring

HOW  DO  WE  MONITOR?  

Setting up Metrics and Monitoring

Setting up Metrics and Monitoring

INSTALL  OEM  12C  

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  

   

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  

   

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  

   

Setting up Metrics and Monitoring

Metric  Thresholds      

Setting up Metrics and Monitoring

Monitoring  Templates  and  Template  CollecLons  

!

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  

   

Setting up Metrics and Monitoring

AdministraLon  Groups  

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  

   

Setting up Metrics and Monitoring

Create  Incident  Rules/Rule  sets  

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  

   

Setting up Metrics and Monitoring

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      

Setting up Metrics and Monitoring

Top 10 Features for DBAs

1/ Database Lifecycle Management

■  Database Patching & Updates ▪  Patch Types

—  PSU

—  CPU

—  One-offs

—  Opatch

▪  Manual patching —  Time consuming

—  Complex

—  Risky

—  Requires downtime

1/ Database Lifecycle Management

■  Database Upgrades ▪  Upgrades can be scary

—  Pre-requisites

—  Backups

—  Down-time

—  Cross-fingers

1/ Database Lifecycle Management

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

1/ Database Lifecycle Management

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

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

2/ Real-Time Database Operations Monitoring ■  SQL Monitoring

3/ EM Command Line Interface

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

3/ EM Command Line Interface

3/ EM Command Line Interface

•  emcli  help  •  emcli  verb  help    

4/ ASH Analytics

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

▪  Resize sample window ▪  More dimensions ▪  Load map tree

4/ ASH Analytics

5/ Backup & Recovery

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

-DBA Reactions

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

5/ Backup & Recovery

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

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

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)

7/ Automatic Database Diagnostics Monitor ADDM

Real-time ADDM Active Reports

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)

8/ Database-as-a-Service

■  Database-as-a-Service

8/ Database-as-a-Service

■  Database-as-a-Service

9/ Metric Extensions

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

BYOM…

…Build Your Own Metrics  

9/ Metric Extensions

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  

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  

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

10/ AWR Warehouse (AWRW)

10/ AWR Warehouse (AWRW)

Summary

Questions?

EM  12c  Rocks!!!  

Thank You

Questions?

Contact Information

h)p://blogs.griddba.com  

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

@leight0nn  

leightonn@gmail.com  

top related