Contenu connexe
Similaire à ODTUG Webinar AWR Warehouse (20)
Plus de Kellyn Pot'Vin-Gorman (20)
ODTUG Webinar AWR Warehouse
- 2. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Enterprise Manager AWR
Warehouse
Enterprise Manager 12c, Release 4
Kellyn Pot’Vin,
Consulting Member of Enterprise Manager Technical Team
Strategic Customer Program
GP Gongloor, Director of Product Management
Oracle Corporation
July 17th, 2014
Oracle Confidential
- 3. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Safe Harbor Statement
The following is intended to outline our general product direction. It is intended for
information purposes only, and may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality, and should not be relied upon
in making purchasing decisions. The development, release, and timing of any features or
functionality described for Oracle’s products remains at the sole discretion of Oracle.
Oracle Confidential 3
- 4. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Program Agenda
1
2
3
4
5
What is the AWR Warehouse
Installation and ETL
AWR Warehouse Interface and Features
Use Cases
Summary
Oracle Confidential 4
- 5. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Program Agenda with Highlight
1
2
3
4
5
What is the AWR Warehouse
Installation and ETL
AWR Warehouse Interface and Features
Use Cases
Summary
Oracle Confidential 5
- 6. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Warehouse - Business Drivers
• Automatic Workload Repository
(AWR) is the de facto
performance repository for
Oracle databases since 10g
• Default retention period of 8
days prevents diagnosis of long
term performance problems
(“Compare performance during
this quarter’s books close with
last quarter’s”)
• Increasing AWR retention
period increases overhead and
cost in critical production
environments
CRMFinance Supply Chain
0%
30%
60%
90%
120%
0%
30%
60%
90%
120%
0%
30%
60%
90%
120%
- 7. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Warehouse - Architecture
• Central warehouse configured for
long term AWR data retention
• Historical and ongoing AWR
snapshots collected from
databases enabled for AWR
warehouse
• ETL jobs moves snapshots from
source databases into AWR
warehouse
• Retention period configurable for
weeks, months, years or forever
(default)
- 8. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Warehouse Features
• Warehouse dashboard tracking
ETL jobs
• All AWR features available on long
term AWR data
• Performance page
• AWR report
• ASH analytics
• Compare Period ADDM
• Compare Period Report
• Integrated seamlessly into EM UI
• Zero runtime overhead on source
Production databases
- 9. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Program Agenda with Highlight
1
2
3
4
5
What is the AWR Warehouse
Installation and ETL
AWR Warehouse Interface and Features
Use Cases
Summary
Oracle Confidential 9
- 10. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Why Have an AWR Warehouse?
Oracle Confidential 10
- 11. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Requirements
• AWR Warehouse Repository -11.2.0.4 or higher.
• Preferred Credentials set up for all targets involved.
• Discover the database you will use for your repository in the EM12c
• Pre-discover any source database before able to add.
• For a RAC target or AWR Warehouse, ensure you’ve set up a shared
location for the ETL load files.
Oracle Confidential 11
- 12. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR ETL Jobs
Oracle Confidential – Internal/Restricted/Highly Restricted 12
DBMS Job on Source Database
to directory
Job in EM Job Service that
pulls file from Source
Target and then pushes to
AWR Warehouse Target
Directory Final DBMS Job Inserts data
into AWR Warehouse
All data identified by OLD/NEW DBID and
with the EM_ID, (CAW_DBID_MAPPING in
AWR WAREHOUSE)
Source Target
Enterprise Manager
AWR Warehouse
- 13. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
“Under the Hood” Source Target ETL Job
DBMS Scheduler Job Name: MGMT_CAW_EXTRACT
Exec Call: begin dbsnmp.mgmt_caw_extract.run_extract; end;
How Often: 3 Hour Intervals if “playing catch up”, otherwise, 24 hr interval.
Oracle Confidential 13
- 14. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
EM Job Service Dump File Transfer
• Runs 12hr
intervals from
time source target
is added to AWR
Warehouse.
• Agent to Agent
Direct Push
Oracle Confidential 14
- 15. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
“Under the Hood” AWR Warehouse ETL Job
Oracle Confidential 15
DBMS Scheduler Job Name: MGMT_CAW_LOAD
Exec Call: begin dbsnmp.mgmt_caw_load.run_master;
How Often: 5 Minute Intervals
Biggest Resource Demand from the “run_master”:
begin dbms_swrf_internal.move_to_awr(schname => :1); end;
- 16. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
ETL Load Duration to AWR Warehouse?
• Daily uploads take just a matter of seconds
• “Catch up” loads took anywhere from 2-12 min for
over 2 GB file load.
Oracle Confidential 16
- 17. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Behind the Scene(DBMS_SCHEDULER, AWR Warehouse)
DELETE DBSNMP.CAW_LOAD_WORKERS
WHERE NAME NOT IN (
SELECT JOB_NAME
FROM DBA_SCHEDULER_RUNNING_JOBS
WHERE OWNER = 'SYS')
Oracle Confidential 17
- 18. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Installed on Source Database DBSNMP Schema
CAW_EXTRACT_PROPERTIES : Information on ETL job, dump location and
intervals.
CAW_EXTRACT_METADATA : All data about extracts- times, failures, details.
Oracle Confidential 18
- 19. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Warehouse DBSNMP Objects
CAW_SPACE_USAGE: Populates resource consumption dashboard for AWR.
CAW_PROPERTIES : Information about location of dump files, interval,
retention time, etc. for AWR Warehouse.
CAW_PRIV_GRANTS : View privileges within the EM Console
CAW_LOAD_WORKERS : Only used during an actual ETL load process to the
AWR Warehouse.
Oracle Confidential 19
- 20. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Warehouse DBSNMP Objects
CAW_SRC_DBS : Main info about source db’s, version, ETL status, etc.
CAW_SRC_DB_INSTANCES: Instance information about source databases.
CAW_LOAD_METADATA : AWR dump file local, last load, etc.
CAW_LOAD_ERRORS : Populates the errors view in the console.
CAW_DBID_MAPPING : Used to map all data between Enterprise Manager,
AWR Warehouse and Database Identifiers.
Oracle Confidential 20
- 21. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
24 Databases X 10G of Data Over 3 Weeks….
Oracle Confidential 21
- 22. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Program Agenda with Highlight
1
3
2
4
5
What is the AWR Warehouse
Installation and ETL
AWR Warehouse Interface and Features
Use Cases
Summary
Oracle Confidential 22
- 23. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Accessing the AWR Warehouse
Targets Databases
Performance AWR Warehouse
Oracle Confidential 23
- 24. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Warehouse Console Interface
Oracle Confidential 24
- 25. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Warehouse Configurations
Along with AWR Warehouse Basics-
• Configuration Status
• Version of Repository Database
• Host Information
• Connect Info, (SID/Service Name, Port)
• Space Usage, Upload Interval and Retention
Oracle Confidential 25
- 26. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Console Breakdown- High Level Warehouse Info
• Space Usage, (also available in the awrinfo.sql report.)
• Number of Databases, Incident report access and any source databases
Without Recent Uploads.
Oracle Confidential 26
- 27. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Console Interface, Snapshots at a Glance
• Displays snapshot upload space allocated by date.
• Considerably less space when just adding daily, (48MB approximate…)
Oracle Confidential 27
- 28. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Working with AWR Source Databases in Repository
• Highlight database from list, (clicking on target name will take you to
performance home page for target.)
• Run basic reports, view ASH Analytics or perform ADDM Comparisons.
• Also Add databases from the options.
Oracle Confidential 28
- 29. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Warehouse Source Databases
• Clicking on any Target
Name will take you to the
performance home page
for that target.
• Target Type, DB Name,
version info, owner and if
snapshot, (ETL job) is
enabled.
• AWRW object
dbsnmp.CAW_SRC_DBS.
Oracle Confidential 29
- 30. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
High Level Snapshot Data
• Shows number of
snapshots via days and
counts.
• Shows oldest and
newest snapshot date.
• AWRW object
dbsnmp.CAW_SRC_DBS
Oracle Confidential 30
- 31. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Actions Drop Down
• Most options are also in menu across top
of database list.
• Enable or Disable ETL Jobs for Source
Databases.
• Update snapshots via immediate run of
ETL job on any source target in AWR
Warehouse.
Oracle Confidential 31
- 32. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Would like to View Data Differently, Change Order?
• Uncheck any Columns to
view less information.
• Can add Snapshot
information, (add significant
data to filter through…)
Oracle Confidential 32
- 33. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Viewing Errors with the AWR ETL Load
**This can also be viewed in dbsnmp.CAW_LOAD_ERRORS
Oracle Confidential 33
- 34. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Security- Administrators of AWR Data in the Warehouse
Allows the ability to remove and
manage AWR snapshots within the
AWR Warehouse, not just view
warehouse data.
Oracle Confidential 34
- 35. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Program Agenda with Highlight
1
4
2
3
5
What is the AWR Warehouse
Installation and ETL
AWR Warehouse Interface and Features
Use Cases
Summary
Oracle Confidential 35
- 36. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 36
- 37. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
What Can I do with the AWR Warehouse?
Oracle Confidential – Internal/Restricted/Highly Restricted 37
0
50000
100000
150000
200000
250000
300000
350000
400000
June 10, 2013
l_reads_s read_iops_max read_iops_direct read_iops_direct_max
0
100000
200000
300000
400000
500000
600000
June 10, 2014
l_reads_s read_iops_max read_iops_direct read_iops_direct_max
- 38. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
CPU Usage Issues
“Nothing’s changed in
months…”
Oracle Confidential 38
- 39. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Using the AWR Warehouse for Capacity Planning
“Do we really need more
partitioning and pruning?
Our disk usage hasn’t
increased this last year….”
Oracle Confidential 39
- 40. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Querying the AWR Warehouse Tips
Update Scripts with DBID identified to filter.
Join:
• CAW_DBID_MAPPING on OLD_DBID/NEW_DBID=DBID
• CAW_DBID_MAPPING on TARGET_NAME=TARGET_NAME
Oracle Confidential 40
- 41. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
How Current AWR Queries Change
from dba_hist_sys_time_model stm, dba_hist_snapshot s, gv$parameter p, dbsnmp.caw_dbid_mapping m
where stm.stat_name in ('DB CPU','background cpu time')
and LOWER(m.target_name)= '&dbname'
and s.dbid= m.new_dbid and s.snap_id = stm.snap_id
and s.dbid = stm.dbid and s.instance_number = stm.instance_number
and p.name = 'cpu_count' and p.inst_id = s.instance_number)
Oracle Confidential 41
- 42. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Program Agenda with Highlight
1
5
2
3
4
What is the AWR Warehouse
Installation and ETL
AWR Warehouse Interface and Features
Use Cases
Summary
Oracle Confidential 42
- 43. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Warehouse Offers
• Incredible new repository to store AWR data from source targets.
• Easy to use and familiar interface to run common reports and analyze
data from
• Simple schema additions to existing source database to manage jobs,
inspect information or isolate issues.
• Only small changes to existing AWR queries to enhance to AWR
Warehouse queries.
Oracle Confidential 43
- 44. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Want to Learn More?
Oracle Screenwatch: https://www.youtube.com/watch?v=StydMitHtuI
DBAKevlar Blog Posts:
http://dbakevlar.com/2014/06/awr-warehouse-in-em12c-rel-4/
http://dbakevlar.com/2014/06/awr-warehouse-in-em12c-rel-4-part-ii/
Scripts: http://dbakevlar.com/scripts/
Oracle Confidential 44
- 45. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 45
Connect with me via Social Media: