Chap1 - Introduction to DB
Chap1 - Introduction to DB
com
Module: Database
Plan
1. Introduction
2. Boundariesof thefiles
4. Historicaldatabase
5. Database Features
6. Modelsdatabase
7. Componentsofbase ofdata
RAM
Volatile memory
Variables
Variables
3
Introduction
Volatile memoryis a type of storage whose contents are erased when
the power to the system is turned off or interrupted.
Program
Program Data
➢ Solution: the files
Program
5
Limits of files
In the treatment offiles,each user defines and implements the files needed for
a specific software application as part of application programming.
Use of files requiredhasthe user to know the organizationof thefiles that he
uses in order to be able to access the information he hasneed.
To writeprograms to be able to effectively manipulateinformation saved in
files.
Addiction programs – data
6
Limits offiles
Associated datato files are:
– poorly defined and poorly designated,
– redundant,
8
Definitions (BD & DBMS)
❑Database
9
Definitions (BD & DBMS)
A database is a computerized system that contains organized
information. They facilitate thesearch, manipulation and filtering
Datas.
A database is not the only way to store information, but it is one of
the most prolific. Indeed, in addition to storing information,
databases facilitate the management and understanding of data.
THEdata base are more effective in terms of data recovery
compared to other methods.(For example, a file.)
10
Definitions (BD & DBMS)
❑Database Management System (DBMS))
11
Database history
❑ Appearance in the 60s
➢ BD = files linked by pointers
➢ Development of IDS and IMS systems at IBM for the APOLLO program
❑Late 60s
➢ Appearance of network and hierarchical DBMS
➢ TOTAL,IDMSnIDS2, IMS2…
12
Database history
❑ 70s
➢ Emergenceof the relational model in research laboratories
❑80 years
➢ Marketingrelational DBMS (Oracle, DB2,Informix, Sybase, Ingres, SQL Server etc.)
13
Database history
❑80 years(following…)
➢ Ajoint structuring of programs and data, while retaining relational knowledge
(tabular view of objects, and querying via SQL extended to objects).
➢ Distribution of architectures, for better collaboration between competing users
14
Database history
❑90s and 2000s
➢ Support unstructured information from the Web, multimedia, etc.
❑2010s
➢ Data becomes very voluminous, varied and fast. We are talking about BIG DATA (we are
talking aboutpetabytesof data→ 250bytes).
➢ Conventional models and technologies are incapable of processing this data
database system contains not only the data, but also the complete
definition and description of that data.
– These descriptions are essentially details about the extent, structure, type
and format of all data and, furthermore, the relationship between the data.
This type of stored data is called metadata ("data about data").
16
Database Features
❑Separation of data and applications
– The application software does not need any knowledge about
17
Database Features
❑Data integrity
– Data integrity means the quality and reliability of data in a database
system.
18
Database Features
❑Persistence ofdata
– Data persistence means that in a DBMS all data is retained until
it is explicitly deleted.
19
Database Features
❑Persistence ofdata
– THEData once stored in a database should not be lost. Changes
20
Database Models
❑ Hierarchical model
A hierarchical database is a form of DBMS that links records in a tree
structure so that each record has only one owner (for example, a product is
only delivered by one Supplier).
➢ Does not take into account some real-world cases. Example; a patient can be
treated by several doctors
22
Database Models
❑ Modelhierarchical:Disadvantages
RepetitionDatas;
Allthe queries depend on the root (traverse the tree starting from the root
23
Database Models
❑ Network model
Models “N to N” type relationships (a doctor can have several
patients and a patient can be treated by several doctors.
❑ On the market
IMS (hierarchical),Codasyl(network)…
24
Database Models
❑ Relational model
▪ ThereBD is represented in the form of tables (rows and columns).
25
Database Models
❑ Relational model
▪ ThereBD is represented in the form of tables (rows and columns).
26
Database Models
❑ Relational model
▪ Structuregraph (resembles the hierarchical model)
Onthe market
Oracle (Oracle),Informix, DB2 (IBM), Sybase (Sybase), SQL SERVER
(Microsoft),Postgress,Mysql…
27
Database Models
❑ Object Oriented Model
▪ Registrationdata in the form of “objects” (in the sense defined by OOP).
▪ So, the data is saved with the functions/procedures that manipulate it.
Material. This is the physical device on which the database software runs.
Database hardware includes computers, servers, and hard drives.
32
Levels of DB representation
33
[1] Gilles Roy.“Database design with UML”. Presses de l’Université du
Québec, 2009.
34