Data Base System Concepts and Architecture
Data Base System Concepts and Architecture
Data Base System Concepts and Architecture
Data models define how the logical structure of a database is modeled. Data
Models are fundamental entities to introduce abstraction in a DBMS. Data
models define how data is connected to each other and how they are
processed and stored inside the system.
The very first data model could be flat data-models, where all the data used
are to be kept in the same plane. Earlier data models were not so scientific,
hence they were prone to introduce lots of duplication and update
anomalies.
Hierarchical Model
Hierarchical Model was the first DBMS model. This model
organises the data in the hierarchical tree structure. The
hierarchy starts from the root which has root data and then
it expands in the form of a tree adding child node to the
parent node. This model easily represents some of the real-
world relationships like food recipes, sitemap of a website
etc. Example: We can represent the relationship between
the shoes present on a shopping website in the following
way:
Features of a Hierarchical Model
Network Model
This model is an extension of the hierarchical model. It was
the most popular model before the relational model. This
model is the same as the hierarchical model, the only
difference is that a record can have more than one parent. It
replaces the hierarchical tree with a graph. Example: In the
example below we can see that node student has two
parents i.e. CSE Department and Library. This was earlier not
possible in the hierarchical m
odel.
Relational Model
Relational Model is the most widely used model. In this
model, the data is maintained in the form of a two-
dimensional table. All the information is stored in the form of
row and columns. The basic structure of a relational model is
tables. So, the tables are also called relations in the
relational model. Example: In this example, we have an
Employee table.
Database Schema
A database schema is the skeleton structure that represents the
logical view of the entire database. It defines how the data is
organized and how the relations among them are associated. It
formulates all the constraints that are to be applied on the data.
A database schema defines its entities and the relationship
among them. It contains a descriptive detail of the database,
which can be depicted by means of schema diagrams. It’s the
database designers who design the schema to help programmers
understand the database and make it useful.
A database schema can be divided broadly into two categories −
Physical Database Schema − This schema pertains to the
actual storage of data and its form of storage like files, indices,
etc. It defines how the data will be stored in a secondary storage.
Logical Database Schema − This schema defines all the logical
constraints that need to be applied on the data stored. It defines
tables, views, and integrity constraints.
Database Instance
It is important that we distinguish these two terms individually. Database
schema is the skeleton of database. It is designed when the database
doesn't exist at all. Once the database is operational, it is very difficult to
make any changes to it. A database schema does not contain any data or
information.
A database instance is a state of operational database with data at any given
time. It contains a snapshot of the database. Database instances tend to
change with time. A DBMS ensures that its every instance (state) is in a valid
state, by diligently following all the validations, constraints, and conditions
that the database designers have imposed.
Data Independence
o Data independence can be explained using the three-schema architecture.
o Data independence refers characteristic of being able to modify the schema
at one level of the database system without altering the schema at the next
higher level.
3. External Level
o At the external level, a database contains several schemas that
sometimes called as subschema. The subschema is used to describe
the different view of the database.
o An external schema is also known as view schema.
o Each view schema describes the database part that a particular user
group is interested and hides the remaining database from that user
group.
o The view schema describes the end user interaction with database
systems.
The Conceptual/ Internal Mapping lies between the conceptual level and the
internal level. Its role is to define the correspondence between the records
and fields of the conceptual level and files and data structures of the internal
level.
The external/Conceptual Mapping lies between the external level and the
Conceptual level. Its role is to define the correspondence between a
particular external and the conceptual view.
Database Language
o A DBMS has appropriate languages and interfaces to express database
queries and updates.
o Database languages can be used to read, store and update the data in
the database.
There are the following operations which have the authorization of Revoke:
Interfaces in DBMS
A database management system (DBMS) interface is a user interface that
allows for the ability to input queries to a database without using the query
language itself.
User-friendly interfaces provided by DBMS may include the following:
2. Software
3. People
If talk of the people component then it will include all the people
who are related to the database. There may be a group of people
who will access the database just to resolve their queries i.e. end-
user, there may be people that are involved in designing the
database i.e. database designer.
4. Procedures
5. Data
DBMS Architecture
o 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.
o The client/server architecture consists of many PCs and a workstation which
are connected via the network.
o DBMS architecture depends upon how users are connected to the database
to get their request done.
1-Tier Architecture
o In this architecture, the database is directly available to the user. It means
the user can directly sit on the DBMS and uses it.
o Any changes done here will directly be done on the database itself. It doesn't
provide a handy tool for end users.
o The 1-Tier architecture is used for development of the local application,
where programmers can directly communicate with the database for the
quick response.
2-Tier Architecture
o The 2-Tier architecture is same as basic client-server. In the two-tier
architecture, applications on the client end can directly communicate with
the database at the server side. For this interaction, API's
like: ODBC, JDBC are used.
o The user interfaces and application programs are run on the client-side.
o The server side is responsible to provide the functionalities like: query
processing and transaction management.
o To communicate with the DBMS, client-side application establishes a
connection with the server side.
3-Tier Architecture
o The 3-Tier architecture contains another layer between the client and server.
In this architecture, client can't directly communicate with the server.
o The application on the client-end interacts with an application server which
further communicates with the database system.
o 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.
o The 3-Tier architecture is used in case of large web application.
Distributed DBMS
A distributed database system allows applications to access data from local
and remote databases.
b. Entity-Relationship Model
a. Centralized DBMS
b. Distributed DBMS
The large systems along with the components that can handle
distribution of database, replication of database, parallel processing,
mobile capability and so on can be sold in the form of licenses. The
site license allows unlimited use while another kind of license limits
the number of concurrent licenses.