Chapter 2 - Lecture
Chapter 2 - Lecture
Daniel Tesfay
Introduction
o The architecture of DBMS packages has evolved from the early monolithic systems, where the
whole DBMS software package was one tightly integrated system, to the modern DBMS
packages that are modular in design, with a client/server system architecture.
o In a basic client/server DBMS architecture, the system functionality is distributed between two
types of modules.
₋ A client module is typically designed so that it will run on a user workstation or personal computer.
Typically, application programs and user interfaces that access the database run in the client module.
Hence, the client module handles user interaction and provides the user friendly interfaces such as forms
or menu-based GUIs (graphical user interfaces).
₋ The other kind of module, called a server module, typically handles data storage, access, search, and other
functions.
o Most data models also include a set of basic operations for specifying
retrievals and updates on the database.
o Data model also include concepts to specify dynamic aspect or behavior of
a database application that allows database designer specify a set of:
₋ valid user defined operations like COMPUTE_GPA, which can be
applied on STUDENT object
₋ Generic operations to insert, delete, modify, or retrieve any kind of object
are often included in the basic data model operations.
12/4/2024 Fundamentals of Database Systems 4
Categories of Data Models
o Many data models have been proposed, which we can categorize
according to the types of concepts they use to describe the database
structure.
₋ High-level or conceptual data models provide concepts that are close
to the way many users perceive data, whereas
₋ Low-level or Physical Data Models provide concepts that describe
the details of how data is stored on the computer storage media,
typically magnetic disks.
12/4/2024 Fundamentals of Database Systems 5
Categories of Data Models
Z
⁻ Easily enhanced
⁻ Only Entities are visible
Time
⁻ Abstract relationship between
Entities
10
Physical Data model
1. Physical (low-level, internal) data models: Provide concepts that describe
details of how data is stored in the computer. These are usually specified in an
ad-hoc manner through DBMS design and administration manuals
13
Database Schema Vs. Database State
₋ Valid State: A state that satisfies the structure and constraints of the database.
16
Centralized vs Client-Server DBMS Architectures
Centralized DBMS Architectures
o Centralized DBMS:
₋ Combines everything into single system including DBMS
software, hardware, application programs, and user
interface processing software.
₋ User can still connect through a remote terminal
however, all processing is done at centralized site.
₋ Data is stored and managed on a single central server
₋ The clients will access resources directly without
request
₋ All data operation, Update, query, delete, and data
management are performed at the central location
Centralized DBMS Architectures
₋ Consistency: Since all data is stored in one place, o Single Point of Failure: If the central server goes down,
₋ Security: Data security is easier to implement as o Limited Flexibility: Clients depend entirely on the
all data access points are controlled from a single central server for data processing, limiting their
server. autonomy.
software, the costs are lower for smaller dependent on the network's reliability and speed.
organizations.
Client-Server DBMS Architectures
₋ the client and the server. The server manages the database and handles
requests from the client, while the client sends requests to the server and
displays the results.
Client-Server DBMS Architectures
₋ Multiple Clients: The system can support multiple clients accessing the
database concurrently.
o Dedicated servers are servers specifically configured to perform a single specialized function, ensuring optimal
performance and resource allocation.
devices and printers. It allows multiple users to share one or more printers efficiently in a networked
environment.
o Advantages: High performance, reliability, security, and scalability.
Clients
o DBMS server is specialized software that manages, stores, and retrieves data
for applications or users over a network.
o In a two Tire Client-Server Architecture, Client and Server Layers are available
₋ Client Layer:
o Server Layer:
36
DBMS Languages
₋ DDL(Data Definition Language ), is used by the DBA and database designers to specify
the conceptual schema of a database. In many DBMSs, the DDL is also used to define
internal and external schemas (views).
₋ SDL (storage definition language), is used to specify the internal schema.
₋ VDL (view definition language), Specifies user views/mappings to conceptual schema
₋ DML (Data manipulation language), is used to manipulate the database. Typical
manipulations include retrieval, insertion, deletion and modification of the data. This can be
embedded in a general-purpose programming language (host language), such as COBOL,
C or an Assembly Language and alternatively, stand-alone DML commands can be applied
directly (query language).
₋ DCL: Access Control language (Grant, Revoke)
37
DBMS Interfaces
41
Classification of DBMS Based on Data Model
• Traditional o Emerging
• Network o Object Oriented Model
• Hierarchical o Object Relational Model
• Relational
Classification of DBMS Based on Data Model
o Network Model
₋ Structure: Data is represented as a graph, with entities as nodes and
relationships as edges. This allows for many-to-many relationships.
o Advantages:
₋ Network Model is able to model complex relationships and represents
semantics of add/delete on the relationships.
₋ Can handle most situations for modeling using record types and
relationship types.
₋ Language is navigational; uses constructs like FIND, FIND member, FIND
owner, FIND NEXT within set, GET, etc.
• Programmers can do optimal navigation through the database.
Network Model
o Disadvantages:
o Disadvantages:
₋ Navigational and procedural nature of processing
₋ Database is visualized as a linear arrangement of records
• Little scope for "query optimization"
Relational Model