Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Lecture 2
Database
Database System
DBMS
Hitesh Mahapatra
Introduction to Database
Collection of data related to a particular topic
2
Database
4
A database might be as complex and
demanding as an account tracking system
used by a bank to manage the constantly
changing accounts of thousands of bank
customers, or it could be as simple as a
collection of electronic business cards on
your laptop
5
The important thing is that a database
allows you to store data and get it or
modify it when you need to easily and
efficiently regardless of the amount of data
being manipulated
6
Elmasri says:
7
Kroenke says:
An integrated, self-describing collection of
related data
Integrated: Data is stored in a uniform way, typically all in one
place (a single physical computer for example)
Self-Describing: A database maintains a description of the data
it contains (Catalog)
8
We can also say that the database is a model of what the
users perceive
9
What
WhatisisininaaDatabase?
Database?
11
Examples
12
Example Soft wares
Traditionally,
databases ran on large, powerful
mainframes for business applications. You will
probably have heard of such packages as
Oracle or SQL Server
However with the advent of small, powerful
personal computers, databases have become
more readily usable by the average computer
user. Microsoft's Access and Borland's
Paradox are two popular PC-based engines
around
13
Database System
14
A collection of software programs that are
used to define, construct, maintain and
manipulate data in a database
15
Who
Who Needs
Needs Database
Database Systems
Systems
Typical Applications:
Corporate databases Personnel management
Inventory and purchase order
Insurance policies
……
Web data Typical Applications
management Web page management
Personalize web pages
……
16
The user of the system will be given facilities
to perform a variety of operations on such
files :
Adding new empty files to database
Inserting new data into existing files
Retrieving data from existing files
Updating data in existing files
Deleting data from existing files
Removing existing files, empty or otherwise, from the
database
17
Now we will refer these files in the
database as Tables
The
rows of such tables are referred to as
Records of that file/table
The columns can be regarded as
representing the Fields
18
DBMS
Allaccess to the database is controlled by a
sophisticated software called Data Base
Management System
20
Example
Find my GPA
21
Solution: paper-based
Advantages?
Disadvantages?
22
Solution: paper-based
Advantages?
cheap
Disadvantages?
23
Solution: paper-based
Advantages?
cheap
Disadvantages?
no queries
no sharing
24
Next solution
computer-based (flat) files +
C (Java, ...) programs to access them
25
Next solution
26
Next solution
1,Sarfraza,Chattha,Lahore
50,Tompson,Peter,NewYork
151,Shazia,Qayyum,Lahore
27
Next solution
28
Problems?
Inconvenient access to data (need ‘C++’
expertise, plus knowledge of file-layout)
Data redundancy
Integrity problems
29
Problems? (cont’d)
...
Concurrent-access anomalies
Security problems
30
Problems? (cont’d)
why?
because of two main reasons:
file-layout description is buried within the C
programs and
there is no support for transactions (concurrency
and recovery)
31
Main Products
Commercial
Oracle
IBM/DB2
MS SQL-Server
Sybase
Informix
MS Access
32
Big
BigNames
NamesininDatabase
DatabaseSystems
Systems
IBM DB2, Universal Server World’s 2nd largest after Informix acquisition
33