SlideShare a Scribd company logo
1 of 41
•1
Learning Resource
On
Database Management Systems
Chapter-2
Database System Concepts and Architecture
Prepared By:
Kunal Anand, Asst. Professor
SCE, KIIT, DU, Bhubaneswar-24
2
Chapter Outcome:
• After the completion of this chapter, the students
will be able to:
– Explain different types of data models.
– Define Schema and its types.
– Differentiate between database state and instance.
– Describe the 3-schema or 3-layered architecture
– Illustrate the different components of DBMS
environment.
– DBMS Languages, and interfaces
– Identify the challenges in building a database
3
Organization of this Chapter:
• Introduction
• Data Models
• Schemas, Database states and Instances
• 3-Schema Architecture
• Components of a DBMS
• DBMS Languages and Interfaces
• Application Architecture
• Challenges to build a DBMS
Introduction
• In its earlier times, the DBMS package was in the form of
monolithic systems, where the whole DBMS software package
was one tightly integrated system.
• Gradually with time, its evolution happened and today it is in
the form of modular system with a client/server architecture.
• In a basic client/server architecture, the system functionality is
distributed between two types of modules:
– Client module: designed to run on a PC, workstation, or a
mobile device.
– Server module: handles data storage, access, search, and
other functions.
Data Models
• One of the major characteristics of the database approach is to
provide abstraction, so that different users can perceive the
data at their preferred level of detail.
• This abstraction is achieved by Data Model in a DB
environment.
• Data Model can be formally defined as a collection of
concepts that can be used to describe the structure of a
database. By “structure” we refer to the data types,
relationships, and constraints that apply to the data.
• Most data models also include the basic operations for
specifying retrieval and updation of the database.
Data Models (contd..)
• Additionally, the data models also include the concepts to
describe the dynamic apsect or behavior of the system.
• It allows the database designers to specify a set of user defined
operations that are possible on the database objects.
– For example: a user defined operation COMPUTE_GPA
can be applied to the STUDENT object whereas, generic
operations like INSERT, DELETE, MODIFY, or
RETRIEVE can be applied to any database objects.
• The concepts used to specify the dynamic aspect is mainly
applicable to Object Oriented Models.
Categories of Data Models
• Based on concepts, data models can be classified into
following three categories
– High level or Conceptual data model: It provides
concepts that are close to the way many users perceive the
data.
– Low level or Physical data model: It provides concepts
that describe the details of how data is stored on the
computer storage media.
– Representational or Implementation data model: It
provides the concepts that may be easily understood by the
users but not too far from the way data is organized in
computer storage.
Building blocks of a Data Model
• Conceptual data models use the concepts like entity, attributes,
relationship, and constraints. They are also known as the
building blocks of a data model.
– Entity: An entity represents a real world concept that is
described in the database.
– Attribute: property or feature or characteristic that may
further describe an entity.
– Relationship: When there are two or more than two
entities in a database, they are associated to each other in
one way or another. This association is known as
relationship.
– Constraint: A constraint is a restriction placed on a data.
They are important as they help to achieve data integrity i.e.
an assurance of the accuracy and consistency of, data over
its entire life-cycle
Types of Data Models
• Broadly, data models are of following types:
– Hierarchical Model
– Network Model
– Relational Model
– Entity Relationship Model
– Object-Oriented Model
– Object-Relational Model
Hierarchical Model
• One of the legacy data models.
• The hierarchical model was developed in the 1960s to manage
large amount of data for complex manufacturing projects.
• The basic logical structure is represented by an upside-down
tree. The hierarchical structure contains levels of segments.
Advantages and Disadvantages
• Advantages
– The model allows easy addition and deletion of new
information.
– The model relates very well to natural hierarchies such as
assembly plants and employee organization in corporations.
– It relates well to anything that works through a one to many
relationship.
• Disadvantages
– The database can be very slow when searching for
information on the lower entities.
– Searching for data requires the DBMS to run through the
entire model from top to bottom until the required
information is found, making queries very slow.
– Can only model one to many relationships, many to many
relationships are not supported.
Network Model
• The network model, another legacy model, was created to
represent complex data relationships more effectively than the
hierarchical model, to improve database performance, and to
impose a database standard.
• A user perceives the network model as a collection of records
in 1:M relationships
Advantages and Disadvantages
• Advantages
– The model represents complex data relationships more
effectively than the hierarchical model
– It handles more relationship types, such as M: N.
– Data access is more flexible than hierarchical model
– Improved database performance as it includes DDL and
DML commands.
• Disadvantages
– System complexity limits efficiency
– Navigational system yields complex implementation and
management
– Structural changes require changes in all application
programs
– Networks can become chaotic unless planned carefully
Relational Model
• The relational model was introduced by E. F. Codd in 1970.
This data model is implemented through RDBMS; which is
easier to understand and implement
• The most important advantage of the RDBMS is, its ability to
hide the complexities of the relational model from the user.
• Another reason for the relational data model’s rise to
dominance is its powerful and flexible query language.
Generally, SQL is used for this purpose
Advantages and Disadvantages
• Advanatges
– Changes in table's structure do not affect data access or
application programs.
– Tabular view eases the design, implementation,
management, and use of the database.
– Provides data consistency
– RDBMS isolates the end users from the physical level
details which enhances the implementation and simplicity.
• Disadvantages
– Expensive due to the high set-up cost and maintenance cost
– Advances in the complexity of data make the process of
categorization of data more difficult.
– Isolated databases create the problem of “Island of
information”, where information from one large system can
not be shared easily to the other system.
Entity Relationship Model
• Peter Chen first introduced the ER data model in 1976.
• It was the graphical representation of entities and their
relationships in a database structure that quickly became
popular.
• Thus, the ER-model has become a widely accepted standard
for data modeling.
• ER models are normally represented in an ER diagram
Advantages and Disadvantages
• Advantages
– Visual modeling yields exceptional conceptual simplicity
and makes it more communicative.
– Basic building blocks of a database can be represented
more effectively here.
• Disadvantages
– There is limited relationship and constraint representation.
– Loss of information content when attributes are removed in
order to avoid crowded displays.
Object Oriented Model
• In object-oriented data model, both data and their relationships
are contained in a single structure called an object.
• Like the relational model’s entity, an object is described by its
factual content. But quite unlike an entity, an object includes
information about relationships between the facts within the
object, as well as information about its relationships with other
objects. Attributes describe the properties of an object. Objects
that share similar characteristics are grouped in classes. Thus,
a class is a collection of similar objects with shared structure
(attributes) and methods.
Advantages of Object Oriented Model
• The object-oriented data model allows the 'real world' to be
modeled more closely.
• OODBMSs allow new data types to be built from existing
types.
• Unlike traditional databases (such as hierarchical, network or
relational), the object oriented database are capable of storing
different types of data, for example, pictures, voice video,
including text, numbers and so on.
• The tight coupling between data and applications in an
OODBMS makes schema evolution more feasible.
• Applicability to advanced database applications like CAD,
CASE, OIS, and Multimedia Systems.
• Improved performance
Disadvantages of Object Oriented Model
• There is no universally agreed data model for an OODBMS,
and most models lack a theoretical foundation.
• In comparison to RDBMSs the use of OODBMS is still
relatively limited.
• Query optimization compromises encapsulations
• Perhaps one of the most significant issues that face OODBMS
vendors is the competition posed by the RDBMS and the
emerging ORDBMS products.
• Lack of support for views
• Lack of support for security
Object Relational Model
• The object-oriented data model is somewhat spherical in
nature, allowing access to unique elements anywhere within a
database structure, with extremely high performance. But, it
performs extremely poorly when retrieving more than a single
data item.
• The relational data model is best suited for retrieval of groups
of data, but can also be used to access unique data items fairly
and efficiently.
• Thus, by combining the features of relational data model and
object-oriented data model, object-relational data model was
created
Schema, Instances, and Database State
• In any data model, it is very important to distinguish between
the description of the database and the database itself.
• The physical description of a database is known as schema.
This is specified during the database design and it is not
expected to change frequently.
• A displayed schema is known as schema diagram. It displays
the structure of each record type but not the actual data of the
records.
• Each object in the schema diagram is known as schema
construct.
Example of Schema Diagram
contd..
• The data in the database at a particular point of time is called a
“Database State”. Any entry in the database state at any point
of time is called “Instance” i.e. Database state is actually a
collection of instances at any point of time.
• The DBMS stores the description of the schema and
constraints in the form of a catalogue, known as meta-data so
that DBMS software can refer to the schema whenever needed.
• Database schema, once defined, does not change frequently
whereas, the database state keeps on changing continuously.
Schema is known as “Intension” whereas the database state is
known as “extension” of the schema.
• Though, the database schema does not change very frequently.
It may undergo some changes when there is any change in the
application requirement. This is known as “Schema
Evolution”.
3-Tier or 3-Schema Architecture
contd..
• External Level
– includes a number of external schemas or user views.
– Each external schema describes the part of the database that
a particular user is interested in and hides the rest of the
database from the user.
• Conceptual Level
– This level has a conceptual schema that describes the
structure of the database for a community of users.
– It hides the details of physical storage structure and
concentrates on describing entities, datatypes, relationship,
user operations, and constraints.
• Internal Level
– This level has an internal schema that describes the
physical storage structure of the database.
Points to be noted
• The 3-schema architecture is used to visualize different
schemas in a database. Though most DBMS supports the
architecture, they dont separate the three levels completely and
explicitly.
• A RDBMS like Oracle represents both conceptual and external
schema in the same data model.
• Some DBMS use different models to represent different level
schemas at conceptual and external level.
– Ex: Universal Database represents conceptual schema
using relational model and external schema using object
oriented model.
contd..
• The three schemas are only the description of the data, the
stored data actually exists at the physical level in the form a
database.
• In a 3-schema based DBMS, each user group refers only to its
own external schema. So, the DBMS must transform a request
specified on external schema into a request against the
conceptual schema, and then into a request on the internal
schema for processing over the database.
• The data extracted from the stored database is transformed
back into the respective external's view. This process of
transforming requests and results between levels are known as
“Mapping”.
Data Independence
• Data independence is the ability to change the schema at one
level without changing the schema at the next higher level.
• It is of following two types:
– Logical data independence
• The ability to change the conceptual schema without
having to change the external schema.
• Conceptual schema may have to be changed to expand
the database, to change constraints, or to reduce the
database. However, the change in conceptual schema
must not impact the working of application program that
refers the external schema.
– Physical data independence
• The ability to change the internal schema without
changing the conceptual schema as well as the external
schema.
contd..
Note:
• Genrally, physical data independence exists in most of the
DBMS whereas the logical data independence is hard to
achieve.
• This is because changing the conceptual schema without
having any impact on the application programs is a much
strict requirement.
• Achieveing true data independence creates some overhead
on the DBMS due to this multiple mapping. It affects the
efficiency of the DBMS.
Components of DBMS
• A typical DBMS environment consists of following
components:
– Database Users
– Application programs, interfaces, query tools, and
administrative tools.
– Query processor
– Storage manager
– Disk storage
Components of DBMS (contd..)
Components of DBMS (contd..)
• Storage Manager:
– A storage manager is a program module that provides the
interface between the low-level data stored in the database
and the application programs and queries submitted to the
system.
– The storage manager is responsible for the interaction with
the file manager. Storage manager is also responsible for
storing, retrieving and updating data in the database.
• The storage manager component includes:
– Authorization and Integrity Manager: This module
ensures the integrity and authorized access of the data.
– Transaction Manager: They ensure that the database
remains in a consistent state despite of any failure and the
concurrent transactions can proceed without any conflicts.
Components of DBMS (contd..)
– File Manager: This module manages the allocation of
space on disk storage and data structures used to represent
information stored on the disk.
– Buffer Manager: Buffer manager is responsible for
fetching data from the disk storage into main memory. The
buffer manager is a critical part of the database system.
Note: Additionally, the storage manager implements several
data structures like data files, data dictionary, and indices as
part of the physical system implementations.
Components of DBMS (contd..)
• Query Processor: The work of query processor is to execute
the query successfully. The major components of query
processor include:
– DDL Interpreter : This interpreter is used to interpret DDL
statements and records the definitions in the data dictionary.
– DML Compiler :
• DML compiler translates the DML statements in a query
language into an evaluation plan consisting of low-level
instructions that the query evaluation engine
understands.
• When a user wants to perform a DML operation, the
data dictionary has to be checked for the validation
purpose
– Query Evaluation Engine: This module executes the low-
level instructions generated by the DML compiler.
Database Languages and Interfaces
• Once the design of the database is completed and a DBMS is
chosen to implement the database, the first thing is to specify
is the conceptual schema and internal schemas for the database
and the mapping between the two.
• DBMS with no strict separation of level, uses a language
called Data Definition Language i.e. DDL to define both
schemas.
• On the other hand, DBMS with restriction to maintain separate
levels uses DDL to specify only conceptual schema. The
internal schema is specified by another language known as
Storage Definition Language i.e. SDL. Mapping can be
specified using either DDL or SDL.
contd..
• For a 3-schema architecture, a language “View Definition
Language” i.e. VDL is used to represent the user view and
their mapping to the conceptual schema.
• In most DBMS, DDL is used to specify the external and
conceptual schema.
• Data Manipulation Language i.e. DML is used to perform
the manipulations like retrieval, insertion, deletion, and
modification on the database.
• DBMS provides user friendly interfaces which may include:
– Menu based interface
– Form based interface
– Graphical user interface
contd..
• Menu based interface
– Meant for web clients. Users are provided with a list of
menus using which they generate their query.
– Removes the need of remembering commands.
– Pull down menu is a popular technique.
• Form based interface
– A form is displayed to the user that is used to generate the
query.
– Mostly applicable to the naive users. Ex: SQL *Form
• Graphical user interface
– A GUI typically displays a schema to the user in
diagrammatic form. The user can then specify a query by
manipulating the diagram.
Application Architecture
• Client machines are those on which the remote database users
work. Server machines are those on which the database system
runs.
– 2-Tier Architecture: Here, the application is partitioned
into a component that resides at the client machine, which
invokes database system functionality at the server machine
through query language. The two tiers are: Data server and
Client application.
– 3-Tier Architecture: Here, the client machine acts as a
front end and doesn’t contain any direct database calls. The
client end communicates with an application server, usually
via a form interface. The application server in turn
communicates with a database system to access data. The 3-
tier applications are more appropriate for large applications,
and the applications that run on the web.
Application Architecture (contd..)
Challenges in building a DBMS
• The challenges in building an efficient DBMS are as below:
– Increased data volume
– Growing complexities.
– Data security
– Decentralized data management
– Limits on scalability
– The Management of Cloud-Based Databases
– Data Integration from Various Sources

