SlideShare a Scribd company logo
1 of 9
Download to read offline
Case Study
Oracle Database Performance Tuning
For
Hospital Domain
Oracle Database Performance Tuning
CASE STUDY
2
© SIMPLE LOGIC IT PVT.LTD.(www.simplelogic.in)
COMPANY CLIENT PROFILE:
• Established in 1897, the This
Group has its roots in India's
Swadeshi movement. One of
India's most trusted brands,
with revenues of USD 4.1
billion, it enjoys the patronage
of 1.1 billion consumers
globally across our consumer
goods, real estate, appliances,
agri and many other
businesses.
• Its a charitable trust
established in year 1984,
conducts a clinic for the
impoverished, at Okhla, New
Delhi.
• It, was commissioned in
September 2004 with the
purpose of providing Quality
healthcare services at
affordable cost.
TECHNOLOGIES USED:
• Database: Oracle 9.2.0.1.0
• OS Platform: Windows 2003 64
bit
• Application Used: Health care
application
OVERVIEW:
Its a charitable trust established in year 1984, conducts a clinic for the
impoverished, at Okhla, New Delhi.
It, was commissioned in September 2004 with the purpose of providing Quality
healthcare services at affordable cost.
Facilities
The Outpatient department comprises of various specialty and super-specialty
areas - General Medicine, Pediatrics, Surgery, Orthopedics, ENT, Ophthalmology,
Dermatology, Cardiology, Urology, Nephrology, Psychiatry, Dentistry, Gynecology &
Obstetrics, Physiotherapy, etc.
Other facilities are Adult and New born Intensive care units, Operation theaters,
Endoscopy center, Dialysis, Maternity rooms, Diet & Nutrition, etc.
This Hospital aims to be a center of Medical excellence by achieving high
standards of medical services and human compassion.
CHALLENGES:
Mentioned below were the major database performance issues faced by the Client:
Performance Bottleneck.
Long running reports.
High CPU consumption.
Excessive I/O utilization.
Long queue of customers for billing.
Slow transactions.
Achievement Executive Summary
SIMPLE LOGIC IT PVT LTD conducted a technical assessment on Hospital
database on Windows. Statpack reports and OS performance counters were
studied for understanding the database performance. Top time
Oracle Database Performance Tuning
CASE STUDY
3
© SIMPLE LOGIC IT PVT.LTD.(www.simplelogic.in)
consuming queries were analyzed. Memory parameters resizing, Re-indexing and
Removing unusable indexes, stats gathering with different clauses were some of
the changes made to the system involved. This document presents the before and
after image of the database performance in detail.
The goal of the technical assessment of the present environment was to identify
factors which are negatively affecting system performance and response time and
tuning them
Section Improvement Impact
Database migration
on new OS and
RAID configuration Faster I/O and I/O balancing High
Table Indexing Faster query execution High
Memory parameters
Resizing Oracle Instance Efficiency High
Statistics gathering Faster query execution High
Data file
management Space management Medium
INITIAL ANALYSIS PERFORMED:
Studied statpack reports.
Monitored Logical and physical reads of the tables.
Monitored OS per performance counters.
Traced the time consuming queries.
Analysis of SQL query plans.
Planned for Index creation.
ISSUES IDENTIFIED:
Below were the issues identified on the databases which were affecting the
performance:
Excessive load on storage.
RAID configuration and OS configuration were incorrect.
Outdated table statistics.
Oracle Database Performance Tuning
CASE STUDY
4
© SIMPLE LOGIC IT PVT.LTD.(www.simplelogic.in)
Long running reports
Optimizer plan instability.
Wrong Instance/SGA Sizing issue.
Excessive unwanted disk I/O calls.
Query Full table scans.
Wrong Index scan.
STEPS PERFORMED FOR PERFORMANCE TUNING:
Database Migration from Old server to New Server with New RAID
Configuration
After analyzing statpack report and OS level performance counter, we
observed that there is disk I/O contention issue at OS level.
We suggested RAIO 0 for OS and RAID 5 with 3 disks for Database.
Memory Parameters resizing:
Necessary memory parameters where resized according to the
performance need.
Table level Statistics gathering and fixing:
Statistics were gathered for the required schemas and changed as per the
data/optimizer requirement.
I/O Balancing
Distributed Redo and control files on RAID 0 and data files and Backup on
RAID 5
Below tasks were performed:
1) Table re-indexing for top and contention causing Queries
2) Index creations as per new optimizer plan and query filters/logic
3) Existing index modifications required for query tuning
Oracle Database Performance Tuning
CASE STUDY
5
© SIMPLE LOGIC IT PVT.LTD.(www.simplelogic.in)
DATABASE PERFORMANCE GAIN AFTER TUNING:
Performance gain by DB Migration and I/O balancing:
1. Avg db file scattered read from 26 ms to 1ms
2. Avg db file sequential read from 9 ms to 1 ms
3. Avg log file sync from 519 ms to 3 ms
4. Avg log file parallel write from 265 ms to 3 ms
Oracle Database Performance Tuning
CASE STUDY
6
© SIMPLE LOGIC IT PVT.LTD.(www.simplelogic.in)
Disk I/O counters (Before)
Reaching 100%
Disk I/O counters (After)
Below 20-50%
Oracle Database Performance Tuning
CASE STUDY
7
© SIMPLE LOGIC IT PVT.LTD.(www.simplelogic.in)
Performance gain by Instance tuning:
Oracle Database Performance Tuning
CASE STUDY
8
© SIMPLE LOGIC IT PVT.LTD.(www.simplelogic.in)
A]Performance benchmarking with the help of end users
Sr
No
Area Affected Time taken for per
transaction
Current
Time
Required
Time
Actual
Time
1 OPD Billing
For General Patients 3-4
mins
30 secs 5 sec
For ART/Smile Train Patients 5-8 mns 45 secs 10 sec
2 IPD Billing
Final Bill Generation 30 min
to 1 hr
2-3 min 1-2min
IPD Deposit Vouchers 1-1.30
min
30 sec 4 sec
3 Retail Pharmacy
OP Billing for General Patients 3-5 min 30 sec 5 sec
OP Billing for Sr Citizen / Discounted
Patients
3-5
mins
45 sec 5 sec
IP Billing 2-20
min
2 min 5 sec
IP Billing Returns 15-20
min
1-2 min 20 sec
4 Material Management
General Stores PO 5-10
min
2-3 min 5 sec
General Stores GRN 10-15
min
2-3 min 2 min
10 sec
General Stores SIB 5-6 min 2 min 2 sec
Pharmacy Stores PO 10-15
min
2-4 min 4 secs
Oracle Database Performance Tuning
CASE STUDY
9
© SIMPLE LOGIC IT PVT.LTD.(www.simplelogic.in)
Pharmacy Stores GRN 10-30
min
3-4 min 40
secs
Pharmacy Stores SIB 10 min 2-3 min 2 sec
5 Doctors Payment
IPD 1 Hr + Min 2 min
40 sec
OPD Summary 1 Hr + Min 5 min
20 sec
OP details 1 Hr + Min 2 min
20 sec
Resource and time consuming reports resolved (70-90% gainachieved):

