Introduction To Databases
Introduction To Databases
Aims:
At the end of this group of two lectures you should
be able to understand basic data management
operations and ways of storing data on computers.
You should be able to understand in general how
databases work
1.
Reading:
Elmasri & Navathe, 6th edition, 2011
Chapters 1 & 2
2.
4.
5.
6.
Slide
1-1
Slide
1-2
DATA REQUIREMENTS
COSC265, 2014
COSC265, 2014
Entity
Attribute
Data
Record
Data requirements
Data management operations
3.
DATA MANAGEMENT
Data management
COSC265, 2014
OVERVIEW
COSC265, 2014
INTRODUCTION TO DATABASES
Slide
1-3
Slide
1-4
OVERVIEW
1.
Data management
3.
4.
5.
6.
Slide
1-5
Files
Databases
COSC265, 2014
COSC265, 2014
2.
Database systems
Data models
DBMS
Advantages and disadvantages of databases
Slide
1-6
7/14/2014
FILES
Record
Field
Alphanumeric
Numeric
Currency
Date
Memo
Field
name
Start
Length
position
Name
30
StudNo
31
Major
35
COSC265, 2014
Unstructured
Structured
COSC265, 2014
Key
Slide
1-8
Slide 1-7
DATABASE
STORED IN FILES
Mini-world:
typical database
Slide
1-9
OVERVIEW
3.
Data management
Computer data organization
Database systems
4.
5.
6.
Organization of databases
Database features
People involved with database systems
Data models
DBMS
Advantages and disadvantages of databases
Database
COSC265, 2014
2.
Slide
1-10
DATABASES
COSC265, 2014
1.
COSC265, 2014
COSC265, 2014
Database
Software = DBMS +
Applications
Database
Slide
1-11
7/14/2014
EXAMPLE DATABASE
for the example: Part of a
UNIVERSITY environment
Some mini-world entities:
COSC265, 2014
COSC265, 2014
Mini-world
Students
Courses
Sections (of courses)
Departments
Instructors
Slide
1-13
Slide
1-14
Slide
1-15
Slide
1-16
COSC265, 2014
COSC265, 2014
COSC265, 2014
COSC265, 2014
Slide
1-17
Slide
1-18
7/14/2014
ORGANIZATION OF DATABASES
COSC265, 2014
External level
Conceptual level
Internal level
COSC265, 2014
Slide
1-19
Slide
1-20
DATABASE FEATURES
COSC265, 2014
Database administrators
Database designers
End-users
Slide
1-22
Slide
1-21
COSC265, 2014
catalog (dictionary)
Description of the database (meta-data)
Allows DBMS to work with different DBs
Data abstraction
Data integrity
Data independence
COSC265, 2014
Data
Slide
1-23
Slide
1-24
7/14/2014
OVERVIEW
END-USERS
COSC265, 2014
2.
3.
Data models
4.
5.
6.
Slide
1-25
DATA MODEL
Slide
1-26
Slide
1-27
COSC265, 2014
COSC265, 2014
COSC265, 2014
Data management
Computer data organization
Database systems
1.
Casual
Nave/Parametric (canned transactions)
Sophisticated
Stand-alone
Slide
1-28
COSC265, 2014
COSC265, 2014
Slide
1-29
Slide
1-30
7/14/2014
Structural component
Integrity component
Operational component
Slide
1-32
2.
4.
DBMS
5.
DBMS languages
DBMS Interfaces
DBMS Components
Utilities
History
Architectures
Classification
Advantages and disadvantages of databases
COSC265, 2014
3.
Slide
1-34
DBMS LANGUAGES
COSC265, 2014
Data management
Computer data organization
Database systems
Data models
COSC265, 2014
Slide
1-33
OVERVIEW
1.
COSC265, 2014
(high-level, semantic)
Provide concepts that are close to the way
many users perceive data
Physical (low-level, internal)
Provide concepts that describe details of
how data is stored in the computer.
Implementation (representational)
Provide concepts that fall between the
above two, balancing user views with
some computer storage details.
6.
COSC265, 2014
COSC265, 2014
Slide
1-35
Slide
1-36
7/14/2014
DBMS INTERFACES
Menu-based
Forms-based
Graphics-based
Natural language
Combinations of the above
Slide
1-37
Slide
1-39
COSC265, 2014
COSC265, 2014
Slide
1-38
OTHER TOOLS
COSC265, 2014
COSC265, 2014
Slide
1-40
HISTORY
COSC265, 2014
COSC265, 2014
Slide
1-41
Slide
1-42
7/14/2014
CLIENTS
ARCHITECTURES
Specialized Servers
File servers
Printer Servers
Web Servers
E-mail Servers
Provide appropriate interfaces and a clientversion of the system to access and utilize the
server resources.
Clients maybe diskless machines or PCs or
workstations with disks with only the client
software installed.
Connected to the servers via a network.
Clients
DBMS Server
Slide
1-43
COSC265, 2014
COSC265, 2014
Slide
1-44
COSC265, 2014
Centralized DBMS
Client-server architecture
COSC265, 2014
Slide
1-45
Slide
1-46
CLASSIFICATION OF DBMSS
Based on the data model used:
Other classifications:
Slide
1-47
COSC265, 2014
COSC265, 2014
7/14/2014
DISTRIBUTED DBMSS
5.
Data management
Computer data organization
Database systems
Data models
DBMS
6.
1.
2.
3.
4.
Slide
1-49
COSC265, 2014
Homogeneous DDBMS
Heterogeneous DDBMS
Federated or Multidatabase Systems
COSC265, 2014
OVERVIEW
Slide
1-50
ADVANTAGES OF DB APPROACH
New
Slide
1-51
Scientific Applications
Image Storage and Management
Audio and Video data management
Data Mining
Spatial data management
Time Series and Historical Data
Management
COSC265, 2014
COSC265, 2014
Slide
1-52
DISADVANTAGES OF DB
WHEN NOT TO USE A DBMS
APPROACH
Slide
1-53
COSC265, 2014
COSC265, 2014
Complexity
Size
Cost
Additional hardware cost
Performance
Higher impact of failure
Complex data
Special operations required
Slide
1-54