More Related Content

What's hot

Database systems - Chapter 1
Database systems - Chapter 1Database systems - Chapter 1
Database systems - Chapter 1shahab3
 
Functional dependancy
Functional dependancyFunctional dependancy
Functional dependancyVisakh V
 
Type of database models
Type of database modelsType of database models
Type of database modelsSanthiNivas
 
Database Normalization
Database NormalizationDatabase Normalization
Database NormalizationArun Sharma
 
Introduction of DBMS
Introduction of DBMSIntroduction of DBMS
Introduction of DBMSYouQue ™
 
Learn Normalization in simple language
Learn Normalization in simple languageLearn Normalization in simple language
Learn Normalization in simple languageFirstWire Apps
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity ConstraintsMegha yadav
 
Chapter 6 relational data model and relational
Chapter  6  relational data model and relationalChapter  6  relational data model and relational
Chapter 6 relational data model and relationalJafar Nesargi
 
Types Of Keys in DBMS
Types Of Keys in DBMSTypes Of Keys in DBMS
Types Of Keys in DBMSPadamNepal1
 
Relational Data Model Introduction
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model IntroductionNishant Munjal
 
SQL Tutorial - Basic Commands
SQL Tutorial - Basic CommandsSQL Tutorial - Basic Commands
SQL Tutorial - Basic Commands1keydata
 
