DATABASE MANAGEMENT SYSTEM PERFORMANCE ANALYSIS AND COMPARISON Margesh Naik

advertisement
DATABASE MANAGEMENT SYSTEM PERFORMANCE ANALYSIS AND
COMPARISON
Margesh Naik
B.E, Veer Narmad South Gujarat University, India, 2008
PROJECT
Submitted in partial satisfaction of
the requirements for the degree of
MASTER OF SCIENCE
in
COMPUTER SCIENCE
at
CALIFORNIA STATE UNIVERSITY, SACRAMENTO
SPRING
2011
DATABASE MANAGEMENT SYSTEM PERFORMANCE ANALYSIS AND
COMPARISON
A Project
by
Margesh Naik
Approved by:
__________________________________, Committee Chair
Mary J Lee, Ph.D
___________________________________, Second Reader
Senad Busovaca, Ph.D
______________________________
Date
ii
Student: Margesh Naik
I certify that this student has met the requirements for format contained in
the University format manual, and that this Project is suitable for shelving in the Library
and credit is to be awarded for the Project.
______________________________, Graduate Coordinator
Nik Faroughi, Ph.D
Department of Computer Science
iii
_________________
Date
Abstract
of
DATABASE MANAGEMENT SYSTEM PERFORMANCE ANALYSIS AND
COMPARISON
by
Margesh Naik
The intent of this project is to measure and analyze the performance of
two widely used Database Management System technologies: SQL and Oracle, and to
determine which is best suited for what types of query executions.
The main goal of the project is to produce a guide for application
developers who are developing the applications where database is a considerable part and
where data retrieval timing is an important factor. To achieve this goal both DBMS
technologies will be tested under various conditions and the results will be analyzed.
The measurement will be done for different types of queries for both
DBMS(s) by maintaining the same system environment. Measurement factors will be
query execution time and memory space requirements. The constraints will be
maintaining the identical hardware configurations and system load, i.e., same number of
records in both DBMS(s).
______________________________, Committee Chair
Mary J Lee, Ph.D
_______________________________
Date
iv
ACKNOWLEDGMENTS
I would like to extend my gratitude to my project advisor Dr. Mary J Lee
for guiding me throughout this project and helping me complete this project successfully.
In addition, I would like to thank The Department of Computer Science at California
State University for extending this opportunity for me to pursue this program and guiding
me all the way to become a successful student.
v
TABLE OF CONTENTS
Page
Acknowledgements……………………………………………………………………....vi
List of Tables…………………………………………………………………………….vi
List of Figures…………………………………………………………………………...vii
Chapter
1. INTRODUCTION ……………...…..………..………………………………….……1
2. BACKGROUND……………………………………………………………………...3
3. SQL DATABASE MANAGEMENT
SYSTEM……………………..……………………………………………………......4
4. ORACLE DATABASE MANAGEMENT
SYSTEM………………………………………………………………………………9
5. PROJECT PROBLEM AND SOLUTION APROACH…………………………….13
6. PROJECT RESULTS………………………………………………………………..21
7. COMPARISON OF SQL AND ORACLE ….……………………………………..30
8. CONCLUSION….…….……………...…………...………………………………...41
Appendix…...……………………………………………………………………………43
Bibliography………………………….……………………………….…………………65
vi
LIST OF TABLES
Page
1.
Table 1 Average Execution Time for Insert Query.….…..…………….…..…30
2.
Table 2 Average Execution Time for Select Query..…….……………………32
3.
Table 3 Average Execution Time for Join Query......………………………....34
4.
Table 4 Average Execution Time for Update Query...………………………..35
5.
Table 5 Average Execution Time for Delete Query ………………………….37
6.
Table 6 Average Memory Usage for both DBMS ...……………………….....39
vii
LIST OF FIGURES
Page
1.
Figure 1 Database Schema Design……...….…..…………….…..………….…15
2.
Figure 2 Database ER Diagram.….…..………….……….…………………....17
3.
Figure 3 Insert Query Behavior Chart………………………………………....22
4.
Figure 4 Select Query Behavior Chart………………………………………...24
5.
Figure 5 Join Query Behavior Chart…………………………………………..25
6.
Figure 6 Update Query Behavior Chart…………………………………….....27
7.
Figure 7 Delete Query Behavior Chart…………………………………...…...28
8.
Figure 8 Memory Usage Behavior Chart……………………………….…......29
9.
Figure 9 Average Execution Time for Insert Query ……..………….……......31
10.
Figure 10 Average Execution Time for Select Query……...……..….……......33
11.
Figure 11 Average Execution Time for Join Query…………….…….…….....34
12.
Figure 12 Average Execution Time for Update Query……...……..…………36
13.
Figure 13 Average Execution Time for Delete Query ……..……….………..38
14.
Figure 14 Average Memory Usage for both DBMS...……………….…….....40
viii
Download