More Related Content

Similar to Oracle database performance tuning

Intel® Xeon® processor E7-8800/4800 v3 Application Showcase
Intel® Xeon® processor E7-8800/4800 v3 Application ShowcaseIntel® Xeon® processor E7-8800/4800 v3 Application Showcase
Intel® Xeon® processor E7-8800/4800 v3 Application ShowcaseIntel IT Center
 
Epic Clarity Running on Exadata
Epic Clarity Running on ExadataEpic Clarity Running on Exadata
Epic Clarity Running on ExadataEnkitec
 
About IT Analyzer
About IT AnalyzerAbout IT Analyzer
About IT Analyzerguest8464ae
 
Performance tuning intro
Performance tuning introPerformance tuning intro
Performance tuning introaioughydchapter
 
Collaborate 2012-business data transformation and consolidation
Collaborate 2012-business data transformation and consolidationCollaborate 2012-business data transformation and consolidation
Collaborate 2012-business data transformation and consolidationChain Sys Corporation
 
Collaborate 2012-business data transformation and consolidation for a global ...
Collaborate 2012-business data transformation and consolidation for a global ...Collaborate 2012-business data transformation and consolidation for a global ...
Collaborate 2012-business data transformation and consolidation for a global ...Chain Sys Corporation
 
A JDE Hat Trick – 3 Ways to Extend your JDE and Get Great Efficiencies
A JDE Hat Trick – 3 Ways to Extend your JDE and Get Great EfficienciesA JDE Hat Trick – 3 Ways to Extend your JDE and Get Great Efficiencies
A JDE Hat Trick – 3 Ways to Extend your JDE and Get Great EfficienciesTeamCain
 