Key and its different types
Key and its different typesKey and its different types
Key and its different typesUmair Shakir
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship DiagramShakila Mahjabin
 

What's hot (20)

Dbms and sqlpptx
Dbms and sqlpptxDbms and sqlpptx
Dbms and sqlpptx
 
Data Models
Data ModelsData Models
Data Models
 
Database systems - Chapter 1
Database systems - Chapter 1Database systems - Chapter 1
Database systems - Chapter 1
 
Functional dependancy
Functional dependancyFunctional dependancy
Functional dependancy
 
Type of database models
Type of database modelsType of database models
Type of database models
 
Database Normalization
Database NormalizationDatabase Normalization
Database Normalization
 
Introduction of DBMS
Introduction of DBMSIntroduction of DBMS
Introduction of DBMS
 
Introduction to-sql
Introduction to-sqlIntroduction to-sql
Introduction to-sql
 
Object oriented databases
Object oriented databasesObject oriented databases
Object oriented databases
 
Learn Normalization in simple language
Learn Normalization in simple languageLearn Normalization in simple language
Learn Normalization in simple language
 
Relational model
Relational modelRelational model
Relational model
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
 
Chapter 6 relational data model and relational
Chapter  6  relational data model and relationalChapter  6  relational data model and relational
Chapter 6 relational data model and relational
 
Types Of Keys in DBMS
Types Of Keys in DBMSTypes Of Keys in DBMS
Types Of Keys in DBMS
 
Relational Data Model Introduction
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model Introduction
 
Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
 
SQL Tutorial - Basic Commands
SQL Tutorial - Basic CommandsSQL Tutorial - Basic Commands
SQL Tutorial - Basic Commands
 
Key and its different types
Key and its different typesKey and its different types
Key and its different types
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
Different data models
Different data modelsDifferent data models
Different data models
 

Similar to Chapter-2 Database System Concepts and Architecture

Types of Database Models
Types of Database ModelsTypes of Database Models
Types of Database ModelsMurassa Gillani
 
Chapter-3-Lesson 1 DM/ Data-Models.ppt/pptx
Chapter-3-Lesson 1 DM/ Data-Models.ppt/pptxChapter-3-Lesson 1 DM/ Data-Models.ppt/pptx
Chapter-3-Lesson 1 DM/ Data-Models.ppt/pptxmicayaseloisa
 
9a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc29a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc2Mukund Trivedi
 
Database Models, Client-Server Architecture, Distributed Database and Classif...
Database Models, Client-Server Architecture, Distributed Database and Classif...Database Models, Client-Server Architecture, Distributed Database and Classif...
Database Models, Client-Server Architecture, Distributed Database and Classif...Rubal Sagwal
 
Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02Jotham Gadot
 
Relational Database explanation with detail.pdf
Relational Database explanation with detail.pdfRelational Database explanation with detail.pdf
Relational Database explanation with detail.pdf9wldv5h8n
 
NoSQL-Database-Concepts
NoSQL-Database-ConceptsNoSQL-Database-Concepts
NoSQL-Database-ConceptsBhaskar Gunda
 
Computer applications.pptx
Computer applications.pptxComputer applications.pptx
Computer applications.pptxEmmanuel235416
 
DatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxDatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxuwmctesting
 

Similar to Chapter-2 Database System Concepts and Architecture (20)

Types of Database Models
Types of Database ModelsTypes of Database Models
Types of Database Models
 
