01 Introduction To Database-SCD
01 Introduction To Database-SCD
01 Introduction to Database
CRI2E4 Basis Data
2
Learning Outcomes
Students can explain and understand database system overview,
View of Data and history of DB, DB relational overview, DB
Language DB design, level of abstraction, DB modeling and data
storage, transaction overview, database architecture, DB user
Outline
3
Overview Database
Management System
5
Providing Storage
Providing Persistent
Structures and Search
Storage for Program
Techniques for Efficient
Objects
Query Processing
Data
Information
Database
DEFINITION
10
• Data
• Facts concerning objects and events that could be recorded and stored on
computer media
• Stored representations of objects and events that have meaning and
importance in the user’s environment.
• Information
• Data that have been processed in such a way as to increase the
knowledge of the person who uses the data.
• Database
• An organized collection of logically related data.
Examples
11
• List of facts
Data
• Data in context
• Summarized Data
• Data that describe the properties or characteristics of end-user data and the
context of those data.
14
View of Data
15
Entity-Relationship
Relational Model
Model
Relational Database
Relational Database
20
Example of
Relational
Database
22
Database Language
23
Database Language
• Data-Definition Language
DDL
• to specify the database schema
• Data-Manipulation Language
DML
• to express database queries and updates
24
Database Design
Phase of Database Design 25
Database Engine
Database Engine
27
Transaction manager
• which ensures that the database remains in a consistent (correct) state despite
system failures, and that concurrent transaction executions proceed without
conflicting.
File manager
• which manages the allocation of space on disk storage and the data structures used
to represent information stored on disk.
Buffer manager
• which is responsible for fetching data from disk storage into main memory and
deciding what data to cache in main memory. The buffer manager is a critical part of
the database system, since it enables the database to handle data sizes that are
much larger than the size of main memory.
Data Structure used by Storage Manager
30
Data which stores metadata about the structure of the database, in particular the schema of
the database.
dictionary
Indices which can provide fast access to data items. A database index provides pointers to those
data items that hold a particular value. For example, we could use an index to find the
instructor record with a particular ID, or all costumer records with a particular name
Hashing is an alternative to indexing that is faster in some but not all cases.
Query Processor
32
Database Architecture
Database Architecture
36
• A person who has central control over the system is called a database
administrator (DBA).
• Functions of a DBA include:
• Schema definition
• Storage structure and access-method definition
• Schema and physical-organization modification
• Granting of authorization for data access
• Routine maintenance
• Periodically backing up the database
• Ensuring that enough free disk space is available for normal operations, and upgrading
disk space as required
• Monitoring jobs running on the database
41
History of Database
42
43
References