ioug oow12 em12c
TRANSCRIPT
![Page 1: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/1.jpg)
EM12c Monitoring,
Metric Extensions and
Performance Pages
Kellyn Pot’Vin
Sr. Techical Consultant
![Page 2: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/2.jpg)
Kellyn Pot’Vin
• Westminster, Colorado
• Oracle ACE, Sr. Technical Specialist at Enkitec
• Multi-Platform DBA
• Specialize in performance and management of large
enterprise environments.
• Board of directors for RMOUG, Director of Training
Days 2013 and Database Track Committee for
KSCOPE 2013
• Blog: DBAKevlar.com
• Twitter: @DBAKevlar
![Page 3: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/3.jpg)
Why We Monitor our Databases
• Pro-active notification of issues before resulting in
outages/impact to users.
• Awareness of performance, resource usage and
demands.
• Data collection to investigate performance issues-
current, recent and historical.
• Capacity planning.
• Automation of maintenance work.
![Page 4: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/4.jpg)
Monitoring and Notification Downfalls
Yahoo News- “Over 70% of workers would give up
shower[ing] to eliminate unnecessary emails.”
• Paging with “Successful” and/or “I’m OK”.
• Not alerting for enough types of failures, instead
covering with when complete.
• Paging on “Warning”
• Setting Critical thresholds too high vs. giving time to
correct.
![Page 5: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/5.jpg)
Presentation Agenda
• EM Architecture
• EM Incident Rules and the Incident Manager
• Metric Extensions- The Why and the How.
• Performance Pages
• Top Activity
• Diagnosing Issues
• SQL Monitor
• ASH Analytics
![Page 6: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/6.jpg)
Simple EM Architecture
• Oracle Repository stores
data in an Oracle database.
• OMS (Oracle Management
Service)
• Targets with OMA(Oracle
Management Agent)/Plug-
ins upload data to OMS.
• Cloud Control Console, (aka
EM Console) Used to view
data through interaction
with OMS.
![Page 7: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/7.jpg)
Effective Monitoring with Incident Manager
![Page 8: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/8.jpg)
Creating Incidents From Alerts
![Page 9: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/9.jpg)
Incident Rules
From EM12c Console
• Setup
• Incidents
• Incident Rules/ Job Events
![Page 10: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/10.jpg)
Incident Rule Sets
• Two Non-Editable, Main Rule Sets Come with EM12c
Installation,
• Incident Management
• Event Management
![Page 11: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/11.jpg)
Incident Management Rules- Broken Down
• Incident Creation for metric alerts
• Auto- Clear rule for metric alert older then 7 days.
• Auto-Clear rule for job status change for terminal status events.
• SLA Incident Creation
• Incident Creation for Target Unreachable, Down and Error.
• Clear ADP, (Application Dependency and Performance) alerts
without incident after 7 days.
• Incident creation rule for high-availability events.
![Page 12: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/12.jpg)
Utilizing Existing Rule Sets
1. Disable existing, Non-editable, system generated,
incident management rule set.
2. Pre-existing are Quality Rule Sets, but need to be
editable.
3. Need to Copy the Incident Rule Sets.
4. Enhance or Add Additional Rules to the New Copy
of a Rule Set.
![Page 13: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/13.jpg)
Disabling and Copying Rule Sets
![Page 14: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/14.jpg)
Copying a Rule Set
• Fill in new name of Incident Rule Set.
• Defaults to all targets, exclude, change to target types or specific types.
• Enable if copying a disabled rule set.
![Page 15: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/15.jpg)
Copying Rule Set, Rules Tab
• Click on the Rules Tab
• You can Edit Existing rules, enhancing, updating or changing
default settings.
• Remove any unwanted rules.
• Add specific rules for your environment.
![Page 16: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/16.jpg)
Copying Rule Set, Co-authors
![Page 17: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/17.jpg)
Rules vs. Metric Thresholds
• Rule are Set Globally.
• Rules are Independent of Database Metric Settings.
![Page 18: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/18.jpg)
Metric Settings
• Set at database level unless using a template.
• In 12.0.1.0 BP1, only set with warning thresholds.
• Good reason to use a template.
![Page 19: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/19.jpg)
What Are Metric Extensions?
• A dynamically configured extensions feature allowing
to monitor environment specific conditions.
• Simplifies monitoring of operational processes that
once only existed outside of the EM12c console.
• Eliminates requirements for secondary monitoring
and management tools.
• Eliminate need for external scripting that may require
more monitoring logic than EM Jobs can provide.
![Page 20: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/20.jpg)
Metric Extensions Details
• Metric Extensions replace the formerly known “User
Defined Metrics”
• User Defined Metrics were limited to database and
host types, no longer with Metric Extensions.
• Ability to build a metric extensions library to utilize for
your own environment.
• Full development cycle support
• Using specific protocols , the Oracle Integration
Adapter gathers data about targets for use with
metrics extensions.
![Page 21: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/21.jpg)
The “More” of Metric Extensions
• A simple wizard allows for easy development and
refinement of metric extensions.
• Ability to test metrics using the “Test Page” allows an
ability to run real-time metric evaluations to ensure
definitions and scripts are free of errors before
deploying.
• Loved, stand-alone scripts, with small changes can
become metric extensions, too!
![Page 22: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/22.jpg)
Development Life Cycle
![Page 23: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/23.jpg)
Enterprise > Monitoring > Metric Extensions
![Page 24: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/24.jpg)
The Creation
![Page 25: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/25.jpg)
Creation, Part II
![Page 26: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/26.jpg)
Creation, Part III
• Defaults meet the needs for example.
![Page 27: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/27.jpg)
Creation, IV
![Page 28: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/28.jpg)
Add Columns
• Columns
• AGENT_PID with Description of “AGENT PID”
• MEM_USG with Description of “MEMORY USAGE”
• VAL_MEM with Description of “VALUE of MEMORY”
• Number of occurrences before alerting=5, then click OK
![Page 29: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/29.jpg)
Credentials
• Choose a pre-existing setup or new?
![Page 30: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/30.jpg)
The Finale!
• Test, rinse, and repeat, (deploy/publish!)
![Page 31: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/31.jpg)
Publishing/Deploying/Retaining
![Page 32: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/32.jpg)
Metric Extensions Summary
• Create development metric extension, wizard will
simplify process.
• Test with test page and verify that all steps, all
features of the metric extension test correctly.
• Deploy to target separately or to groups.
• Utilize to fulfill any missing areas in monitoring
environment.
![Page 33: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/33.jpg)
EM12c Performance Pages
• Summary Page
• Top Activity
• SQL Monitor
• ASH Analytics
• ASH/AWR Reports
• SQL Tuning Advisor
• Misc. Features
![Page 34: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/34.jpg)
The Summary Page
![Page 35: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/35.jpg)
Database Level Summary Page
![Page 36: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/36.jpg)
Top Activity, “The Grid”
• Graphical display of performance usage.
• 15 second refresh, manual refresh or historical.
• Review up to time retained in AWR.
![Page 37: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/37.jpg)
The low down of the Top Activity
• Top SQL on left.
• Top sessions, clients, etc. on right in drop down.
![Page 38: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/38.jpg)
Here’s our spike, which waits?
• Commonly, focus on pink,
orange, red and brown for
issues.
• Network and queuing do have
opportunities for tuning, as
well.
• Green and blue are expected,
but also part of problems
when over utilized.
![Page 39: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/39.jpg)
We’re in the Red, (Orange, too!)
• Inspect High
% use.
• Red, orange,
brown and
pink.
![Page 40: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/40.jpg)
Session Details
![Page 41: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/41.jpg)
Next?
• Two sessions are executing
• Option to run an ASH report, (right hand side)
![Page 42: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/42.jpg)
What ASH Tells Us
![Page 43: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/43.jpg)
The Icing on the Cake
• Duh, add some memory to the EM12c box!
![Page 44: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/44.jpg)
SQL Monitor
• Elapsed Time
• SQL_ID, Beginning SQL Text.
• Parallel, Waits and Execution Time
![Page 45: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/45.jpg)
Top Activity, ASH style
Ability to choose timelines by:
Hour Day
Week Month
Calendar Custom
![Page 46: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/46.jpg)
Familiar Interface
Changes to interface were minimal for user comfort
![Page 47: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/47.jpg)
Sql Details View
![Page 48: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/48.jpg)
Load Map
New Visual Way of Showing Data, Multiple
Ways!
![Page 49: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/49.jpg)
ASH Analytics Summary
• Future of “Top Activity”
• Easy Agent Deployment through EM12c Console
• Comfortable Interface for those familiar with Previous
Versions.
• Cool new features, new learning curve for some.
• Oracle user DOES NOT need sudo, disregard the
instructions.
![Page 50: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/50.jpg)
Links
Step by Step to create a metric extension from Rob Zoeteweij-
http://oemgc.files.wordpress.com/2012/05/using-metric-extensions-in-em12c.pdf
EM12c blogs-
Gokhan Atil- http://www.gokhanatil.com/
Martin Bach- http://martincarstenbach.wordpress.com
Niall Litchfield- http://orawin.info/blog/
Info for Me!
Company Website: www.enkitec.com
Twitter: @DBAKevlar
RMOUG: www.rmoug.org
RMOUG Training Days– Feb. 11th-13th, 2013, Denver, CO
Linkedin: Kellyn Potvin and/or Rocky Mountain Oracle User Group
Email: [email protected] or [email protected] or
Blog: dbakevlar.com
![Page 51: Ioug oow12 em12c](https://reader033.vdocuments.site/reader033/viewer/2022042519/55d4fe6bbb61eb9a528b4709/html5/thumbnails/51.jpg)
SAVE THE DATE!
COLLABORATE 13
April 7-11, 2013
Colorado Convention Center
Denver, Colorado
http://collaborate13.ioug.org