Course
Course
This means that the data contained in the files is directly linked to
the programs that process them through a description embedded
within these programs themselves.
Problems posed by traditional
organizations: FMS
Example :
- Last Name
- First Name
- Address
- Book1
- Book2
- Book3
Problems posed by traditional
organizations: FMS
Information sharing
A database allows the sharing of a single set of information by
multiple users.
4. Data consistency:
The data is subject to a certain number of constraints and rules,
It must be able to be expressed simply and checked automatically each time
data is inserted, modified or deleted, for example:
- A person's age greater than zero, salary > 0, etc.
- As soon as we try to enter a value that does not respect this constraint, the
DBMS refuses this value.
SGBD: Objectives
7. Non-redundancy of data:
8. Data security:
Data must be able to be protected against
unauthorized access.
9. Fault resistance:
A DBMS must integrate recovery mechanisms after
failure (power outage for example)
Questions
Different types of DBMS users
Example
In an airline ticket reservation agency, the person who types a few
commands on their terminal to make a reservation is a user in the same
way as a business manager who also requests from time to time from his
company's database a certain amount of information reflecting the state
of his company (unsold products, pending orders, etc.).
Levels of data description in a DBMS
All employees in their daily tasks use and manipulate data which is
stored in a database on the servers of this company using a DBMS.
This database contains data from the 4 departments.
Levels of data description in a DBMS
An important thing is that employees must only access the data that
concerns them. For example, a manager of the HR department must
only access HR data and must not have access to Finance department
data. Same thing which should only have access to financial data and
should not access HR data.
So, each user must only have access to part of the data and must only
view the tables that concern their function. This corresponds to the
external level of data.
1. Conceptual level
2. External level
3. Internal level
Levels of data description in a DBMS
External Schema
Describes how a user or program sees the data to which it has access.
View: subset of a diagrams
View1: HR data
View2: financial data
Levels of data description in a DBMS
Conceptual Schema
The internal schema defines the physical storage structure of the database.
The internal schema is a very low-level representation of the entire
database. It contains multiple occurrences of multiple internal record types.
RDBMS Example
ORACLE
SQL SERVER
MYSQL
Relational DBMS Architecture
Unlike hierarchical and network DBMSs, the relational approach unifies the
definition, manipulation and control functions of the database in a single
language (see SQL).
Main Functions of DBMS
Data description
The DBMS offers a data description language (DDL) to describe data
(Type, Length, Nature, etc.), relationships between data, management
rules, value domains, etc.
Data Manipulation