Download - DBS-1 Introduction
-
8/7/2019 DBS-1 Introduction
1/19
Welcome!
Database Systems
COMP- 213
By:
Shahid Mahmood
-
8/7/2019 DBS-1 Introduction
2/19
Pre-requisites for COMP-213
COMP-200 Data structures andalgorithms
(COMP-102 ProgrammingFundamentals)
(COMP-111 Object OrientedParadigm)
-
8/7/2019 DBS-1 Introduction
3/19
Warning!Lecture slides are high-level
description of lectures
Relying only upon the slides donot guarantee good grades inexams
For achieving good grades inexams always attend lectures,Study books, and explore webresources.
-
8/7/2019 DBS-1 Introduction
4/19
Agenda
Mission Objective of the course
Significance of DBS
Definition of Database System
Course Contents
-
8/7/2019 DBS-1 Introduction
5/19
Mission Objective
To provide a fair understandingof database systems, their
architecture and how to developand maintain them
-
8/7/2019 DBS-1 Introduction
6/19
Real world applications of database
Students records; Employees records
Records about games and players
Collection of pictures, films
Inventory Management systems
Customers info
rmation in a bank,utility service providing company
Database of web pages
Database in scientific applications
-
8/7/2019 DBS-1 Introduction
7/19
Why computerized database
Due to huge volume of data in thedatabase
For better organization of variousforms of data
Due to query needs
Due to real time database use indifferent applications
-
8/7/2019 DBS-1 Introduction
8/19
Basics of Database
Data: Data is facts about a thing suchas: People, Objects, Events, and Ideasetc. (it is incomplete information)
Information: Data in presentable andmeaningful form on which somedecision can be taken.
Information is Contents of amessage
-
8/7/2019 DBS-1 Introduction
9/19
Basic Anatomy of Database
Character Field Record File
Database
For Example: Characters {A, S} Fields {Shahid, Pakistan} Record(Single) {CS 002, Shahid, Asst. Prof.} Files {Personal data, Salary} Databases {Database of allemployees of CS &IT, Database ofstudents in CSCS-100}
-
8/7/2019 DBS-1 Introduction
10/19
Definition of Database
(A) Ashared collection oflogicallyrelated data, designed to meet theinformation needs ofmultiple users.
(B) A database is a self describing (Metadata) collection ofintegrated records.
(C) A collection ofinterrelated files from
which information can be retrievedand within which information can bemanipulated.
-
8/7/2019 DBS-1 Introduction
11/19
Defining the modeling of Real-
world System
For example: A bank system, A ticketreservation system, A departmentalstore inventory system etc.,
Modeling: Convert the data involvedinto electronic form + Convertnecessary structures to keep the datainto electronic form + Keep all therules and constraints on data inelectronic form as part of this system
-
8/7/2019 DBS-1 Introduction
12/19
File Processing Systems
A file processing systems/environment is a collection ofprograms that perform services forthe end users such as production ofreports.
They rely upon inter-dependence ofdata and related program application
-
8/7/2019 DBS-1 Introduction
13/19
File Processing Systems
Historical Aspects: Initially computerswere used for Computational/Engineering purposes. Later oncomputers were used for commercialapplications which resulted intogeneration of file processingsystems/ environment.
-
8/7/2019 DBS-1 Introduction
14/19
File Processing System
Various departments of an organization usetheir own data files and applications
There is program and data interdependence;(Any change in program or data will unnecessarily effect otherrelated data or programs)
Necessary data duplication orredundancy
Inconsistent data
No data sharing between various departments
-
8/7/2019 DBS-1 Introduction
15/19
Comparison of databases
Flat-file Database: The format of adatabase where all data is stored in aplain text file like the worksheet of MSExcel.
It is appropriate for holding variable length
data.
Relational Database: A database thatgroups data using commonproperties/attributes found in the dataset. The data is stored in tables
(relations, entity sets, o
rfile) whichare usually related with each others.
-
8/7/2019 DBS-1 Introduction
16/19
Advantages of centralized
database systems
+ Data redundancy/ duplication control: ReduceUnnecessary data repetition
+ Centralized Data Sharing (Multiple data accessibility
and responsiveness)
+ Data consistency: Appearance in the same databasereflects same image
+ Data Integration: Data are logically related in asingle relation therefore easy to enquire or update
+ Convenient application development: Newapplications can use data already stored
+ Independence of programs and data
+ Security of Data: DBA and DBMS take care of it.
-
8/7/2019 DBS-1 Introduction
17/19
Advantages of centralized
database systems
+ Easy updating and maintenance
+ BetterConcurrency Control: Controlling parallelprocesses
+ Economy of scale
+ Better backup and recovery procedures
+ Provide ease to real-time systems
+ Easy carr
y and transfe
r
-
8/7/2019 DBS-1 Introduction
18/19
Disadvantages of Database
systems
Costly
Increased vulnerability due to centralizedand integrated nature
Complex Recovery
Need for explicit backup
Difficult to change the DBMS
Conversion from manual or from file systemis difficult
-
8/7/2019 DBS-1 Introduction
19/19
Questions?