Oracle AWR Warehouse.pdf
description
Transcript of Oracle AWR Warehouse.pdf
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 1/46
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 2/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Enterprise Manager AWR
WarehouseEnterprise Manager 12c, Release 4
Kellyn Pot’Vin,Consulting Member of Enterprise Manager Technical Team
Strategic Customer ProgramGP Gongloor, Director of Product ManagementOracle CorporationJuly 17th, 2014
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 3/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Safe Harbor StatementThe following is intended to outline our general product direction. It is inteinformation purposes only, and may not be incorporated into any contract.commitment to deliver any material, code, or functionality, and should not in making purchasing decisions. The development, release, and timing of afunctionality described for Oracle’s products remains at the sole discretion
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 4/46
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
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 5/46
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
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 6/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Warehouse - Business Drivers
• Automatic Wor
(AWR) is the deperformance reOracle databas
• Default retentidays prevents dterm performa(“Compare perthis quarter’s blast quarter’s”)
• Increasing AWRperiod increasecost in critical penvironments
CRMFinance Supply Chain
0%
30%
60%
90%
120%
0%
30%
60%
90%
120%
0%
30%
60%
90%
120%
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 7/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Warehouse - Architecture
• Central warehouse co
long term AWR data r• Historical and ongoing
snapshots collected frdatabases enabled fowarehouse
• ETL jobs moves snapssource databases intowarehouse
• Retention period confweeks, months, years(default)
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 8/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Warehouse Features• Warehouse dashboa
ETL jobs
• All AWR features avaterm AWR data
• Performance pag
• AWR report
• ASH analytics
• Compare Period
• Compare Period
• Integrated seamlessly
• Zero runtime overheaProduction databases
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 9/46Copyright © 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
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 10/46Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Why Have an AWR Warehouse?
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 11/46
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
•
Pre-discover any source database before able to add.
• For a RAC target or AWR Warehouse, ensure you’ve set up a slocation for the ETL load files.
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 12/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR ETL Jobs
Oracle Confidential – In
DBMS Job on Source Databaseto directory
Job in EM Job Service thatpulls file from SourceTarget and then pushes toAWR Warehouse TargetDirectory Final DBMS Job Inserts d
into AWR Warehouse
All data identified by OLD/NEWwith the EM_ID, (CAW_DBID_M
AWR WAREHOUSE)
Source Target
Enterprise Manager
AWR Warehouse
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 13/46
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
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 14/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
EM Job Service Dump File Transfer
• Runs intervtime is addWare
• AgentDirec
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 15/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
“Under the Hood” AWR Warehouse ETL Job
Oracle Confidential
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;
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 16/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
ETL Load Duration to AWR Warehouse?
• Daily uploads take just a matter of second
• “Catch up” loads took anywhere from 2-12over 2 GB file load.
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 17/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Behind the Scene(DBMS_SCHEDULER, AWR Wareh
DELETE DBSNMP.CAW_LOAD_WORKERS
WHERE NAME NOT IN (
SELECT JOB_NAME
FROM DBA_SCHEDULER_RUNNING_JOBS
WHERE OWNER = 'SYS')
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 18/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Installed on Source Database DBSNMP Schema
CAW_EXTRACT_PROPERTIES : Information on ETL job, dump locaintervals.
CAW_EXTRACT_METADATA : All data about extracts- times, failu
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 19/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Warehouse DBSNMP Objects
CAW_SPACE_USAGE: Populates resource consumption dashboa
CAW_PROPERTIES : Information about location of dump files, intretention time, etc. for AWR Warehouse.
CAW_PRIV_GRANTS : View privileges within the EM Console
CAW_LOAD_WORKERS : Only used during an actual ETL load proAWR Warehouse.
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 20/46
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
CAW_SRC_DB_INSTANCES: Instance information about source da
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 EnterprisAWR Warehouse and Database Identifiers.
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 21/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
24 Databases X 10G of Data Over 3 Weeks….
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 22/46
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
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 23/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Accessing the AWR Warehouse
Targets Databases
Performance AWR Warehouse
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 24/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Warehouse Console Interface
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 25/46
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, P
• Space Usage, Upload Interval and
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 26/46
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 sourceWithout Recent Uploads.
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 27/46
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 approx
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 28/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Working with AWR Source Databases in Repositor
• Highlight database from list, (clicking on target name will take
performance home page for target.)
• Run basic reports, view ASH Analytics or perform ADDM Com
• Also Add databases from the options.
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 29/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Warehouse Source Databases
• Clicking on any
Name will takeperformance hfor that target.
• Target Type, DBversion info, owsnapshot, (ETL enabled.
• AWRW objectdbsnmp.CAW_
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 30/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
High Level Snapshot Data
•Shows numsnapshots vcounts.
• Shows oldenewest sna
• AWRW objedbsnmp.CA
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 31/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Actions Drop Down
•Most options are also in menuof database list.
• Enable or Disable ETL Jobs foDatabases.
•Update snapshots via immediETL job on any source target inWarehouse.
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 32/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Would like to View Data Differently, Change Order
•
Uncheck any Coview less inform
• Can add Snapshinformation, (addata to filter thr
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 33/46
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
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 34/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Security- Administrators of AWR Data in the Ware
Allows the ability to remmanage AWR snapshotsAWR Warehouse, not juwarehouse data.
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 35/46
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 CasesSummary
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 36/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 37/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
What Can I do with the AWR Warehouse?
Oracle Confidential – In
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
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 38/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
CPU Usage Issues
“Nothing’s chamonths…”
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 39/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Using the AWR Warehouse for Capacity Planning
“Do we really needpartitioning and prOur disk usage hasincreased this last
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 40/46
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
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 41/46
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
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
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 42/46
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 CasesSummary
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 43/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Warehouse Offers
•
Incredible new repository to store AWR data from source targ
• Easy to use and familiar interface to run common reports anddata from
• Simple schema additions to existing source database to mana
inspect information or isolate issues.
• Only small changes to existing AWR queries to enhance to AWWarehouse queries.
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 44/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Want to Learn More?
Oracle Screenwatch: https://www.youtube.com/watch?v=StydM
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-pScripts: http://dbakevlar.com/scripts/
Oracle Confidential
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 45/46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential
Connect with me via Social Media:
7/17/2019 Oracle AWR Warehouse.pdf
http://slidepdf.com/reader/full/oracle-awr-warehousepdf 46/46