You are on page 1of 48

Database Management: Introduction

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
Guide

• Course Description
• Database Concepts and Terminology
• Database Models

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Description of the Course
• Assignments
• Readings
• Grading
• Schedule

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• This course is concerned with the design
of the database itself -- not with the
design of database system software.
– We will discuss DBMS internals only as they
relate to the database and its design and
structure
• We will spend a fair amount time on
database application design, especially on
options for Web application database
support -- but this will not be primary
focus.
PhD John Corredor Franco
john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Two kinds of assignments
– Using a pre-built database for search and
retrieval and database modification queries
– Designing, populating, and running queries
against your own personal database
• Types of database project
– Individual
» Work related
» Course only
» Projects from around campus that need doing…
– Group
» Course related
» SIMS Final project
» Yii
» CMS

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
References

Abraham Silbersschatz, Henry F. Korth, Fundamentos de Bases de Datos (4a


ed.), Editorial: Mc Graw Hill, 2002

Ramez A. Elmasri, Shamkant B. Navathe, Fundamentos de Sistemas de Bases de


Datos (3a ed.) Editorial Addison Wesley, 2002

Thomas M. Connoly, Carolyn E. Begg, Sistemas de Bases de Datos. Un enfoque


práctico para diseño, implementación y gestión (4a ed.), Editorial: Pearson.
Addison Wesley, 2005

de Miguel, M. Piattini, E. Marcos, Diseño de Bases de Datos Relacionales,


Editorial: Addison Wesley, 1999 Manuel de postgresSql

Jeffrey A. Hoffer, Mary B. Prescott and Fred R. McFadden. Modern Database


Management (Sixth Edition). Prentice Hall (Pearson Educational) : Upper
Saddle River, NJ, 2002.

ISBN 0-13-061183-2

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Grades will be based on:
– Assignments (**%)
– Personal/Group Database project (20%)
– Class participation (10%)
– Ing Sistemas UFPS Calendar

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
Concepts & Terms
• File: A collection of records or documents
dealing with one organization, person, area or
subject. (Rowley)
– Manual (paper) files
– Computer files
• Database: A collection of similar records with
relationships between the records. (Rowley)
– bibliographic, statistical, business data, images, etc.

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• A Database is a collection of stored
operational data used by the application
systems of some particular enterprise. (C.J.
Date)
– Paper “Databases”
• Still contain a large portion of the world’s knowledge
– File-Based Data Processing Systems
• Early batch processing of (primarily) business data
– Database Management Systems (DBMS)

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Database Management System -- DBMS
– Software system used to define, create,
maintain and provide controlled access to the
database and repository

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Repository
– AKA Data Dictionary
– The place where all metadata for a particular
database is stored
– may also include information on relationships
between files or tables in a particular database

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Metadata
– Data about data
• In DBMS means all of the characteristics describing
the attributes of an entity, E.G.:
– name of attribute
– data type of attribute
– size of the attribute
– format or special characteristics
– Characteristics of files or relations
• name, content, notes, etc.

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• History
– 50’s and 60’s all applications were custom built
for particular needs
– File based
– Many similar/duplicative applications dealing
with collections of business data
– Early DBMS were extensions of programming
languages
– 1970 - E.F. Codd and the Relational Model
– 1979 - Ashton-Tate & first Microcomputer
DBMS

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
Application File
Delivery Toys
List Addresses

Coal
Estimation Naughty

Just what
asked for Nice Toys

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
•Problems with File Processing
systems
– Inconsistent Data
– Inflexibility
– Limited Data Sharing
– Poor enforcement of standards
– Excessive program maintenance

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Minimal Data Redundancy
• Consistency of Data
• Integration of Data
• Sharing of Data
• Ease of Application Development
• Uniform Security, Privacy, and Integrity
Controls
• Data Accessibility and Responsiveness
• Data Independence
• Reduced Program Maintenance
PhD John Corredor Franco
john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Data Independence
– Physical representation and location of data
and the use of that data are separated
•The application doesn’t need to know how or
where the database has stored the data, but
just how to ask for it.
•Moving a database from one DBMS to another
should not have a material effect on application
program
•Recoding, adding fields, etc. in the database
should not affect applications

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
CASE User Application
Tools Interface Programs

Repository
DBMS Database

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
DBMS
===============
Design tools
Table Creation
Form Creation
Query Creation
Report Creation Application
Procedural
language Programs
Database
compiler (4GL)
=============
Run time
Database contains: Form processor
User’s Data Query processor User
Metadata Report Writer Interface
Indexes Language Run time
Applications
Application Metadata

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• PC Databases
• Centralized Database
• Client/Server Databases
• Distributed Databases
• Database Models

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
PhD John Corredor Franco
john.corredor.franco@gmail.com 2018.02.26 - SLIDE
PhD John Corredor Franco
john.corredor.franco@gmail.com 2018.02.26 - SLIDE
PhD John Corredor Franco
john.corredor.franco@gmail.com 2018.02.26 - SLIDE
Location B
Location C

