Module Owb Tuning
-
Upload
nicholas-goodman -
Category
Technology
-
view
2.410 -
download
0
description
Transcript of Module Owb Tuning
All information Copyright Bayon Technologies, Inc.
OWB Tuning
Methods to tune OWB mappings and flows that leverage your existing Oracle tuning expertise!
All information Copyright Bayon Technologies, Inc.
Need - Common Situation
System loads 100k records daily with no apparent issues (2 hour load time)
110k records = 4 hour load time 120k records = 12 hour load time 130k records = MAJOR PROBLEM
All information Copyright Bayon Technologies, Inc.
Need - General
DW deals with some of the largest volumes of data in enterprise
Data volume is growing, always.
Efficient and effective code is not just desirable, it is crucial
0
50
100
150
200
250
300
350
2004 2006 2008
GB
All information Copyright Bayon Technologies, Inc.
What is OWB Tuning?
The process ofMeasuringAnalyzingDiagnosing Revising
OWB solutions toDecrease loading times Increase efficiency
All information Copyright Bayon Technologies, Inc.
OWB Tuning Basics
Goal = Tuned PL/SQL / Data Access OWB Tuning Methods provide:
Monitoring, Measurements, and Diagnostic information
OWB Tuning Methods augment existing Oracle tuning methods and expertiseOWB Tuning = (Oracle tuning)++
All information Copyright Bayon Technologies, Inc.
Two General “Methods”
1. OWB Runtime Data Analysis Macro level, elapsed time, throughput,
growth of time, etc.
2. Mapping/Process Flow Analysis Tracing specific mappings/process flows,
explain plans, use of idxes, etc. Mark Rittman/Jon Mead with SolStonePlus
developed the fundamentals of this method!
All information Copyright Bayon Technologies, Inc.
Overall Methodology
Step 1: Determine candidates for tuning
Step 2 : Generate diagnostic information on problem some mappings/flows
Step 3 : Use diagnostic information as part of Oracle tuning
Step 4 : Adjust OWB mapping and measure improvement
RED = OWB Runtime Data Analysis
BLUE = Mapping/Process Flow Analysis
Step 1:Analyze OWB Runtime Data
Step 2:Generate
OWBDiaganostics
Step 3: Perform TypicalOracle Tuning
Step 4: Adjust OWB
Solutionand TEST
All information Copyright Bayon Technologies, Inc.
OWB Data Analysis
Based on “Wall Clock” analysis Sample of actual runs Relatively fine level of detail Unobtrusive
All information Copyright Bayon Technologies, Inc.
OWB Data Analysis GOALS
Establish baseline Monitor ongoing performance TUNING GOALS
Identify Tuning CandidatesQuantify ROI for tuning work
Measure improvement
All information Copyright Bayon Technologies, Inc.
Views Look Like?
ALL_RT_AUDIT_EXECUTIONS execution_audit_id execution_name object_name elapse_time updated_on
ALL_RT_AUDIT_MAP_RUNS execution_audit_id map_name start_time elapse_time number_records_inser
ted
All information Copyright Bayon Technologies, Inc.
Tuning Candidates
select OBJECT_NAME name,trunc(min(elapse_time)) min,trunc(max(elapse_time)) max,trunc(sum(elapse_time)) sum,trunc(avg(elapse_time)) avg,count(elapse_time) countfrom all_rt_audit_executionswhere 1=1AND task_type = 'PLSQL'AND created_on >= to_date('12/10/2004', 'MM/DD/YYYY')group by OBJECT_NAMEorder by avg desc;
NAME MIN MAX SUM AVG
map1 0 31988 165372 20671
map2 5494 68905 135111 19301
map3 1672 3509 20542 2567
map4 316 3511 14502 1812
map5 1018 2170 13089 1636
map6 436 1353 6784 848
map7 478 1272 6476 809
map8 309 2243 5351 668
All information Copyright Bayon Technologies, Inc.
Monitoring Performance
Throughput (time / record)
Scalability
0
500
1000
1500
2000
2500
3000
3500
500 2000
Records
Tim
e Map1
Map2
Map3
All information Copyright Bayon Technologies, Inc.
OWB Tuning : Exercise 1
All information Copyright Bayon Technologies, Inc.
Mapping/Flow Analysis
Candidate Mappings or Flows Generate
Trace files“Plans”Wait Events
Adjust Mapping/Objects Deploy and measure improvements
All information Copyright Bayon Technologies, Inc.
Mapping vs. Flows
Parts of the Whole Flows on 10g Start with Mappings
Mappings are actually tunedAll Mapping Tuning is used in Flow tuning
All information Copyright Bayon Technologies, Inc.
Mapping Diagnostic Steps
Steps1. Install enable/disable procedures
2. Include them in required mappings
3. Deploy/Execute mappings
4. Collect files, generate reports
All information Copyright Bayon Technologies, Inc.
Step 1 : Install Procedures
Add the following PL/SQL procedures to OWB DBMS_MONITOR_EN_CLIENT_TRC DBMS_MONITOR_DIS_CLIENT_TRC
Uses 10g DBMS_MONITOR package Requires execute privs
9i equivalents enable_10046_lvl_12 disable_10046
All information Copyright Bayon Technologies, Inc.
Step 1 : Install Procedures
9i enable_10046_lvl_12 (enable_y_n varchar2) disable_10046
10g DBMS_MONITOR_EN_CLIENT_TRC(TRC_ID IN VARCHAR2) DBMS_MONITOR_DIS_CLIENT_TRC (TRC_ID IN VARCHAR2)
All information Copyright Bayon Technologies, Inc.
Step 2 : Add to mappings
Pre mapping process9i : enable_10046_lvl_1210g : DBMS_MONITOR_EN_CLIENT_TRC
Post mapping process9i : disable_10046 10g : DBMS_MONITOR_DIS_CLIENT_TRC
10g includes TRC_ID
All information Copyright Bayon Technologies, Inc.
Step 2 : Add to mappings
All information Copyright Bayon Technologies, Inc.
Step 3 : Deploy/Execute Mappings
Deploy mapping w/ tracing
Execute
All information Copyright Bayon Technologies, Inc.
Step 4 : Generate Report
UDUMP directory$ORACLE_HOME/admin/<<SID>>/udump
Many files (.trc) Extract your mapping run trace data from
the files with TRCSESS Format with TKPROF
All information Copyright Bayon Technologies, Inc.
Step 4 : OVERALL
All information Copyright Bayon Technologies, Inc.
Step 4 : TRCSESS
TRCSESS output=myid.trc clientid=myid *.trc
myid = Client Identifier aka TRC_ID
All information Copyright Bayon Technologies, Inc.
Step 4: TKPROF
TKPROF myid.trc myid.txt
myid = Client Identifier aka TRC_ID
All information Copyright Bayon Technologies, Inc.
OWB Tuning : Exercises 2-3
All information Copyright Bayon Technologies, Inc.
OWB Flows
Enable tracing on individual Mappings Use TRC_ID to aggregate
Binding Mappings in Process Flow
All information Copyright Bayon Technologies, Inc.
OWB Flows
Ensure that the START task a parameter TRC_ID that can be used
(re)Deploy flow and execute with TRC_ID
All information Copyright Bayon Technologies, Inc.
OWB Flows
All information Copyright Bayon Technologies, Inc.
OWB Tuning : Exercise 4