Introduction To Database Systems
Introduction To Database Systems
Topics:
1.Introduction to Database
Systems
2.File Systems Vs DBMS
3.Advantages of DBMS
One
Library catalogues
Medical records
Bank accounts
Stock market data
Personnel systems
Product catalogues
Telephone directories
Train timetables
Airline bookings
Credit card details
Student records
Customer histories
Stock market prices
Discussion boards
and so on
data
modeling
capacity
Object-oriented
model (mid 90s)
Object-relational
model (late 90s)
Relational model
(late 80s)
Hybrid model
(mid 80s)
File System
(before 70s)
* adapted from the material in http://www.ktdata.co.kr/ktdata/kthome7/zeus_5.htm
data
management
facilities
Linear files
Sequence of records with a fixed format usually stored on a
single file
Limitation: single file
Hierarchical structure
Network structure: similar to the hierarchical database with the
implementation of many-to-many relationships
Relational structure
Object-Oriented structure
Objects (collection of data items and procedures) and interactions
between them.
Is this really a new paradigm, or a special case of network structure?
Separate implementation vs. implementation on top of a RDBMS
Advantages:
Simplicity
Data Security and Data Integrity
Efficiency
Disadvantages :
Implementation Complexity
Lack of structural independence
Programming complexity
Advantages:
Conceptual Simplicity
Ease of data access
Data Integrity and capability to handle more
relationship types
Data independence
Database standards
Disadvantages
1. System complexity
Absence of structural independence
IMS
(hierarchical) IBM
IDMS (network) Computer Associates
CODASYL DBMS (network) Oracle
Advantages:
Structural Independence
Conceptual Simplicity
Ease of design, implementation,
maintenance and usage.
Ad hoc query capability
Disadvantages:
Hardware Overheads
Ease of design can lead to bad design
Advantages:
Capability to handle large number of different
data types
Marriage of object-oriented programming and
database technology
Data access
Disadvantages:
Difficult to maintain
Not suited for all applications
Introduction to Database Systems
DBMS
Database
Goals
It
Defining database
Constructing database
Manipulating database
Backend
professors.txt
34
Read
Read students.txt
students.txt
Read
Read courses.txt
courses.txt
Find&update
Find&update the
the record
record Ram
Ram
Find&update
Find&update the
the record
record BBA108
BBA108
Write
Write students.txt
students.txt
Write
Write courses.txt
courses.txt
35
System crash:
Read
Readstudents.txt
students.txt
Read
courses.txt
Read courses.txt
Find&update
Find&updatethe
therecord
recordMary
MaryJohnson
Johnson
Find&update
Find&updatethe
therecord
recordCSE444
CSE444
Write
Writestudents.txt
students.txt
Write
courses.txt
Write courses.txt
CRASH !
36
Database
DBMS approach
Data
Raw Facts
Field
Group of characters with specific meaning
Record
Logically connected fields that describe a
person, place, or thing
38
record
field
39
40
Figure 1.5
41
Need
Data
Dependence
Dependence
Field
45
Data
Redundancy
Data inconsistency
Lack of data integrity
46
advantages
FMS
Simpler to use
Less expensive
disadvantages
Typically no multi-user access
Limited to smaller databases
Limited functionality
Decentralization of data
DBMS
Greater flexibility
Greater processing power
Ensures data integrity
Supports simultaneous
access
Provides backup and
recovery controls
Advanced security
Supports Transaction
Crash Recovery
Difficult to learn
Packaged separately from the
OS
Slower processing speeds
Requires skilled administrators
Expensive
connection
(ODBC, JDBC)
Data files
Database server
(someone elses
C program)
Applications
49
Databases are
useful
Many computing
applications deal
with large amounts
of information
Database systems
give a set of tools for
storing, searching
and managing this
information
Databases for
you
Data independence
*Application programs no details of data representation
& storage
Crash recovery
Reduced application development time
Advantages of DBMS
MS Access
ORACLE
DB2
Informix
58