Look Before You Leap! Oracle 11g Real Application Testing

Slides:



Advertisements
Similar presentations
Using the SQL Access Advisor
Advertisements

TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Delta Confidential 1 5/29 – 6/6, 2001 SAP R/3 V4.6c PP Module Order Change Management(OCM)
Technology for the Audit Team Copyright © 2008 ACL Services Ltd. Peter B. Millar Director, Business Development 25 June 2008 ACL AuditExchange 2009.
RAC One Node – The “Always On” Single Instance Database
Info to Enterprise Migration Implementation Case Study: SBC Corporation Presented to the Crystal Decisions Regional Users Group for the Bay Area on October.
1 Senn, Information Technology, 3 rd Edition © 2004 Pearson Prentice Hall James A. Senns Information Technology, 3 rd Edition Chapter 7 Enterprise Databases.
© 2008 Pearson Addison Wesley. All rights reserved Chapter Seven Costs.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007.
Chapter 1 The Study of Body Function Image PowerPoint
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 5 Author: Julia Richards and R. Scott Hawley.
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Chapter 1 Image Slides Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
19 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Developing Web Services.
Refreshing Materialized Views
12 Copyright © 2005, Oracle. All rights reserved. Query Rewrite.
17 Copyright © 2005, Oracle. All rights reserved. Deploying Applications by Using Java Web Start.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Addition Facts
Year 6 mental test 5 second questions
ZMQS ZMQS
ORACLE DATABASE HIGH AVAILABILITY & ORACLE 11GR2 DATA GUARD 1 Güneş EROL.
Database Systems: Design, Implementation, and Management
BT Wholesale October Creating your own telephone network WHOLESALE CALLS LINE ASSOCIATED.
Software change management
1 Dr. Ashraf El-Farghly SECC. 2 Level 3 focus on the organization - Best practices are gathered across the organization. - Processes are tailored depending.
Copyright © SoftTree Technologies, Inc. DB Tuning Expert.
Kurt Engeleiter Product Manager Database Manageability
9 Copyright © 2006, Oracle. All rights reserved. Automatic Performance Management.
ABC Technology Project
Symantec Education Skills Assessment SESA 3.0 Feature Showcase
Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009.
VOORBLAD.
1 Breadth First Search s s Undiscovered Discovered Finished Queue: s Top of queue 2 1 Shortest path from s.
Squares and Square Root WALK. Solve each problem REVIEW:
© 2012 National Heart Foundation of Australia. Slide 2.
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
Chapter 5 Test Review Sections 5-1 through 5-4.
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
Addition 1’s to 20.
25 seconds left…...
Graphing AWR Data in Excel
Copyright 2001 Advanced Strategies, Inc. 1 Data Bridging An Overview Prepared for DIGIT By Advanced Strategies, Inc.
Januar MDMDFSSMDMDFSSS
Week 1.
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
©2008 Prentice Hall Business Publishing, Auditing 12/e, Arens/Beasley/Elder The Impact of Information Technology on the Audit Process Chapter 12.
PSSA Preparation.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 20 Systems Operations and Support.
Chapter 13 The Data Warehouse
How Cells Obtain Energy from Food
CpSc 3220 Designing a Database
13 Copyright © Oracle Corporation, All rights reserved. Controlling User Access.
Managing Change with Real Application Testing and Snapshot Standby Barry Hodges Senior Solution Architect, Sales Consulting, Oracle NZ.
1 © 2010 Julian Dyke Real Application Testing Julian Dyke Independent Consultant juliandyke.com Web Version.
2 Copyright © 2007, Oracle. All rights reserved. Realistic Testing Using Database Replay.
Presentation transcript:

Look Before You Leap! Oracle 11g Real Application Testing Gavin Soorma, Senior Oracle DBA, HBOSA

Change Management and its challenges Change is mandatory – Legal compliance, security, product support Change is technology driven to enable business to have a competitive edge Significant time, effort and money is spent before system changes can be successfully deployed in a production environment Many issues go undetected until production deployment adversely affecting application availability, user confidence and reputation Inability of test scripts and simulation tools to test using real production workloads. Test workloads not accurate representations of peak production workloads.

Oracle 11g Real Application Testing Two Components Database Replay SQL Performance Analyzer Capture live workload on production system Replay production workload on test system with the same timing, concurrency, dependency and transactional properties of the original workload Testing cycles for complex applications is reduced from months to few days – faster deployment Reduce cost of change and risk of change

Database Replay With Database Replay, DBA’s and System Administrators can test: Database upgrades, patches, parameter, schema changes, etc. Configuration changes such as conversion from a single instance to RAC,ASM, etc. Storage, network, interconnect changes Operating system migrations Hardware migrations Patches, upgrades, Database parameter changes **Database Upgrades – 10.2.0.4 to 11g is now supported**