computer
computer

Homogeneous
computer Databases
Location A
PhD John Corredor Franco
john.corredor.franco@gmail.com 2018.02.26 - SLIDE
Heterogeneous Client
Or Federated Remote
Databases Comp.
Database
Server
Local Network
Comm
Server
Remote
Client Comp.
PhD John Corredor Franco
john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Database Application
– An application program (or set of related
programs) that is used to perform a series of
database activities:
• Create
• Read
• Update
• Delete
• On behalf of database users

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• PC databases
– Usually for individual
• WorkGroup databases
– Small group use where everyone has access to
the database over a LAN
• Departmental databases
– Larger than a workgroup – but similar
• Enterprises databases
– For the entire organization over an intranet (or
sometimes the internet)

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Database activities:
– Create
• Add new data to the database
– Read
• Read current data from the database
– Update
• Update or modify current database data
– Delete
• Remove current data from the database

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Enterprise
– Organization
• Entity
– Person, Place, Thing, Event, Concept...
• Attributes
– Data elements (facts) about some entity
– Also sometimes called fields or items or domains
• Data values
– instances of a particular attribute for a particular entity

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Records
– The set of values for all attributes of a
particular entity
– AKA “tuples” or “rows” in relational DBMS
• File
– Collection of records
– AKA “Relation” or “Table” in relational DBMS

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Key
– an attribute or set of attributes used to identify
or locate records in a file
• Primary Key
– an attribute or set of attributes that uniquely
identifies each record in a file

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• DA
– Data administrator - person responsible for
the Data Administration function in an
organization
– Sometimes may be the CIO -- Chief
Information Officer
• DBA
– Database Administrator - person
responsible for the Database
Administration Function
PhD John Corredor Franco
john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Data Administration
– Responsibility for the overall management of data
resources within an organization
• Database Administration
– Responsibility for physical database design and
technical issues in database management
• Data Steward
– Responsibility for some subset of the organization’s
data, and all of the interactions (applications, user
access, etc.) for that data

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Models
– (1) Levels or views of the Database
• Conceptual, logical, physical

– (2) DBMS types


• Relational, Hierarchic, Network, Object-Oriented,
Object-Relational

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
Application 1 Application 2 Application 3 Application 4
External External External External
Model Model Model Model
Application 1
Conceptual
requirements
Application 2
Conceptual
requirements
Internal
Conceptual Logical Model
Application 3
Conceptual
Model Model
requirements
Application 4
Conceptual
requirements

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Hierarchical Model (1960’s and 1970’s)
– Similar to data structures in programming
languages.

Books
(id, title)

Authors
Publisher Subjects
(first, last)

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Network Model (1970’s)
– Provides for single entries of data and
navigational “links” through chains of data.

Authors

Subjects Books

Publishers

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Relational Model (1980’s)
– Provides a conceptually simple model for data
as relations (typically considered “tables”) with
all data visible.

pubid pubname Authorid Author name


1 Harper 1 Smith
2 Addison 2 Wynar
3 Oxford 3 Jones
Book ID Title pubid Author id 4 Que 4 Duncan
1 Introductio 2 1 5 Applegate
2 The history 4 2
3 New stuff ab 3 3
4 Another title 2 4
5 And yet more 1 5 Book ID Subid
1 2
Subid Subject
2 1
1 cataloging
3 3
2 history
4 2
3 stuff
4 3

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Object Oriented Data Model (1990’s)
– Encapsulates data and operations as “Objects”

Books
(id, title)

Authors
Publisher Subjects
(first, last)

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Object-Relational Model (1990’s)
– Combines the well-known properties of the
Relational Model with such OO features as:
• User-defined datatypes
• User-defined functions
• Inheritance and sub-classing

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
Physical
Creation
2

Design Conversion
1 3

Growth,
Change, & Integration
Maintenance
4
6

Operations
5

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Determination of the needs of the
organization
• Development of the Conceptual Model of
the database
– Typically using Entity-Relationship
diagramming techniques
• Construction of a Data Dictionary
• Development of the Logical Model

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Development of the Physical Model of the
Database
– data formats and types
– determination of indexes, etc.
• Load a prototype database and test
• Determine and implement security, privacy and
access controls
• Determine and implement integrity constraints

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Convert existing data sets and applications
to use the new database
– May need programs, conversion utilities to
convert old data to new formats.

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Overlaps with Phase 3
• Integration of converted applications and
new applications into the new database

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• All applications run full-scale
• Privacy, security, access control must be in
place.
• Recovery and Backup procedures must be
established and used

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
• Change is a way of life
– Applications, data requirements, reports, etc.
will all change as new needs and requirements
are found
– The Database and applications and will need to
be modified to meet the needs of changes

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE
Integration
4 Operations
5
Design
Physical 1
Creation Conversion Growth,
2 3 Change
6

PhD John Corredor Franco


john.corredor.franco@gmail.com 2018.02.26 - SLIDE

You might also like