Lecture 1.1.3 - Databases Architecture and Lecture 1.1.4 - Data Independence
Lecture 1.1.3 - Databases Architecture and Lecture 1.1.4 - Data Independence
2
COURSE OUTCOMES
3
Outline
• Type of system Architectures
• Data Base System Architecture (Three Level ANSI-SPARC
Architecture)
• Data Independence
• Types of Data Independence
4
DBMS Architecture
• The DBMS design depends upon its architecture. The basic
client/server architecture is used to deal with a large number of PCs,
web servers, database servers, and other components that are
connected with networks.
• The client/server architecture consists of many PCs and a workstation
that are connected via the network.
• DBMS architecture depends upon how users are connected to the
database to get their requests done.
5
Type of Architectures
Image Source:Javatpoint.com
6
1-Tier Architecture
7
2-Tier Architecture
• The 3-Tier architecture contains another layer between the client and
the server. In this architecture, the client can't directly communicate
with the server.
• The application on the client-end interacts with an application server
which further communicates with the database system.
• End-user has no idea about the existence of the database beyond the
application server. The database also has no idea about any other user
beyond the application.
• The 3-Tier architecture is used in case of the large web applications.
9
Three schema Architecture
10
3-schema/views of Data
• Physical level: describes how a record (e.g., customer) is stored.
• Logical level: describes data stored in database, and the relationships among
the data.
• View level: application programs hide details of data types. Views can also
hide information (such as an employee’s salary) for security purposes.
• The database can be viewed from different levels of abstraction to reveal
different levels of details. From a bottom-up manner, we may find that there
are three levels of abstraction or views in the database.
• The term Abstraction is very important here. Generally it means the amount of
detail you want to hide. Any entity can be seen from different perspectives and
levels of complexity to make it a reveal its current amount of abstraction.
11
https://beginnersbook.com/2015/04/e-r-model-in-dbms/
• The word schema means arrangement – how we want to arrange things that we have to store. The diagram above shows the three different
schemas used in DBMS, seen from different levels of abstraction.
14
Conceptual or logical schema
• The middle level is known as the Conceptual or Logical Schema, and
deals with the structure of the entire database.
• Please note that at this level we are not interested with the raw data
items anymore, we are interested with the structure of the database.
• This means we want to know the information about the attributes of
each table, the common attributes in different tables that help them to
be combined, what kind of data can be input into these attributes, and
so on.
• Conceptual or Logical schema is very useful for database
administrators whose responsibility is to maintain the entire database.
15
External or View Schema
• The highest level of abstraction is the External or View Schema.
• This is targeted for the end users.
• Now, an end user does not need to know everything about the structure
of the entire database, rather than the amount of details he/she needs to
work with.
16
Data Independence
• It is the property of the database which tries to ensure that if we make any change in any level of
schema of the database, the schema immediately above it would require minimal or no need of
change.
• Ability to modify a schema definition in one level without affecting a schema definition in the
next higher level.
• The interfaces between the various levels and components should be well defined so that changes
in some parts do not seriously influence others.
• What does this mean? We know that in a building, each floor stands on the floor below it. If we
change the design of any one floor, e.g. extending the width of a room by demolishing the western
wall of that room, it is likely that the design in the above floors will have to be changed also. As a
result, one change needed in one particular floor would mean continuing to change the design of
each floor until we reach the top floor, with an increase in the time, cost and labour. Would not life
be easy if the change could be contained in one floor only? Data independence is the answer for
this. It removes the need for additional amount of work needed in adopting the single change into
all the levels above.
17
Types of Data Independence
Data independence can be classified into the following two types:
1. Physical Data Independence
2. Logical Data Independence
Physical Data Independence: This means that for any change made in the
physical schema, the need to change the logical schema is minimal. This is
practically easier to achieve.
Logical Data Independence: This means that for any change made in the
logical schema, the need to change the external schema is minimal. As we
shall see, this is a little difficult to achieve.
18
Summary
19
FAQs
21
THANK YOU
For queries
Email: shaveta.e13464@cumail.in
22