DBA - Ch1 - Part1
DBA - Ch1 - Part1
Outline
Definition of DBMS
Objective of DBMS
Purpose of Databases
Limitation of the file system based databases
View of Data in Databases
Data Models
Database Users and Administrators
Centralized Architectures
Client-Server Architectures
Parallel Systems
Distributed Systems
Network Types
Definition of DBMS
3
Objective of DBMS
4
Database Applications
5
Purpose of Databases
Limitations of File Systems
In the early days, database applications were built on top of file systems
As time goes by, the number of files and application programs increases
6
Purpose of Databases
Limitations of File Systems
8
Purpose of Databases
Limitations of File Systems
9
Purpose of Databases
Limitations of File Systems
) الصورة التى سوف نرى بها قاعدة البيانات (حسب طبيعة التعامل
Recall that
The system hides certain details of how the data are stored and
maintained
النظام يعطي للمستخدم صورة مجردة للبيانات ويخفي عنه التفاصيل التى ال تهمه وال تخصه (مثل عملية تخزين
)البيانات والتعامل معها
11
View of Data in a Database
The need for Data Abstraction
The objective of data abstraction is to simplify the interaction with the database
from the user perspective
12
View of Data in a Database
Data Abstraction Levels
What to store
How to store
13
View of Data in a Database
Analogy with data types in programming
Definition
The Data Model: a collection of conceptual tools for describing
Data
Data relationship
Data semantics )(دالالت البيانات أو معانيها
Consistency constraints
A data model provide a way to describe the design of a database at the physical,
logical and view level
15
Data Models
Definition
Data models can be classified in four categories
1. Relational model
2. The Entity-Relation model
3. Object-based Data model
4. Other models: network model, hierarchical model
16
Data Models
The Relational Model: uses a collection of tables to represent both data and
the relationship among those data.
Each table has multiple column and each column has a unique name (Attribute)
Vast majority of current database systems are based on the relational model
17
Data Models
An entity is a “thing” or “object” from the real world that is distinguishable from other
objects.
18
Database Users
Database users or
Database administrators
Users are differentiated by the way they expect to interact with the system
19
Database Administrators
20
Transaction Management
21
Database System Structure
22
Application Architectures
23
Application Architectures
Two-Tiered Architecture
The application is partitioned into a component that resides at the client machine.
It remotely invokes the database server machine through query languages statements
E.g. using ODBC, JDBC for interaction between the client and the server
Three-Tiered Architecture
The client machine acts as a front-end and does not contain any direct database calls
The client machine communication with the application server through an interface of
forms (not direct queries)
The application server communicate with a database system to access data
أنه عند الحاجة لتعديلTwo-T • مشاكل الـ
فإن التعديل سيتم على كل الـfunction أي
(Update) .clients
يجبclient • والمشكلة األخرى أن جهاز الـ
أن يكون بإمكانيات كبيرة (وهذا غير
) ألن المخدمTHREE-T مطلوب في الـ
.بإمكانات قوية والعمل يكون عليه
24
Instances and Schemas
Instance of a database
The collection of information stored in the database at a particular moment
is called an instance )(صورة من قاعدة البيانات في لحظة معينة
Schema of database
The overall design of the database is called schema. (تركيب ووصف قاعدة
)البيانات
Physical Schema
Describes the data design at the physical level
Logical Schema
Describes the data design at the logical level
25