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):

Oracle database performance tuning

  • 1.
    Case Study Oracle DatabasePerformance Tuning For Hospital Domain
  • 2.
    Oracle Database PerformanceTuning 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 PerformanceTuning 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 PerformanceTuning 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 PerformanceTuning 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 PerformanceTuning 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 PerformanceTuning CASE STUDY 7 © SIMPLE LOGIC IT PVT.LTD.(www.simplelogic.in) Performance gain by Instance tuning:
  • 8.
    Oracle Database PerformanceTuning 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 PerformanceTuning 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):