Oracle Health Check & Performance Tuning Brochure
Oracle Health Check & Performance Tuning BrochureOracle Health Check & Performance Tuning Brochure
Oracle Health Check & Performance Tuning BrochureLera Technologies
 
Oracle Database Appliance X5-2
Oracle Database Appliance X5-2 Oracle Database Appliance X5-2
Oracle Database Appliance X5-2 Yasir El Nimr
 
Faster Data Processing for healthcare system
Faster Data Processing for healthcare systemFaster Data Processing for healthcare system
Faster Data Processing for healthcare systemRolta
 
Database design to meet 3-year growth plan for Alpha Natural Resources
Database design to meet 3-year growth plan for Alpha Natural ResourcesDatabase design to meet 3-year growth plan for Alpha Natural Resources
Database design to meet 3-year growth plan for Alpha Natural ResourcesRolta
 
The 5S Approach to Performance Tuning by Chuck Ezell
The 5S Approach to Performance Tuning by Chuck EzellThe 5S Approach to Performance Tuning by Chuck Ezell
The 5S Approach to Performance Tuning by Chuck EzellDatavail
 
12 1-man-operation center-ug(2)
12 1-man-operation center-ug(2)12 1-man-operation center-ug(2)
12 1-man-operation center-ug(2)Ron DeLong
 
Mike Wycoff
Mike WycoffMike Wycoff
Mike Wycoffmgwycoff
 
Mike Wycoff
Mike WycoffMike Wycoff
Mike Wycoffmgwycoff
 
Mike Wycoff
Mike WycoffMike Wycoff
Mike Wycoffmgwycoff
 
Beyond SQL Tuning: Insider's Guide to Maximizing SQL Performance
Beyond SQL Tuning: Insider's Guide to Maximizing SQL PerformanceBeyond SQL Tuning: Insider's Guide to Maximizing SQL Performance
Beyond SQL Tuning: Insider's Guide to Maximizing SQL PerformanceAshish Agrawal
 

Similar to Oracle database performance tuning (20)

Intel® Xeon® processor E7-8800/4800 v3 Application Showcase
Intel® Xeon® processor E7-8800/4800 v3 Application ShowcaseIntel® Xeon® processor E7-8800/4800 v3 Application Showcase
Intel® Xeon® processor E7-8800/4800 v3 Application Showcase
 
Epic Clarity Running on Exadata
Epic Clarity Running on ExadataEpic Clarity Running on Exadata
Epic Clarity Running on Exadata
 
About IT Analyzer
About IT AnalyzerAbout IT Analyzer
About IT Analyzer
 
Performance Tuning intro
Performance Tuning introPerformance Tuning intro
Performance Tuning intro
 
Performance tuning intro
Performance tuning introPerformance tuning intro
Performance tuning intro
 
Collaborate 2012-business data transformation and consolidation
Collaborate 2012-business data transformation and consolidationCollaborate 2012-business data transformation and consolidation
Collaborate 2012-business data transformation and consolidation
 
Collaborate 2012-business data transformation and consolidation for a global ...
Collaborate 2012-business data transformation and consolidation for a global ...Collaborate 2012-business data transformation and consolidation for a global ...
Collaborate 2012-business data transformation and consolidation for a global ...
 
Dr. Jim Murray: How do we Protect our Systems and Meet Compliance in a Rapidl...
Dr. Jim Murray: How do we Protect our Systems and Meet Compliance in a Rapidl...Dr. Jim Murray: How do we Protect our Systems and Meet Compliance in a Rapidl...
Dr. Jim Murray: How do we Protect our Systems and Meet Compliance in a Rapidl...
 
A JDE Hat Trick – 3 Ways to Extend your JDE and Get Great Efficiencies
A JDE Hat Trick – 3 Ways to Extend your JDE and Get Great EfficienciesA JDE Hat Trick – 3 Ways to Extend your JDE and Get Great Efficiencies
A JDE Hat Trick – 3 Ways to Extend your JDE and Get Great Efficiencies
 
Oracle Health Check & Performance Tuning Brochure
Oracle Health Check & Performance Tuning BrochureOracle Health Check & Performance Tuning Brochure
Oracle Health Check & Performance Tuning Brochure
 
