Presentation on theme: "Look Before You Leap! Oracle 11g Real Application Testing"— Presentation transcript:
1 Look Before You Leap! Oracle 11g Real Application Testing Gavin Soorma,Senior Oracle DBA, HBOSA
2 Change Management and its challenges Change is mandatory – Legal compliance, security, product supportChange is technology driven to enable business to have a competitive edgeSignificant time, effort and money is spent before system changes can be successfully deployed in a production environmentMany issues go undetected until production deployment adversely affecting application availability, user confidence and reputationInability of test scripts and simulation tools to test using real production workloads.Test workloads not accurate representations of peak production workloads.
3 Oracle 11g Real Application Testing Two ComponentsDatabase ReplaySQL Performance AnalyzerCapture live workload on production systemReplay production workload on test system with the same timing, concurrency, dependency and transactional properties of the original workloadTesting cycles for complex applications is reduced from months to few days – faster deploymentReduce cost of change and risk of change
4 Database ReplayWith 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 changesOperating system migrationsHardware migrationsPatches, upgrades,Database parameter changes**Database Upgrades – to 11g is now supported**
5 SPA – SQL Performance Analyzer Predict regression in SQL statements performance before end users are affected.Assess impact of change on SQL response timeUnit testing of single SQL or set of SQL statementsOptimizer version changes, access path changes, database parameter changes, index addition and deletion etcDatabase ReplayReplay real database workloadAssess impact of change on total workload throughputSPA‘What if’ analysis and predicts deviations in SQL performance
16 SQL> SELECT INDEX_NAME FROM USER_INDEXES WHERE TABLE_NAME='SALES'; SALES_PROD_BIXSALES_CUST_BIXSALES_TIME_BIXSALES_CHANNEL_BIXSALES_PROMO_BIXSQL> 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_INVISIBLENAME TYPE VALUEoptimizer_use_invisible_indexes boolean FALSE
26 Database Replay Workflow Workload CaptureExternal client requests to the database tracked and stored in binary files called capture filesWorkload ProcessingBefore replay, captured workload files have to be processed.Process once – replay many timesTransforms captured data into replay filesWorkload ReplayReplay Clients will run the captured and processed workload files on the target serverAnalysis and ReportingAnalyze capture and replay and report any errors or divergence in data. Compare AWR reports gathered at both capture and replay and provide comparison reports
43 Start The Replay Clients apex:/u01/oracle/capture> wrc replaydir=/u01/oracle/capture userid=system password=oracleWorkload Replay Client: Release Production on Tue Jul 29 14:41:Copyright (c) 1982, 2007, Oracle. All rights reserved.Wait for the replay to start (14:41:23)
Your consent to our cookies if you continue to use this website.