lecture 3
lecture 3
Lecture # 3
Database Environment
Chapter 2
Objectives of Three-Level
Architecture
Allusers should be able to access same data
but have a different customized view
A user’s view is immune to changes made in
other views
Users should not need to know physical
particular user
Different views may have different representation of same
on storage devices
Interfaces with the operating system access methods to
Conceptual Schema
Describes all the entities, attributes, and relationships
together with integrity constraints
Only one schema per database
Schemas..
Internal Schema
A complete description of the internal model, containing
the definitions of stored records, the methods of
representation, the data fields, and the indexes and
storage structures used
Only one schema per database
Mappings
The DBMS is responsible for mapping
between these three types of schema:
The DBMS must check that each external schema is
derivable from the conceptual schema, and it must use the
information in the conceptual schema to map between
each external schema and the internal schema
Types of mappings
Conceptual/Internal mapping
External/Conceptual mapping
Conceptual/Internal Mapping
Enables the DBMS to
Find the actual record or combination of records in
physical storage that constitute a logical record in the
conceptual schema,
Together with any constraints to be enforced on the
Database Instance
Data in the database at any particular point in time
Dynamic (changes with the time)
Also called an extension (or state) of database
Data Independence
Logical Data Independence
Refers to immunity of external schemas to changes in
conceptual schema
Conceptual schema changes (e.g. addition/removal of
entities)
Should not require changes to external schema or rewrites
of application programs
Data Independence
Physical Data Independence
Refers to immunity of conceptual schema to changes in
the internal schema
Internal schema changes (e.g. using different file
schemas
Data Independence and the ANSI-SPARC
Three-Level Architecture
Summary
Components of the DBMS environment
Roles in the DB environment
History of DBMS
Advantages/Disadvantages of DBMSs
Data independence