Escolar Documentos
Profissional Documentos
Cultura Documentos
MANAGEMENT SYSTEMS
Unit 1 - INTRODUCTION
Data: Known facts that can be recorded and have an implicit meaning.
Mini-world: Some part of the real world about which data is stored in
a database.
For example, student grades and transcripts at a university.
– Redundancy
• number of files grows with
applications, and data is
duplicated
– Inconsistency
• data is updated in one
application’s files, but not
in another’s
– Maintenance problems
• changes to data structures
mean changes to many
programs
– Difficulty combining data
• business needs may mean
users want data from
different applications
DB Time Line
Web-based
Data Warehousing
Client-server
multimedia
heterogeneous
Data Management object-oriented
Capability expert, distributed
SQL Standard
Commercial DBMS
PC DBMS
ER model
network model
Hierarchical: IMS
file management
magnetic tape
A B C
Ordering
Invoicing Payroll
filing
System System
System
Class
Student Instructor
Grade ID Department
• Advantages
• Parent-child relationship: – easy to search
– one-to-one – add new branches easily
• Disadvantages
– one-to-many
– Must establish the types of search prior to
development of the hierarchical structure
Relational database model
• Stores both
– Data about real
world objects
(entities) in tables
– Relationships
between the
tables
Relational database
16
DBMS Architectures
Centralized DBMSs
Terminals Display monitor Display monitor
... Display monitor
Application
Programs
Terminal
display control
Tex editors
...
SOFTWARE
DBMS Compilers
...
OPERATING SYSTEM
...
SERVER SERVER
Communication Network
18
Two-Tier Architecture
Application rules
Middle tier Application Application
Application server/Web Server or Web Programs, Web
server Server Pages
Data access
Database
Database Server Management
System
20
DBMS Classifications
DBMS Classification Based on Data Model
Relational data model
Object data model
Object-relational data model
Extended-relational model
XML Model
Hierarchical data model
Network data model
21
DBMS Classification Based on Number of
Users
Single-user systems
Multi-user systems
22
DBMS Classification Based on Number of
Sites
Centralized systems
Distributed DBMSs (DDBMS)
Homogeneous DDBMS
Heterogeneous DBMS (Federated DBMS/multi-
database systems)
23
DBMS Classification – More Criteria
Cost
Type of access path
Purpose
General purpose
Special purpose
E.g. Airline system (OLTP – Online transaction
processing systems)
24
Database System Environment
Users/Programmers
Application Programs/Queries
DBMS
Software
Software to Process Queries/Programs
Stored DB
Stored
Definition
Database
(Meta-Data)
Classification of DBMS
• Based on the data model used
– Traditional: Relational, Network, Hierarchical.
– Emerging: Object-oriented, Object-relational.
• Other classifications
– Single-user (typically used with personal computers)
vs. multi-user (most DBMSs).
– Centralized (uses a single computer with one database)
vs. distributed (uses multiple computers, multiple databases)
– Distributed DBMS (database and software distributed over many sites
• Homogeneous DDBMS
– DDBMS uses the same DBMS over many sites.
• Heterogeneous DDBMS
– Applications accessing databases on different DBMS.
• Federated or Multidatabase Systems
– Participating DBMS are loosely coupled.
• Distributed Database Systems have become client-server based database
systems because:
– They do not support a totally distributed environment, but rather a set
of database servers supporting a set of clients. 26
RDBMS Features
• Data Definition Language (DDL)
• Data Manipulation Language
(DML)
• Integrity Constraints
• Transaction Management
• Concurrency
• Security
• Tuning of Storage
Relationships
• Link between entities.
• A relationship may define constraints.
– E.G, a person can only have one SSN.
Advantages of RDBMS
• Eliminate unnecessary duplication of data
• Enforce data integrity through constraints
• Changes to conceptual schema need not affect
external schema
• Changes to internal schema need not affect the
conceptual schema
• Many tools are available to manage the database
Disadvantages of RDBMS
• To store objects (e.g., drawings) in a relational
database, the objects have to be ‘flattened’ into
tables
– e.g., a digital representation of a parcel must be separated
from the behaviour of other parcels
• Complex objects have to be taken apart and the parts
stored in different tables
• When retrieved from the database, the object has to
be reassembled from the parts in different tables
Other Types of DBMS
• Object DBMS
– store objects as objects
– designed to handle complex nested objects for
graphical and multimedia applications
• Object-relational DBMS
– hybrid databases that can store data in tables but
can also store objects in tables
Summary