Download presentation
1
© Virtual University of Pakistan
2
Database Management Systems
Lecture - 4 © Virtual University of Pakistan
3
© Virtual University of Pakistan
Today’s Review Continue 3-L architecture Data Independence Different aspect of DBMS © Virtual University of Pakistan
4
Level 3 Internal or Physical View
Concerns about the physical implementation of the database © Virtual University of Pakistan
5
© Virtual University of Pakistan
Internal View DBMS chooses type of data structures lays out data on storage devices with operating system access methods © Virtual University of Pakistan
6
© Virtual University of Pakistan
Internal View Internal record: a single stored record Does not just contain what we see at the conceptual level DBMS adds other data © Virtual University of Pakistan
7
© Virtual University of Pakistan
Physical Level Generally same as Internal Actual representation of data on the storage device In the binary format OS responsibility © Virtual University of Pakistan
8
Inter-Schema Mappings
Also a part of 3-level architecture External/conceptual mapping Conceptual/Internal © Virtual University of Pakistan
9
© Virtual University of Pakistan
Ext/Con Mapping Specifies mapping between objects in the external view to those in the logical model © Virtual University of Pakistan
10
© Virtual University of Pakistan
Con/Int Mapping Specifies mapping between objects in the logical model to those in the physical model-data independence © Virtual University of Pakistan
11
© Virtual University of Pakistan
3-Level Architecture View 1 View 2 View n Conceptual Schema Internal Schema Database User 1 User 2 User n External Level Ext/Con Mapping Conceptual Level Con/Int Mapping Internal Level Physical Data Organization © Virtual University of Pakistan
12
© Virtual University of Pakistan
First Name: Rana Last Name: Aslam Date of Birth: 12 Sep, 1970 Name: R. Aslam Age: 24y,10d Dept: Sales Saleem Saleema Name DoB Deps DepId Rana Aslam 12/09/70 5 D001 Marya Wasti 29/02/80 D005 BH RH Rana Aslam D001 RH Marya Wasti… ….. © Virtual University of Pakistan
13
© Virtual University of Pakistan
Data Independence © Virtual University of Pakistan
14
© Virtual University of Pakistan
Data Independence A major outcome of 3-L Arch The immunity of applications to change in storage structure and access strategy © Virtual University of Pakistan
15
© Virtual University of Pakistan
Data Independence Changes in lower level do not affect the upper levels Don’t take it word to word Mind the direction please © Virtual University of Pakistan
16
Data Independence Types
Logical Data Independence Physical Data Independence © Virtual University of Pakistan
17
Logical Data Independence
Changes in conceptual model do not affect the external views Immunity of external level from changes at conceptual level © Virtual University of Pakistan
18
© Virtual University of Pakistan
Types of Changes Adding a new file/index etc. Adding a new field in a file Changing type/size Deleting an attribute © Virtual University of Pakistan
19
Physical Data Independence
Changes in the internal model do not affect the conceptual model Immunity of Conceptual level from changes at Internal level © Virtual University of Pakistan
20
© Virtual University of Pakistan
Changes Examples Changing file organization Index implementation, hash, tree etc. Changing storage medium © Virtual University of Pakistan
21
© Virtual University of Pakistan
3-Level Architecture User 1 User n View n External Level View 1 Conceptual Data Ind Ext/Con Mapping Conceptual Schema Physical Data Ind Conceptual Level Con/Int Mapping Internal Schema Internal Level Physical Data Organization Database © Virtual University of Pakistan
22
© Virtual University of Pakistan
Functions of DBMS Data Processing A User Accessible Catalog Transaction Support Concurrency Control Services © Virtual University of Pakistan
23
© Virtual University of Pakistan
Functions of DBMS Recovery Services Authorization Services Support for Data Communication Integrity Services © Virtual University of Pakistan
24
© Virtual University of Pakistan
DBMS Environments Single User Multi-user Teleprocessing File Servers Client-Server © Virtual University of Pakistan
25
© Virtual University of Pakistan
Teleprocessing All processing at a central computer Dumb Terminals © Virtual University of Pakistan
26
© Virtual University of Pakistan
File Servers Database File Server File returned Data request LAN Workstation © Virtual University of Pakistan Workstation
27
© Virtual University of Pakistan
Client-Server Database Server (with DBMS) Data request Selected data returned LAN © Virtual University of Pakistan Client Client
28
© Virtual University of Pakistan
Today’s Summary Completed 3-L architecture Discussed data independence Discussion on DBMS © Virtual University of Pakistan
29
© Virtual University of Pakistan
Thanks and Allah Hafiz © Virtual University of Pakistan
30
Database Management Systems
Lecture - 4 © Virtual University of Pakistan
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.