Académique Documents
Professionnel Documents
Culture Documents
Three-Level Architecture
(master model)
External Level
o Users’ view of the database.
o Describes that part of database that is relevant to a particular user.
Conceptual Level
o Community view / Master View of the database.
o Any data that is needed by any of the applications
o Describes what data is stored in database and relationships among the data.
Internal Level
o Physical representation of the database on the computer.
o Describes how the data is stored in the database
Data Independence
Database Languages
o Non-Procedural DML
Allows user to state what data is needed rather than how it is to be
retrieved. (just a single statement, SELECT * from TABLE – SL is a non
procedural language)
Data Model
“Integrated collection of concepts for describing data, relationships between data, and constraints on
the data in an organization.”
Functions of a DBMS
System Catalog
Repository of information (metadata, data dictionary) describing the data in the database.
One of the fundamental components of DBMS.
Typically stores:
o names, types, and sizes of data items;
o constraints on the data;
o names of authorized users;
o data items accessible by a user and the type of access;
o usage statistics.
1. Teleprocessing
2. File-server
3. Client-server
Teleprocessing
o Mainframes where you would use TelNet to
connect from a terminal to the mainframe or
the central computer.
o Traditional architecture – all of the computing
sits in the middle surrounded by dummy
terminals that are only communicating with
the users but all the processing done in the
mainframe computer.
o Now this is coming back due to cloud computing something like this.
File-Server
o File-server is connected to several workstations across a network. Database resides
on file-server.
o Difference is the stations are not
dumb terminals but actually have
the database applications (e.g.
Oracle DBMS) on the individual
machines. Only the data is stored
on the file service.
o DBMS and applications run on
each workstation.
o Disadvantages include:
Significant network
traffic.
Copy of DBMS on each
workstation.
Concurrency, recovery
and integrity control
more complex
E.g. Which DBMS is responsible for it?
Need to physical store copies of DMBS on each of the application
Need a lot of network power.
Client side presented two problems preventing true scalability (problems two-tier):
‘Fat’ client, requiring considerable resources on client’s computer to run effectively.
Significant client side administration overhead.
By 1995, three layers proposed, each potentially running on a different platform.
Advantages three-tier (presentation – business – data)
o ‘Thin’ client, requiring less expensive hardware.
o Application maintenance centralized.
o Easier to modify or replace one tier without affecting others.
o Separating business logic from database functions makes it easier to implement load
balancing.
o Maps quite naturally to Web environment.