Oracle Database Appliance X5-2
Oracle Database Appliance X5-2 Oracle Database Appliance X5-2
Oracle Database Appliance X5-2
 
Faster Data Processing for healthcare system
Faster Data Processing for healthcare systemFaster Data Processing for healthcare system
Faster Data Processing for healthcare system
 
Database design to meet 3-year growth plan for Alpha Natural Resources
Database design to meet 3-year growth plan for Alpha Natural ResourcesDatabase design to meet 3-year growth plan for Alpha Natural Resources
Database design to meet 3-year growth plan for Alpha Natural Resources
 
The 5S Approach to Performance Tuning by Chuck Ezell
The 5S Approach to Performance Tuning by Chuck EzellThe 5S Approach to Performance Tuning by Chuck Ezell
The 5S Approach to Performance Tuning by Chuck Ezell
 
12 1-man-operation center-ug(2)
12 1-man-operation center-ug(2)12 1-man-operation center-ug(2)
12 1-man-operation center-ug(2)
 
Mike Wycoff
Mike WycoffMike Wycoff
Mike Wycoff
 
Mike Wycoff
Mike WycoffMike Wycoff
Mike Wycoff
 
Mike Wycoff
Mike WycoffMike Wycoff
Mike Wycoff
 
Beyond SQL Tuning: Insider's Guide to Maximizing SQL Performance
Beyond SQL Tuning: Insider's Guide to Maximizing SQL PerformanceBeyond SQL Tuning: Insider's Guide to Maximizing SQL Performance
Beyond SQL Tuning: Insider's Guide to Maximizing SQL Performance
 
RakeshDhanani
RakeshDhananiRakeshDhanani
RakeshDhanani
 

Recently uploaded

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 