SPA – SQL Performance Analyzer Predict regression in SQL statements performance before end users are affected. Assess impact of change on SQL response time Unit testing of single SQL or set of SQL statements Optimizer version changes, access path changes, database parameter changes, index addition and deletion etc Database Replay Replay real database workload Assess impact of change on total workload throughput SPA ‘What if’ analysis and predicts deviations in SQL performance

apex:/u01/oracle/scripts> cat load.sh for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 do echo Running Query $i ... echo sqlplus -s sh/sh <<EOF set timing on @query.sql EOF Done apex:/u01/oracle/scripts> cat query.sql select b.country_id,country_name,sum(quantity_sold),sum(amount_sold) from sales a, customers b,countries c where a.cust_id=b.cust_id and b.country_id =c.country_id and a.cust_id=987 group by b.country_id,country_name / ... and a.cust_id=1660

SQL> SELECT INDEX_NAME FROM USER_INDEXES WHERE TABLE_NAME='SALES'; ------------------------------ SALES_PROD_BIX SALES_CUST_BIX SALES_TIME_BIX SALES_CHANNEL_BIX SALES_PROMO_BIX SQL> ALTER INDEX SALES_PROD_BIX INVISIBLE; Index altered. SQL> ALTER INDEX SALES_CUST_BIX INVISIBLE; SQL> ALTER INDEX SALES_TIME_BIX INVISIBLE; SQL> ALTER INDEX SALES_CHANNEL_BIX INVISIBLE; SQL> ALTER INDEX SALES_PROMO_BIX INVISIBLE; SQL> SHOW PARAMETER USE_INVISIBLE NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ optimizer_use_invisible_indexes boolean FALSE

Database Replay Workflow Workload Capture External client requests to the database tracked and stored in binary files called capture files Workload Processing Before replay, captured workload files have to be processed. Process once – replay many times Transforms captured data into replay files Workload Replay Replay Clients will run the captured and processed workload files on the target server Analysis and Reporting Analyze capture and replay and report any errors or divergence in data. Compare AWR reports gathered at both capture and replay and provide comparison reports

apex:/u01/oracle/capture> ls -l total 66640 -rw-r----- 1 oracle dba 1131 Jul 29 14:02 wcr_4j3pkch00384c.rec -rw-r----- 1 oracle dba 1152 Jul 29 14:02 wcr_4j3pkch003n6y.rec -rw-r----- 1 oracle dba 1078 Jul 29 14:02 wcr_4j3pkch003s46.rec -rw-r----- 1 oracle dba 904 Jul 29 14:02 wcr_4j3pkcs00245s.rec -rw-r----- 1 oracle dba 8648 Jul 29 14:02 wcr_4j3pkcs00284k.rec -rw-r----- 1 oracle dba 904 Jul 29 14:02 wcr_4j3pkd000202y.rec -rw-r----- 1 oracle dba 1133 Jul 29 14:02 wcr_4j3pkd0003s50.rec -rw-r----- 1 oracle dba 1131 Jul 29 14:02 wcr_4j3pkd4003s3h.rec -rw-r----- 1 oracle dba 1460 Jul 29 14:11 wcr_4j3pkd8003h0c.rec -rw-r----- 1 oracle dba 1133 Jul 29 14:02 wcr_4j3pkds002h0w.rec -rw-r----- 1 oracle dba 916 Jul 29 14:02 wcr_4j3pkds003c6q.rec -rw-r----- 1 oracle dba 1132 Jul 29 14:02 wcr_4j3pkf8002c14.rec -rw-r----- 1 oracle dba 1145 Jul 29 14:02 wcr_4j3pkg0003w6k.rec -rw-r----- 1 oracle dba 17104896 Jul 29 14:15 wcr_ca.dmp -rw-r----- 1 oracle dba 26539 Jul 29 14:15 wcr_ca.log -rw-r----- 1 oracle dba 43260 Jul 29 14:11 wcr_cr.html -rw-r----- 1 oracle dba 20826 Jul 29 14:11 wcr_cr.text -rw-r----- 1 oracle dba 306 Jul 29 14:11 wcr_fcapture.wmd -rw-r----- 1 oracle dba 236 Jul 29 14:02 wcr_scapture.wmd

Start The Replay Clients apex:/u01/oracle/capture> wrc replaydir=/u01/oracle/capture userid=system password=oracle Workload Replay Client: Release 11.1.0.6.0 - Production on Tue Jul 29 14:41:23 2008 Copyright (c) 1982, 2007, Oracle. All rights reserved. Wait for the replay to start (14:41:23)

Q & A Thanks for attending!! Q U E S T I O N S A N S W E R S GAVIN SOORMA Senior Oracle DBA Specialist HBOS Australia Contact me at : 0417713124 or gavin.soorma@hbosa.com.au A