Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Oracle Enterprise Manager Cloud 
Control 12c 
(Setting up Metrics and Monitoring) 
Top 10 Features for DBAs 
Prepared by: ...
About Me 
@leight0nn
About Me
Agenda 
■ Setting up Metrics and Monitoring 
▪ What, Why, How 
▪ Five step process 
■ Top 10 Database Features 
▪ Database...
Setting up Metrics and Monitoring 
WHY 
DO 
WE 
MONITOR?
Setting up Metrics and Monitoring
Setting up Metrics and Monitoring 
WHAT 
SHOULD 
WE 
MONITOR? 
<insert 
list 
here>
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 
a...
Setting up Metrics and Monitoring 
1. Add 
Targets 
• Deploy 
EM 
Agent 
to 
Hosts 
• Promote 
Targets 
2. Add 
Metrics 
a...
Setting up Metrics and Monitoring 
1. Add 
Targets 
• Deploy 
EM 
Agent 
to 
Hosts 
• Promote 
Targets 
2. Add 
Metrics 
a...
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 
a...
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 
a...
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 
a...
Setting up Metrics and Monitoring
Setting up Metrics and Monitoring 
• Create 
central 
administrator 
to 
own 
Incident 
Rule 
Sets, 
Templates 
and 
Jobs ...
Setting up Metrics and Monitoring
Top 10 Features for DBAs
1/ Database Lifecycle Management 
■ Database Patching & Updates 
▪ Patch Types 
— PSU 
— CPU 
— One-offs 
— Opatch 
▪ Manu...
1/ Database Lifecycle Management 
■ Database Upgrades 
▪ Upgrades can be scary 
— Pre-requisites 
— Backups 
— Down-time 
...
1/ Database Lifecycle Management 
■ Database Patching & Updates 
▪ Use Patch Plans 
▪ Out of Place Patching support 
▪ Int...
1/ Database Lifecycle Management
1/ Database Lifecycle Management 
■ Database Patching & Updates 
▪ 5 Step Process to patch many DBs 
— Patch Description 
...
2/ Real-Time Database Operations 
Monitoring 
■ Simple Statements 
▪ SQL Monitoring 
▪ PL/SQL Monitoring 
■ Composite Data...
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 ...
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 
▪ Mo...
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 Customiz...
5/ Backup & Recovery
6/ Corrective Actions 
■ Resolve Incidents, Automagically! 
■ Automate routine administrative tasks 
■ Triggered in respon...
7/ Automatic Database Diagnostics Monitor 
ADDM 
Compare Period ADDM 
“Why is the database slower today than yesterday?” 
...
7/ Automatic Database Diagnostics Monitor 
ADDM 
■ Real-Time ADDM 
▪ Analyzes hung or very slow DB 
▪ Finds sources of con...
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) 
▪...
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 
• ...
9/ Metric Extensions 
Example 
• Flash 
Recovery 
Area 
(FRA) 
being 
used 
• Archived 
Used 
(%) 
doesn’t 
trigger 
• Rec...
10/ AWR Warehouse (AWRW) 
■ Used for consolidation of AWR from multiple databases 
■ Provides long term historical informa...
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
Upcoming SlideShare
Loading in …5
×

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

5,471 views

Published on

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

Published in: Technology
  • Be the first to comment

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

  1. 1. Oracle Enterprise Manager Cloud Control 12c (Setting up Metrics and Monitoring) Top 10 Features for DBAs Prepared by: Leighton L. Nelson
  2. 2. About Me @leight0nn
  3. 3. About Me
  4. 4. 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
  5. 5. Setting up Metrics and Monitoring WHY DO WE MONITOR?
  6. 6. Setting up Metrics and Monitoring
  7. 7. Setting up Metrics and Monitoring WHAT SHOULD WE MONITOR? <insert list here>
  8. 8. Setting up Metrics and Monitoring HOW DO WE MONITOR?
  9. 9. Setting up Metrics and Monitoring
  10. 10. Setting up Metrics and Monitoring INSTALL OEM 12C
  11. 11. 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
  12. 12. 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
  13. 13. 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
  14. 14. Setting up Metrics and Monitoring Metric Thresholds
  15. 15. Setting up Metrics and Monitoring Monitoring Templates and Template CollecLons !
  16. 16. 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
  17. 17. Setting up Metrics and Monitoring AdministraLon Groups
  18. 18. 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
  19. 19. Setting up Metrics and Monitoring Create Incident Rules/Rule sets
  20. 20. 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
  21. 21. Setting up Metrics and Monitoring
  22. 22. 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
  23. 23. Setting up Metrics and Monitoring
  24. 24. Top 10 Features for DBAs
  25. 25. 1/ Database Lifecycle Management ■ Database Patching & Updates ▪ Patch Types — PSU — CPU — One-offs — Opatch ▪ Manual patching — Time consuming — Complex — Risky — Requires downtime
  26. 26. 1/ Database Lifecycle Management ■ Database Upgrades ▪ Upgrades can be scary — Pre-requisites — Backups — Down-time — Cross-fingers
  27. 27. 1/ Database Lifecycle Management ■ Database Patching & Updates ▪ Use Patch Plans ▪ Out of Place Patching support ▪ Integrates with MOS
  28. 28. 1/ Database Lifecycle Management
  29. 29. 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
  30. 30. 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
  31. 31. 2/ Real-Time Database Operations Monitoring ■ SQL Monitoring
  32. 32. 3/ EM Command Line Interface ■ Turbo charges EM! ■ Enables Script Automation ■ Install from OEM Console ■ Standard or Advanced with Scripting Option
  33. 33. 3/ EM Command Line Interface
  34. 34. 3/ EM Command Line Interface • emcli help • emcli verb help
  35. 35. 4/ ASH Analytics ■ Multi-dimensional view of ASH data ■ DB-Time Analysis ■ Top Activity + ▪ Resize sample window ▪ More dimensions ▪ Load map tree
  36. 36. 4/ ASH Analytics
  37. 37. 5/ Backup & Recovery When I ask the sysadmins, “The backups are making it to tape, right?” -DBA Reactions
  38. 38. 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
  39. 39. 5/ Backup & Recovery
  40. 40. 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
  41. 41. 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
  42. 42. 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)
  43. 43. 7/ Automatic Database Diagnostics Monitor ADDM Real-time ADDM Active Reports
  44. 44. 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)
  45. 45. 8/ Database-as-a-Service ■ Database-as-a-Service
  46. 46. 8/ Database-as-a-Service ■ Database-as-a-Service
  47. 47. 9/ Metric Extensions Not satisfied with out-of-the-box metrics? BYOM… …Build Your Own Metrics
  48. 48. 9/ Metric Extensions
  49. 49. 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
  50. 50. 9/ Metric Extensions Example • 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
  51. 51. 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
  52. 52. 10/ AWR Warehouse (AWRW)
  53. 53. 10/ AWR Warehouse (AWRW)
  54. 54. Summary Questions? EM 12c Rocks!!!
  55. 55. Thank You Questions?
  56. 56. Contact Information h)p://blogs.griddba.com linkedin.com/pub/leighton-­‐nelson/4/6b8/a7a @leight0nn leightonn@gmail.com

×