Introduction to RDBMS
Introduction to RDBMSIntroduction to RDBMS
Introduction to RDBMS
 
Chapter-3-Lesson 1 DM/ Data-Models.ppt/pptx
Chapter-3-Lesson 1 DM/ Data-Models.ppt/pptxChapter-3-Lesson 1 DM/ Data-Models.ppt/pptx
Chapter-3-Lesson 1 DM/ Data-Models.ppt/pptx
 
DBMS-Unit-1.pptx
DBMS-Unit-1.pptxDBMS-Unit-1.pptx
DBMS-Unit-1.pptx
 
9a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc29a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc2
 
ITB - UNIT 3.pdf
ITB - UNIT 3.pdfITB - UNIT 3.pdf
ITB - UNIT 3.pdf
 
Mis assignment (database)
Mis assignment (database)Mis assignment (database)
Mis assignment (database)
 
Database Models, Client-Server Architecture, Distributed Database and Classif...
Database Models, Client-Server Architecture, Distributed Database and Classif...Database Models, Client-Server Architecture, Distributed Database and Classif...
Database Models, Client-Server Architecture, Distributed Database and Classif...
 
Unit1 DBMS Introduction
Unit1 DBMS IntroductionUnit1 DBMS Introduction
Unit1 DBMS Introduction
 
DBMS topic in PU
DBMS topic in PUDBMS topic in PU
DBMS topic in PU
 
Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02
 
Relational Database explanation with detail.pdf
Relational Database explanation with detail.pdfRelational Database explanation with detail.pdf
Relational Database explanation with detail.pdf
 
NoSQL-Database-Concepts
NoSQL-Database-ConceptsNoSQL-Database-Concepts
NoSQL-Database-Concepts
 
Data Models.pptx
Data Models.pptxData Models.pptx
Data Models.pptx
 
Computer applications.pptx
Computer applications.pptxComputer applications.pptx
Computer applications.pptx
 
Unit 1.pptx
Unit 1.pptxUnit 1.pptx
Unit 1.pptx
 
Data models
Data modelsData models
Data models
 
DatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxDatabaseManagementSystem.pptx
DatabaseManagementSystem.pptx
 
DBMS
DBMS DBMS
DBMS
 
Data models
Data modelsData models
Data models
 

More from Kunal Anand

Chapter-5 The Relational Data Model
Chapter-5 The Relational Data ModelChapter-5 The Relational Data Model
Chapter-5 The Relational Data ModelKunal Anand
 
Chapter-10 Transaction Processing and Error Recovery
Chapter-10 Transaction Processing and Error RecoveryChapter-10 Transaction Processing and Error Recovery
Chapter-10 Transaction Processing and Error RecoveryKunal Anand
 
Chapter-9 Normalization
Chapter-9 NormalizationChapter-9 Normalization
Chapter-9 NormalizationKunal Anand
 
Chapter-8 Relational Database Design
Chapter-8 Relational Database DesignChapter-8 Relational Database Design
Chapter-8 Relational Database DesignKunal Anand
 
Chapter-7 Relational Calculus
Chapter-7 Relational CalculusChapter-7 Relational Calculus
Chapter-7 Relational CalculusKunal Anand
 
Chapter-6 Relational Algebra
Chapter-6 Relational AlgebraChapter-6 Relational Algebra
Chapter-6 Relational AlgebraKunal Anand
 
Chapter-4 Enhanced ER Model
Chapter-4 Enhanced ER ModelChapter-4 Enhanced ER Model
Chapter-4 Enhanced ER ModelKunal Anand
 
Chapter-3 Data Modeling using ER Model
Chapter-3 Data Modeling using ER ModelChapter-3 Data Modeling using ER Model
Chapter-3 Data Modeling using ER ModelKunal Anand
 
Chapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management SystemsChapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management SystemsKunal Anand
 

More from Kunal Anand (9)

Chapter-5 The Relational Data Model
Chapter-5 The Relational Data ModelChapter-5 The Relational Data Model
Chapter-5 The Relational Data Model
 
Chapter-10 Transaction Processing and Error Recovery
Chapter-10 Transaction Processing and Error RecoveryChapter-10 Transaction Processing and Error Recovery
Chapter-10 Transaction Processing and Error Recovery
 
Chapter-9 Normalization
Chapter-9 NormalizationChapter-9 Normalization
Chapter-9 Normalization
 
Chapter-8 Relational Database Design
Chapter-8 Relational Database DesignChapter-8 Relational Database Design
Chapter-8 Relational Database Design
 
Chapter-7 Relational Calculus
Chapter-7 Relational CalculusChapter-7 Relational Calculus
Chapter-7 Relational Calculus
 
Chapter-6 Relational Algebra
Chapter-6 Relational AlgebraChapter-6 Relational Algebra
Chapter-6 Relational Algebra
 
Chapter-4 Enhanced ER Model
Chapter-4 Enhanced ER ModelChapter-4 Enhanced ER Model
Chapter-4 Enhanced ER Model
 
