Académique Documents
Professionnel Documents
Culture Documents
Disclaimer
All the views expressed in this presentation are the opinion of the author and do not necessarily reflect the views of Bank of America
Speaker Info
Keerti Prasad
Working in Merrill Lynch/Bank of America for 6+ years on varied applications 18+ years experience with Oracle database and its related technologies
Agenda
! Overview ! Role of Real Application Testing in Migrations ! Database Replay details ! Issues encountered during Database Replay ! Summary ! Q&A
Overview - Challenges
! Business often need new features which are available in latest software ! Infrastructure needs to be on supported version / cheaper alternative triggering migration ! Application or infrastructure changes need a rapid deployment for break fix or version changes. ! Performance of the newer systems need to be at par or better ! Any Changes Need to be tested. ! Testing methods need to be fast, reliable and consistent ! We need to simulate actual production data/volumes on the testing environment ! Real Application Testing can achieve all the above
6
! Application : Break-fixes, increasing data volumes, new requirements ! OS Platforms : Server patching/upgrades, third party upgrades ! Database : Upgrades, patching, parameter changes ! Storage/Network : Datacenter Moves
End Users
Production Support
RAC: Online
Adhoc Queries
RAC: Reporting
OGG
Online Database Reporting Database
No. Date 1 2 3
RAT Testing Change Details Hardware, OS, Database, Application Sep 2010 Not Used Migration/Upgrade/Release OS, Database, Application Upgrade/ May 2011 Not Used Release OS Upgrade, Database migration to 3Aug 2012 Extensive Node RAC, Application Upgrade/Release
12
13
! Problems occurred during migration which were exposed by DB Replay ! 11g Child Cursor issue replay was going into a hang situation. High version counts from child cursor was the cause ! Storage issue Replay was showing high i/o in some reports. Storage/ hardware changes were made which fixed the issue. ! Authentication issue Oracle database owner on OS is authenticated by third party tool. During replay, clients encountered errors. On investigation, it was found to be caused due to a bug in the authentication tool
14
! Impact during Capture and steps taken to circumvent it ! Load on server is minimal ~ 5% CPU ! Only OLTP traffic is captured during business hours, since batches can be easily reproduced. ! Captures were done for a typical workload cycle Mon-Fri business hours. They were retaken ONLY when the database went through release.
16
Top Service/Module Captured Service Module % Activity Action % Action -------------- ------------------------ ---------- ------------------ ---------APPCONN1.US.ML UNNAMED 55.22 UNNAMED 55.22 APPCONN2.US.ML UNNAMED 6.30 UNNAMED 6.30 APPCONN1.US.ML APP_SCHE.PKG_APPS_PFL.sp 5.62 Identify the Maste 5.62 PKG_APPS_PFL.SP_CALCULAT 1.62 Calculate EPI Alig 1.62 SQL*Plus 1.52 UNNAMED 1.52 -------------------------------------------------------------------------------Workload Filters DB: SOURCE Snaps: 3008-3011 # Filter Name Type Attribute Value --- ------------------------ ------- ------------ -------------------------1 APPSCHEM_USER_162 INCLUDE USER APPSCHEM_USER 2 APPSCHEMAA2_USER_162 INCLUDE USER APPSCHEMAA2_USER ----------------------------------------------------------------------------
18
20
Interconnect Usage
!!
average 8Kb ping time (ms) average fast grant time (ms) average fast block transfer time (ms) total GC blocks transferred total interconnect usage (G bits) interconnect throughput (Mb/s) Capture Not RAC Not RAC Not RAC Not RAC Not RAC Not RAC Replay 667.56 0.24 0.58 21228672 4001.231 926.56
ADDM REPORT
!!
"User I/O" wait Class
!!
Capture Replay Capture Replay Capture Replay
21
Performance
4,263,441 37,343
8.76 2,868,731 11,541 32,702 75,012 357,429 809,049 213 498 688
78,285 3,551 45.41 205,154 3,090 15.06 291,138 1,547 257,180 1,081 5.32 4.2
22
Event
db file sequential read User I/O Log file sync log file parallel write Commit System I/O
6.64 16,932,235 26,133 78,157 593 204,975 152 1 428 4.6 2.3
Read by other session User I/O db file scattered read User I/O
23
24
26
! Only selects can be ramped up. DMLs can only be replayed once. ! Some part of our application uses XA connections. They are not yet supported in Real Application testing. ! CTAS operations are not captured
27
Value
!! Maximize Availability !! Mitigate
!! Optimize !! Reduced
! ! ! ! ! !
28
Summary
! Lessons Learned - Traditional testing methods limitations: ! They have to be setup each testing cycle ! They require a lot of resources and coordination is needed amongst all teams ! Baselines set can be questionable making it difficult to compare results, remediate or tune the system ! Last month our application in BofA migrated successfully to RAC platform without any issues unlike the previous migrations. Considering past migrations, this undoubtedly was due to a combination of traditional and Real Application Testing. ! Reports from DB Replay gave conclusive evidence of system performance which boosted DBA and Application teams confidence on the migration.
Q&A
Questions ?
30
Acknoledgements/Email
My Email: Keerti Prasad (Keerti.Prasad@bankofamerica.com) Acknowledgements: Sridhar Kakumanu (Sridhar.Kakumanu@bankofamerica.com) Mohammad Awwal, Ph.D. (Mohammad.Awwal@bankofamerica.com) Jeremy Schirer (Jeremy.Schirer@bankofamerica.com) Bryant Bisnar (Bryant.Bisnar@oracle.com) Stephen Ahn (Stephen.Ahn@oracle.com)
For general information on Advanced Customer Support Services, go to oracle.com/acs or e-mail acsdirect_us@oracle.com
31