Recently uploaded (20)

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Oracle database performance tuning

  • 1. Case Study Oracle Database Performance Tuning For Hospital Domain
  • 2. Oracle Database Performance Tuning CASE STUDY 2 © SIMPLE LOGIC IT PVT.LTD.(www.simplelogic.in) COMPANY CLIENT PROFILE: • Established in 1897, the This Group has its roots in India's Swadeshi movement. One of India's most trusted brands, with revenues of USD 4.1 billion, it enjoys the patronage of 1.1 billion consumers globally across our consumer goods, real estate, appliances, agri and many other businesses. • Its a charitable trust established in year 1984, conducts a clinic for the impoverished, at Okhla, New Delhi. • It, was commissioned in September 2004 with the purpose of providing Quality healthcare services at affordable cost. TECHNOLOGIES USED: • Database: Oracle 9.2.0.1.0 • OS Platform: Windows 2003 64 bit • Application Used: Health care application OVERVIEW: Its a charitable trust established in year 1984, conducts a clinic for the impoverished, at Okhla, New Delhi. It, was commissioned in September 2004 with the purpose of providing Quality healthcare services at affordable cost. Facilities The Outpatient department comprises of various specialty and super-specialty areas - General Medicine, Pediatrics, Surgery, Orthopedics, ENT, Ophthalmology, Dermatology, Cardiology, Urology, Nephrology, Psychiatry, Dentistry, Gynecology & Obstetrics, Physiotherapy, etc. Other facilities are Adult and New born Intensive care units, Operation theaters, Endoscopy center, Dialysis, Maternity rooms, Diet & Nutrition, etc. This Hospital aims to be a center of Medical excellence by achieving high standards of medical services and human compassion. CHALLENGES: Mentioned below were the major database performance issues faced by the Client: Performance Bottleneck. Long running reports. High CPU consumption. Excessive I/O utilization. Long queue of customers for billing. Slow transactions. Achievement Executive Summary SIMPLE LOGIC IT PVT LTD conducted a technical assessment on Hospital database on Windows. Statpack reports and OS performance counters were studied for understanding the database performance. Top time
  • 3. Oracle Database Performance Tuning CASE STUDY 3 © SIMPLE LOGIC IT PVT.LTD.(www.simplelogic.in) consuming queries were analyzed. Memory parameters resizing, Re-indexing and Removing unusable indexes, stats gathering with different clauses were some of the changes made to the system involved. This document presents the before and after image of the database performance in detail. The goal of the technical assessment of the present environment was to identify factors which are negatively affecting system performance and response time and tuning them Section Improvement Impact Database migration on new OS and RAID configuration Faster I/O and I/O balancing High Table Indexing Faster query execution High Memory parameters Resizing Oracle Instance Efficiency High Statistics gathering Faster query execution High Data file management Space management Medium INITIAL ANALYSIS PERFORMED: Studied statpack reports. Monitored Logical and physical reads of the tables. Monitored OS per performance counters. Traced the time consuming queries. Analysis of SQL query plans. Planned for Index creation. ISSUES IDENTIFIED: Below were the issues identified on the databases which were affecting the performance: Excessive load on storage. RAID configuration and OS configuration were incorrect. Outdated table statistics.
  • 4. Oracle Database Performance Tuning CASE STUDY 4 © SIMPLE LOGIC IT PVT.LTD.(www.simplelogic.in) Long running reports Optimizer plan instability. Wrong Instance/SGA Sizing issue. Excessive unwanted disk I/O calls. Query Full table scans. Wrong Index scan. STEPS PERFORMED FOR PERFORMANCE TUNING: Database Migration from Old server to New Server with New RAID Configuration After analyzing statpack report and OS level performance counter, we observed that there is disk I/O contention issue at OS level. We suggested RAIO 0 for OS and RAID 5 with 3 disks for Database. Memory Parameters resizing: Necessary memory parameters where resized according to the performance need. Table level Statistics gathering and fixing: Statistics were gathered for the required schemas and changed as per the data/optimizer requirement. I/O Balancing Distributed Redo and control files on RAID 0 and data files and Backup on RAID 5 Below tasks were performed: 1) Table re-indexing for top and contention causing Queries 2) Index creations as per new optimizer plan and query filters/logic 3) Existing index modifications required for query tuning
  • 5. Oracle Database Performance Tuning CASE STUDY 5 © SIMPLE LOGIC IT PVT.LTD.(www.simplelogic.in) DATABASE PERFORMANCE GAIN AFTER TUNING: Performance gain by DB Migration and I/O balancing: 1. Avg db file scattered read from 26 ms to 1ms 2. Avg db file sequential read from 9 ms to 1 ms 3. Avg log file sync from 519 ms to 3 ms 4. Avg log file parallel write from 265 ms to 3 ms
  • 6. Oracle Database Performance Tuning CASE STUDY 6 © SIMPLE LOGIC IT PVT.LTD.(www.simplelogic.in) Disk I/O counters (Before) Reaching 100% Disk I/O counters (After) Below 20-50%
  • 7. Oracle Database Performance Tuning CASE STUDY 7 © SIMPLE LOGIC IT PVT.LTD.(www.simplelogic.in) Performance gain by Instance tuning:
  • 8. Oracle Database Performance Tuning CASE STUDY 8 © SIMPLE LOGIC IT PVT.LTD.(www.simplelogic.in) A]Performance benchmarking with the help of end users Sr No Area Affected Time taken for per transaction Current Time Required Time Actual Time 1 OPD Billing For General Patients 3-4 mins 30 secs 5 sec For ART/Smile Train Patients 5-8 mns 45 secs 10 sec 2 IPD Billing Final Bill Generation 30 min to 1 hr 2-3 min 1-2min IPD Deposit Vouchers 1-1.30 min 30 sec 4 sec 3 Retail Pharmacy OP Billing for General Patients 3-5 min 30 sec 5 sec OP Billing for Sr Citizen / Discounted Patients 3-5 mins 45 sec 5 sec IP Billing 2-20 min 2 min 5 sec IP Billing Returns 15-20 min 1-2 min 20 sec 4 Material Management General Stores PO 5-10 min 2-3 min 5 sec General Stores GRN 10-15 min 2-3 min 2 min 10 sec General Stores SIB 5-6 min 2 min 2 sec Pharmacy Stores PO 10-15 min 2-4 min 4 secs
  • 9. Oracle Database Performance Tuning CASE STUDY 9 © SIMPLE LOGIC IT PVT.LTD.(www.simplelogic.in) Pharmacy Stores GRN 10-30 min 3-4 min 40 secs Pharmacy Stores SIB 10 min 2-3 min 2 sec 5 Doctors Payment IPD 1 Hr + Min 2 min 40 sec OPD Summary 1 Hr + Min 5 min 20 sec OP details 1 Hr + Min 2 min 20 sec Resource and time consuming reports resolved (70-90% gainachieved):