Chapter-3 Data Modeling using ER Model
Chapter-3 Data Modeling using ER ModelChapter-3 Data Modeling using ER Model
Chapter-3 Data Modeling using ER Model
 
Chapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management SystemsChapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management Systems
 

Recently uploaded

GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 

Recently uploaded (20)

GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 

Chapter-2 Database System Concepts and Architecture

  • 1. •1 Learning Resource On Database Management Systems Chapter-2 Database System Concepts and Architecture Prepared By: Kunal Anand, Asst. Professor SCE, KIIT, DU, Bhubaneswar-24
  • 2. 2 Chapter Outcome: • After the completion of this chapter, the students will be able to: – Explain different types of data models. – Define Schema and its types. – Differentiate between database state and instance. – Describe the 3-schema or 3-layered architecture – Illustrate the different components of DBMS environment. – DBMS Languages, and interfaces – Identify the challenges in building a database
  • 3. 3 Organization of this Chapter: • Introduction • Data Models • Schemas, Database states and Instances • 3-Schema Architecture • Components of a DBMS • DBMS Languages and Interfaces • Application Architecture • Challenges to build a DBMS
  • 4. Introduction • In its earlier times, the DBMS package was in the form of monolithic systems, where the whole DBMS software package was one tightly integrated system. • Gradually with time, its evolution happened and today it is in the form of modular system with a client/server architecture. • In a basic client/server architecture, the system functionality is distributed between two types of modules: – Client module: designed to run on a PC, workstation, or a mobile device. – Server module: handles data storage, access, search, and other functions.
  • 5. Data Models • One of the major characteristics of the database approach is to provide abstraction, so that different users can perceive the data at their preferred level of detail. • This abstraction is achieved by Data Model in a DB environment. • Data Model can be formally defined as a collection of concepts that can be used to describe the structure of a database. By “structure” we refer to the data types, relationships, and constraints that apply to the data. • Most data models also include the basic operations for specifying retrieval and updation of the database.
  • 6. Data Models (contd..) • Additionally, the data models also include the concepts to describe the dynamic apsect or behavior of the system. • It allows the database designers to specify a set of user defined operations that are possible on the database objects. – For example: a user defined operation COMPUTE_GPA can be applied to the STUDENT object whereas, generic operations like INSERT, DELETE, MODIFY, or RETRIEVE can be applied to any database objects. • The concepts used to specify the dynamic aspect is mainly applicable to Object Oriented Models.
  • 7. Categories of Data Models • Based on concepts, data models can be classified into following three categories – High level or Conceptual data model: It provides concepts that are close to the way many users perceive the data. – Low level or Physical data model: It provides concepts that describe the details of how data is stored on the computer storage media. – Representational or Implementation data model: It provides the concepts that may be easily understood by the users but not too far from the way data is organized in computer storage.
  • 8. Building blocks of a Data Model • Conceptual data models use the concepts like entity, attributes, relationship, and constraints. They are also known as the building blocks of a data model. – Entity: An entity represents a real world concept that is described in the database. – Attribute: property or feature or characteristic that may further describe an entity. – Relationship: When there are two or more than two entities in a database, they are associated to each other in one way or another. This association is known as relationship. – Constraint: A constraint is a restriction placed on a data. They are important as they help to achieve data integrity i.e. an assurance of the accuracy and consistency of, data over its entire life-cycle
  • 9. Types of Data Models • Broadly, data models are of following types: – Hierarchical Model – Network Model – Relational Model – Entity Relationship Model – Object-Oriented Model – Object-Relational Model
  • 10. Hierarchical Model • One of the legacy data models. • The hierarchical model was developed in the 1960s to manage large amount of data for complex manufacturing projects. • The basic logical structure is represented by an upside-down tree. The hierarchical structure contains levels of segments.
  • 11. Advantages and Disadvantages • Advantages – The model allows easy addition and deletion of new information. – The model relates very well to natural hierarchies such as assembly plants and employee organization in corporations. – It relates well to anything that works through a one to many relationship. • Disadvantages – The database can be very slow when searching for information on the lower entities. – Searching for data requires the DBMS to run through the entire model from top to bottom until the required information is found, making queries very slow. – Can only model one to many relationships, many to many relationships are not supported.
  • 12. Network Model • The network model, another legacy model, was created to represent complex data relationships more effectively than the hierarchical model, to improve database performance, and to impose a database standard. • A user perceives the network model as a collection of records in 1:M relationships
  • 13. Advantages and Disadvantages • Advantages – The model represents complex data relationships more effectively than the hierarchical model – It handles more relationship types, such as M: N. – Data access is more flexible than hierarchical model – Improved database performance as it includes DDL and DML commands. • Disadvantages – System complexity limits efficiency – Navigational system yields complex implementation and management – Structural changes require changes in all application programs – Networks can become chaotic unless planned carefully
  • 14. Relational Model • The relational model was introduced by E. F. Codd in 1970. This data model is implemented through RDBMS; which is easier to understand and implement • The most important advantage of the RDBMS is, its ability to hide the complexities of the relational model from the user. • Another reason for the relational data model’s rise to dominance is its powerful and flexible query language. Generally, SQL is used for this purpose
  • 15. Advantages and Disadvantages • Advanatges – Changes in table's structure do not affect data access or application programs. – Tabular view eases the design, implementation, management, and use of the database. – Provides data consistency – RDBMS isolates the end users from the physical level details which enhances the implementation and simplicity. • Disadvantages – Expensive due to the high set-up cost and maintenance cost – Advances in the complexity of data make the process of categorization of data more difficult. – Isolated databases create the problem of “Island of information”, where information from one large system can not be shared easily to the other system.
  • 16. Entity Relationship Model • Peter Chen first introduced the ER data model in 1976. • It was the graphical representation of entities and their relationships in a database structure that quickly became popular. • Thus, the ER-model has become a widely accepted standard for data modeling. • ER models are normally represented in an ER diagram
  • 17. Advantages and Disadvantages • Advantages – Visual modeling yields exceptional conceptual simplicity and makes it more communicative. – Basic building blocks of a database can be represented more effectively here. • Disadvantages – There is limited relationship and constraint representation. – Loss of information content when attributes are removed in order to avoid crowded displays.
  • 18. Object Oriented Model • In object-oriented data model, both data and their relationships are contained in a single structure called an object. • Like the relational model’s entity, an object is described by its factual content. But quite unlike an entity, an object includes information about relationships between the facts within the object, as well as information about its relationships with other objects. Attributes describe the properties of an object. Objects that share similar characteristics are grouped in classes. Thus, a class is a collection of similar objects with shared structure (attributes) and methods.
  • 19. Advantages of Object Oriented Model • The object-oriented data model allows the 'real world' to be modeled more closely. • OODBMSs allow new data types to be built from existing types. • Unlike traditional databases (such as hierarchical, network or relational), the object oriented database are capable of storing different types of data, for example, pictures, voice video, including text, numbers and so on. • The tight coupling between data and applications in an OODBMS makes schema evolution more feasible. • Applicability to advanced database applications like CAD, CASE, OIS, and Multimedia Systems. • Improved performance
  • 20. Disadvantages of Object Oriented Model • There is no universally agreed data model for an OODBMS, and most models lack a theoretical foundation. • In comparison to RDBMSs the use of OODBMS is still relatively limited. • Query optimization compromises encapsulations • Perhaps one of the most significant issues that face OODBMS vendors is the competition posed by the RDBMS and the emerging ORDBMS products. • Lack of support for views • Lack of support for security
  • 21. Object Relational Model • The object-oriented data model is somewhat spherical in nature, allowing access to unique elements anywhere within a database structure, with extremely high performance. But, it performs extremely poorly when retrieving more than a single data item. • The relational data model is best suited for retrieval of groups of data, but can also be used to access unique data items fairly and efficiently. • Thus, by combining the features of relational data model and object-oriented data model, object-relational data model was created
  • 22. Schema, Instances, and Database State • In any data model, it is very important to distinguish between the description of the database and the database itself. • The physical description of a database is known as schema. This is specified during the database design and it is not expected to change frequently. • A displayed schema is known as schema diagram. It displays the structure of each record type but not the actual data of the records. • Each object in the schema diagram is known as schema construct.
  • 23. Example of Schema Diagram
  • 24. contd.. • The data in the database at a particular point of time is called a “Database State”. Any entry in the database state at any point of time is called “Instance” i.e. Database state is actually a collection of instances at any point of time. • The DBMS stores the description of the schema and constraints in the form of a catalogue, known as meta-data so that DBMS software can refer to the schema whenever needed. • Database schema, once defined, does not change frequently whereas, the database state keeps on changing continuously. Schema is known as “Intension” whereas the database state is known as “extension” of the schema. • Though, the database schema does not change very frequently. It may undergo some changes when there is any change in the application requirement. This is known as “Schema Evolution”.
  • 25. 3-Tier or 3-Schema Architecture
  • 26. contd.. • External Level – includes a number of external schemas or user views. – Each external schema describes the part of the database that a particular user is interested in and hides the rest of the database from the user. • Conceptual Level – This level has a conceptual schema that describes the structure of the database for a community of users. – It hides the details of physical storage structure and concentrates on describing entities, datatypes, relationship, user operations, and constraints. • Internal Level – This level has an internal schema that describes the physical storage structure of the database.
  • 27. Points to be noted • The 3-schema architecture is used to visualize different schemas in a database. Though most DBMS supports the architecture, they dont separate the three levels completely and explicitly. • A RDBMS like Oracle represents both conceptual and external schema in the same data model. • Some DBMS use different models to represent different level schemas at conceptual and external level. – Ex: Universal Database represents conceptual schema using relational model and external schema using object oriented model.
  • 28. contd.. • The three schemas are only the description of the data, the stored data actually exists at the physical level in the form a database. • In a 3-schema based DBMS, each user group refers only to its own external schema. So, the DBMS must transform a request specified on external schema into a request against the conceptual schema, and then into a request on the internal schema for processing over the database. • The data extracted from the stored database is transformed back into the respective external's view. This process of transforming requests and results between levels are known as “Mapping”.
  • 29. Data Independence • Data independence is the ability to change the schema at one level without changing the schema at the next higher level. • It is of following two types: – Logical data independence • The ability to change the conceptual schema without having to change the external schema. • Conceptual schema may have to be changed to expand the database, to change constraints, or to reduce the database. However, the change in conceptual schema must not impact the working of application program that refers the external schema. – Physical data independence • The ability to change the internal schema without changing the conceptual schema as well as the external schema.
  • 30. contd.. Note: • Genrally, physical data independence exists in most of the DBMS whereas the logical data independence is hard to achieve. • This is because changing the conceptual schema without having any impact on the application programs is a much strict requirement. • Achieveing true data independence creates some overhead on the DBMS due to this multiple mapping. It affects the efficiency of the DBMS.
  • 31. Components of DBMS • A typical DBMS environment consists of following components: – Database Users – Application programs, interfaces, query tools, and administrative tools. – Query processor – Storage manager – Disk storage
  • 32. Components of DBMS (contd..)
  • 33. Components of DBMS (contd..) • Storage Manager: – A storage manager is a program module that provides the interface between the low-level data stored in the database and the application programs and queries submitted to the system. – The storage manager is responsible for the interaction with the file manager. Storage manager is also responsible for storing, retrieving and updating data in the database. • The storage manager component includes: – Authorization and Integrity Manager: This module ensures the integrity and authorized access of the data. – Transaction Manager: They ensure that the database remains in a consistent state despite of any failure and the concurrent transactions can proceed without any conflicts.
  • 34. Components of DBMS (contd..) – File Manager: This module manages the allocation of space on disk storage and data structures used to represent information stored on the disk. – Buffer Manager: Buffer manager is responsible for fetching data from the disk storage into main memory. The buffer manager is a critical part of the database system. Note: Additionally, the storage manager implements several data structures like data files, data dictionary, and indices as part of the physical system implementations.
  • 35. Components of DBMS (contd..) • Query Processor: The work of query processor is to execute the query successfully. The major components of query processor include: – DDL Interpreter : This interpreter is used to interpret DDL statements and records the definitions in the data dictionary. – DML Compiler : • DML compiler translates the DML statements in a query language into an evaluation plan consisting of low-level instructions that the query evaluation engine understands. • When a user wants to perform a DML operation, the data dictionary has to be checked for the validation purpose – Query Evaluation Engine: This module executes the low- level instructions generated by the DML compiler.
  • 36. Database Languages and Interfaces • Once the design of the database is completed and a DBMS is chosen to implement the database, the first thing is to specify is the conceptual schema and internal schemas for the database and the mapping between the two. • DBMS with no strict separation of level, uses a language called Data Definition Language i.e. DDL to define both schemas. • On the other hand, DBMS with restriction to maintain separate levels uses DDL to specify only conceptual schema. The internal schema is specified by another language known as Storage Definition Language i.e. SDL. Mapping can be specified using either DDL or SDL.
  • 37. contd.. • For a 3-schema architecture, a language “View Definition Language” i.e. VDL is used to represent the user view and their mapping to the conceptual schema. • In most DBMS, DDL is used to specify the external and conceptual schema. • Data Manipulation Language i.e. DML is used to perform the manipulations like retrieval, insertion, deletion, and modification on the database. • DBMS provides user friendly interfaces which may include: – Menu based interface – Form based interface – Graphical user interface
  • 38. contd.. • Menu based interface – Meant for web clients. Users are provided with a list of menus using which they generate their query. – Removes the need of remembering commands. – Pull down menu is a popular technique. • Form based interface – A form is displayed to the user that is used to generate the query. – Mostly applicable to the naive users. Ex: SQL *Form • Graphical user interface – A GUI typically displays a schema to the user in diagrammatic form. The user can then specify a query by manipulating the diagram.
  • 39. Application Architecture • Client machines are those on which the remote database users work. Server machines are those on which the database system runs. – 2-Tier Architecture: Here, the application is partitioned into a component that resides at the client machine, which invokes database system functionality at the server machine through query language. The two tiers are: Data server and Client application. – 3-Tier Architecture: Here, the client machine acts as a front end and doesn’t contain any direct database calls. The client end communicates with an application server, usually via a form interface. The application server in turn communicates with a database system to access data. The 3- tier applications are more appropriate for large applications, and the applications that run on the web.
  • 41. Challenges in building a DBMS • The challenges in building an efficient DBMS are as below: – Increased data volume – Growing complexities. – Data security – Decentralized data management – Limits on scalability – The Management of Cloud-Based Databases – Data Integration from Various Sources