Professional Documents
Culture Documents
ANSI-SPARC three-level
architecture
View 1
View 2
Conceptual
schema
Internal schema
Database
American National Standard Institute (ANSI)Standards Planning and Requirements Committee (SPARC)
View n
External
Level
Conceptual
Level
Internal
Level
EXTERNAL LEVEL
Users view of the database
Part of the database that is relevant to a user
CONCEPTUAL LEVEL
Community view of the database
What data is stored in the database
Relationships among the data
Entities, their attributes and relationships
Security and integrity information
INTERNAL LEVEL
Physical representation of the database on the
computer
Internal level
External View 2
Conceptual
level
Internal level
char Fname[15];
char Lname[15];
struct date Date_of_Birth;
float salary;
struct STAFF *next;
};
DATA INDEPENDENCE
Logical Data Independence: Possibility for
addition/removal of new entities, attributes
or relationships
Physical Data Independence: Possibility for
changes to storage structures
Data Independence
External
schema
External/ conceptual
mapping
Conceptual/ Internal
mapping
External
schema
External
schema
Logical data independence
Conceptual
schema
Database Languages
Data definition Language (DDL):
A descriptive language
Name the entities and relationships
DMLTypes
Procedural DML:
What data is needed
How to retrieve this? (record by record)
Non-Procedural DML:
What data is needed rather than how to retrieve
it. (based on set of records)
4GL
Query languages, Form generators, Report generators.
Specialty languages such as spreadsheets and database
languages
Application generators (define, insert, update and
retrieve data)
Program Generators
Graphics generators
Data Model
An integrated collection of concepts
For describing data
Relationships
Constraints
Functions of a DBMS
1) Data storage, retrieval and update
2) A user accessible catalog
System Catalog stores :
(Functions contd)
2) A user accessible catalog (contd.)
Benefits of a System catalog:
3) Transaction Support
4) Concurrency control services
T1
t1
T2
balx
read (balx)
100
t2
real (balx)
100
t3
balx=balx-10
write (balx )
200
t4
write (balx )
t5
90
90
(Functions contd)
5) Recovery services
6) Authorization services
7) Support for data communication
8) Integrity services
9) Service to promote data independence.
10) Utility services
Components of a DBMS
Programmers
Application
Programs
DBMS
Users
Queries
DBA
Database
schema
DML
Preprocessor
Query
Processor
DDL
Compiler
Program
object code
Database
Manager
Dictionary
Manager
Access
methods
System
buffers
File
Manager
Database and
system catalog
Data manager
Access
Methods
System buffers
Query
processor
Catalog
Manager
Authorization
Control
Command
processor
Query
Optimizer
Transaction
Manager
Scheduler
Buffer
Manager
Recovery
Manager
File
Manager
Databases and
system catalogs
Teleprocessing Topology
Workstation 1
Workstation 3
LAN
File Server
Client 1
Client 3
LAN
Request for data
Server (with
DBMS)
Server
Server
Multiple Client
- Single Server
Client 1
Client 2
Client 1
Client 2
Client 3
Server 2
Server
Accepts and processes database
requests from clients
Checks authorization
Ensures integrity constraints not
violated
Performs query/ update processing
and transmits response to client
Maintains system catalog
provides concurrent database access
Provides recovery control